Write a visual studio project from code

Is there a way to write a Visual Studio Project project file, or do I need to look at the XML format and write it manually? Is there any lib for this in the .net framework (3.5)?

I am using vb.net, but C # will also work.

+3
source share
4 answers

Visual Studio since version 2005 uses the format http://www.informit.com/guides/content.aspx?g=dotnet&seqNum=472 or search the Internet for additional examples.

For programmatic access, you can use classes in the namespace Microsoft.Build.BuildEngine. Perhaps the class Projectis of most interest to you.

+6

. Visual Studio XML, XML-, . , GUID, , Visual Studio.

+1

There is no support for this support. The Visual Studio project file format refers to Visual Studio. There may be support in MSBuild libraries, but you will need to include them as a link and interact with it that way. What are you trying to do, does it require you to create a VS project file?

The link provided here should provide you with what you need.

0
source

Source: https://habr.com/ru/post/1702680/


All Articles