471,122 Members | 848 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,122 software developers and data experts.

Adding files to .csproj programmatically

Our project is set up so that .cs source files are automatically
generated.
I would like to automate the adding of the .cs source files to the
project (.csproj) file automatically.

Are there APIs or scripts that I can run to add the source files to
the project programmatically?
Nov 16 '05 #1
1 6856
There's an automation interface to dev studio that may have the
functionality you are looking for. I use it to automate our build process,
and while I haven't tried to add a source file to the project I'd be
surprised if it didn't support it.

To access it via C# add a reference to the envdte assembly. This gives you
access to the DTE object and the envDte namespace. This object represents
the Visual Studio .NET automation model. You can get more information here:
http://msdn.microsoft.com/library/de...gdteobject.asp

Dave
"SD WinGirl" <ha********@yahoo.com> wrote in message
news:42**************************@posting.google.c om...
Our project is set up so that .cs source files are automatically
generated.
I would like to automate the adding of the .cs source files to the
project (.csproj) file automatically.

Are there APIs or scripts that I can run to add the source files to
the project programmatically?

Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by SD WinGirl | last post: by
1 post views Thread by SD WinGirl | last post: by
2 posts views Thread by Dan Baker | last post: by
1 post views Thread by -DG- | last post: by
2 posts views Thread by mobilegolfer | last post: by
reply views Thread by Henning Krause [MVP - Exchange] | last post: by
2 posts views Thread by Al Pilon | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.