File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Dotnet.Script.DependencyModel/Environment Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -22,12 +22,12 @@ public void InitializerFolder(string fileName)
22
22
string pathToLaunchFile = Path . Combine ( vsCodeDirectory , "launch.json" ) ;
23
23
if ( ! File . Exists ( pathToLaunchFile ) )
24
24
{
25
- string baseDirectory = Path . GetDirectoryName ( new Uri ( typeof ( Scaffolder ) . GetTypeInfo ( ) . Assembly . CodeBase ) . LocalPath ) ;
26
- string csxPath = Path . Combine ( baseDirectory , "dotnet-script.dll" ) . Replace ( @"\" , "/" ) ;
25
+ string installLocation = RuntimeHelper . InstallLocation ;
26
+ string dotnetScriptPath = Path . Combine ( installLocation , "dotnet-script.dll" ) . Replace ( @"\" , "/" ) ;
27
27
28
28
string lauchFileTemplate = TemplateLoader . ReadTemplate ( "launch.json.template" ) ;
29
29
30
- string launchFileContent = lauchFileTemplate . Replace ( "PATH_TO_DOTNET-SCRIPT" , csxPath ) ;
30
+ string launchFileContent = lauchFileTemplate . Replace ( "PATH_TO_DOTNET-SCRIPT" , dotnetScriptPath ) ;
31
31
WriteFile ( pathToLaunchFile , launchFileContent ) ;
32
32
}
33
33
Original file line number Diff line number Diff line change @@ -79,7 +79,6 @@ public static string GetPathToNuGetStoreFolder()
79
79
return storePath ;
80
80
}
81
81
82
-
83
82
private static string GetProcessArchitecture ( )
84
83
{
85
84
return RuntimeEnvironment . RuntimeArchitecture ;
You can’t perform that action at this time.
0 commit comments