csharp: Visual Studio 2005 - command line
I need to write a script in C# that makes new solution and project files, and builds them.
My understanding is that I need to write 开发者_如何学GoVS 2005 commands to accomplish this task. Can someone please tell me where to find a cheat sheet of C# commands? Or maybe there's a VS 2008 API for modifying/creating solution and project files?
Example:
Solution a = new Solution();
a.addProject("p.csproj");
a.Build();
...
I couldn't find this info after googling "C# commands, etc."
The solution and project files are just xml-documents, you can just create an XmlDocument and fill in the required stuff.
To compile the result you can use msbuild from command line.
精彩评论