|I'm trying to build a C# Project using Msbuild.exe|
Small intro abt msbuild.exe:- Its an application which is used to build Visual studio projects even though visual studio is not installed in the system.
When a right click is made on the sln files (which is the project file) an new option "Build" was created (using regedit) and the option "build" was pointed to a script which is mentioned below:-
So for every sln files when a right click is made and Build is selected the above script will be executed.
The issue is i need to use the corresponding file name in place of D:\Project\Computing.sln.
For eg:- if i build a sln file placed in "D:\New Project\New Computing.sln" , "D:\Project\Computing.sln" have to be replaced with the new file name.
I need to take the sln filename as an argument and pass it to the script. The batch has to read the file name which im doubting whether it is possible..
Please provide yours Ideas and Suggestions.