ePezhman
ePezhman

Reputation: 4010

How to generate Visual Studio Projects programmatically in my windows application?

I'm developing some generator application and I need to generate Visual Studio Projects with some configuration (Like a MVC 3 project), is there anyway to do so? thanks

Upvotes: 1

Views: 1004

Answers (2)

beegz
beegz

Reputation: 30

You might want to take a look at CMAKE to see how they are doing this - they do generate Visual Studio Projects among many others and have the source available. So yes, it should be possible.

Upvotes: 1

gregpakes
gregpakes

Reputation: 4535

A Visual Studio project file is simply an XML document. So as long as you get the syntax and structure correct, you can generate it any way you please.

You can also programmatically create project files using the Visual Studio Automation Object Model (DTE). There is a good getting started guide here: http://msdn.microsoft.com/en-us/library/ms228767(v=vs.110).aspx

Upvotes: 2

Related Questions