C# Code Snippets  C# Code Snippets
 C# Code Snippets  C# Code Snippets
 C# Code Snippets  C# Code Snippets
 C# Code Snippets  C# Code Snippets

Monday, December 17, 2007

How to Compile from Windows Explorer / Total Commander

Hi all

Are you dreaming of compiling/building binaries without waiting hours for Visual Studio to open up ?
Now you can !

You can download a Registry fix File from here :

http://www.filefactory.com/file/eefa52/

Just double click it and your there...

The result is this:

Compile .net sln

Notes:
1. It's build debug only version.
1. Will not work for unmanaged (win32 types) projects.

If you are suspicious :)  Just create a text file and name it <whatever>.reg and Copy what's written below in blue into it and just double click it to integrate it into the registry

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\SystemFileAssociations\.sln]

[HKEY_CLASSES_ROOT\SystemFileAssociations\.sln\shell]

[HKEY_CLASSES_ROOT\SystemFileAssociations\.sln\shell\Build]

[HKEY_CLASSES_ROOT\SystemFileAssociations\.sln\shell\Build\command]
@="cmd.exe /K \"\"%%windir%%\\Microsoft.NET\\Framework\\v2.0.50727\\MSBuild.exe\" \"%1\" /t:build /v:m /p:Configuration=Debug;Platform=\"x86\"\""

[HKEY_CLASSES_ROOT\SystemFileAssociations\.sln\shell\Clean]

[HKEY_CLASSES_ROOT\SystemFileAssociations\.sln\shell\Clean\command]
@="cmd.exe /K \"\"%%windir%%\\Microsoft.NET\\Framework\\v2.0.50727\\MSBuild.exe\" \"%1\" /t:clean /v:n /p:Configuration=Debug;Platform=\"x86\"\""

[HKEY_CLASSES_ROOT\SystemFileAssociations\.sln\shell\Rebuild]

[HKEY_CLASSES_ROOT\SystemFileAssociations\.sln\shell\Rebuild\command]
@="cmd.exe /K \"\"%%windir%%\\Microsoft.NET\\Framework\\v2.0.50727\\MSBuild.exe\" \"%1\" /t:rebuild /v:n /p:Configuration=Debug;Platform=\"x86\"\""

[HKEY_CLASSES_ROOT\SystemFileAssociations\.csproj]

[HKEY_CLASSES_ROOT\SystemFileAssociations\.csproj\shell]

[HKEY_CLASSES_ROOT\SystemFileAssociations\.csproj\shell\Build]

[HKEY_CLASSES_ROOT\SystemFileAssociations\.csproj\shell\Build\command]
@="cmd.exe /K \"\"%%windir%%\\Microsoft.NET\\Framework\\v2.0.50727\\MSBuild.exe\" \"%1\" /t:build /v:m /p:Configuration=Debug;Platform=\"AnyCPU\"\""

[HKEY_CLASSES_ROOT\SystemFileAssociations\.csproj\shell\Clean]

[HKEY_CLASSES_ROOT\SystemFileAssociations\.csproj\shell\Clean\command]
@="cmd.exe /K \"\"%%windir%%\\Microsoft.NET\\Framework\\v2.0.50727\\MSBuild.exe\" \"%1\" /t:clean /v:n /p:Configuration=Debug;Platform=\"AnyCPU\"\""

[HKEY_CLASSES_ROOT\SystemFileAssociations\.csproj\shell\Rebuild]

[HKEY_CLASSES_ROOT\SystemFileAssociations\.csproj\shell\Rebuild\command]
@="cmd.exe /K \"\"%%windir%%\\Microsoft.NET\\Framework\\v2.0.50727\\MSBuild.exe\" \"%1\" /t:rebuild /v:n /p:Configuration=Debug;Platform=\"AnyCPU\"\""

[HKEY_CLASSES_ROOT\SystemFileAssociations\.proj]

[HKEY_CLASSES_ROOT\SystemFileAssociations\.proj\shell]

[HKEY_CLASSES_ROOT\SystemFileAssociations\.proj\shell\Build]

[HKEY_CLASSES_ROOT\SystemFileAssociations\.proj\shell\Build\command]
@="cmd.exe /K \"\"%%windir%%\\Microsoft.NET\\Framework\\v2.0.50727\\MSBuild.exe\" \"%1\" /t:build /v:m /p:Configuration=Debug\""

[HKEY_CLASSES_ROOT\SystemFileAssociations\.proj\shell\Clean]

[HKEY_CLASSES_ROOT\SystemFileAssociations\.proj\shell\Clean\command]
@="cmd.exe /K \"\"%%windir%%\\Microsoft.NET\\Framework\\v2.0.50727\\MSBuild.exe\" \"%1\" /t:clean /v:n /p:Configuration=Debug\""

[HKEY_CLASSES_ROOT\SystemFileAssociations\.proj\shell\Rebuild]

[HKEY_CLASSES_ROOT\SystemFileAssociations\.proj\shell\Rebuild\command]
@="cmd.exe /K \"\"%%windir%%\\Microsoft.NET\\Framework\\v2.0.50727\\MSBuild.exe\" \"%1\" /t:rebuild /v:n /p:Configuration=Debug\""

Have fun

AddThis Social Bookmark Button

No comments: