Isseu with Project-less ASP.NET 2.0 - where are compiler conditional symbols?

H

Hossein Farkho

I had a ASP.NET 1.1 project with 2 ".csproj" files, each one had different
sets of compiler symbols (directives) so I could use the same code and
compile two different versions of the project very easily.

After converting to ASP.NET 2.0, since there is no project file, there is no
way to set symbols in VS 2005 IDE. Now I am looking for a solution. I simply
don't want to maintain two different code sets or change a constant manually
before each compile.

If I can put #define XYZ somewhere that all my .cs files can see it and
based on that the #ifdef XYZ sections compile, I'll be all set but it looks
like the scope of #define is only within the same file and there is no way
to share #define among multiple files.

I will appreciate your suggestions.

HF
 

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

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top