How to exclude files from a project through code?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How to exclude files from a VS.Net project through code when they are built
(especially in VB.Net and Asp.Net and C#)
 
Vijay,

I don't believe that this is possible in .NET 1.1. In .NET 2.0, you
will be able to modify the project file so that it can accept conditions
(and you can write your own tasks which will affect the build output through
the MSBUILD engine).

However, I don't know why you would want to do this. Why not just use a
DEFINE statement and have different build configurations based on what you
have defined?

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top