We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1169314 commit 7f33e6aCopy full SHA for 7f33e6a
src/Dotnet.Script.Core/Scaffolder.cs
@@ -81,6 +81,7 @@ public void RegisterFileHandler()
81
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
82
{
83
// register dotnet-script as the tool to process .csx files
84
+ _commandRunner.Execute("reg", @"delete HKCU\Software\classes\.csx /f");
85
_commandRunner.Execute("reg", @"add HKCU\Software\classes\.csx /f /ve /t REG_SZ /d dotnetscript");
86
_commandRunner.Execute("reg", $@"add HKCU\Software\Classes\dotnetscript\Shell\Open\Command /f /ve /t REG_EXPAND_SZ /d ""\""%ProgramFiles%\dotnet\dotnet.exe\"" script \""%1\"" -- %*""");
87
}
0 commit comments