Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Write visual studio project from code

Is there any way to write a Visual Studio Project file easy or do i have to look at the xml format and write it by hand? Is there any lib for this in .net framework(3.5)?

Im using vb.net but c# would also work..

like image 450
Peter Avatar asked Sep 01 '26 21:09

Peter


1 Answers

Visual Studio since version 2005 uses the MSBuild format to store C# and VB project files.

You could read this primer http://www.informit.com/guides/content.aspx?g=dotnet&seqNum=472 or search the Web for further examples.

For programmatic access you could use the classes in the Microsoft.Build.BuildEngine namespace. Probably the Project class is of most interest to you.

like image 140
Dirk Vollmar Avatar answered Sep 03 '26 11:09

Dirk Vollmar