473,405 Members | 2,210 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

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

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
Nov 30 '05 #1
1 1482
The web.config now allows you more interaction with the compiler.
Specifically, in your case, the compilation and compiler elements of the
web.config allow you to pass parameters, such as defines, to the compiler.

Check out:
http://forums.microsoft.com/MSDN/Sho...37821&SiteID=1

Karl

--

MY ASP.Net tutorials
http://www.openmymind.net/

"Hossein Farkho" <hfarkho AT adessosystems.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
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

Nov 30 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: public heath vb developer | last post by:
We have a solution with 29 projects including a main menu and 28 dlls. One of the projects (Project B) was created by copying an existing project (Project A), making changes including the assembly...
5
by: David Webb | last post by:
The problem started when the Working Folder for a project was somehow set to the folder of another project. I set the correct working folder in VSS and deleted the .vbproj files that had been...
0
by: Patty O'Dors | last post by:
Hi I am experiencing the following issue when building an ATL component that is tested with c#: The ATL project builds first, then the C# project, as the ATL DLL is a dependency of the C#...
2
by: Vish | last post by:
Hi all, I have a VS.NET (2005 BETA2) solution that has five winforms projects. Here are the details. Project-A (Main, startup project), references Project-B (class lib project) Project-B (Class...
2
by: Rudy Ray Moore | last post by:
How can I modify the project build order of a multi-project workspace under "Visual Studio .net 2003 7.1 c++"? I tried to modify the .sln by hand to influence the build order, but it didn't seem...
1
by: Jerad Rose | last post by:
Hello, I have searched all over for the answer to this, to no avail. I have a web project already set up and running on a remote server, that I created from my home computer. I am now trying...
11
by: Dave | last post by:
I copied the project files from an ASP.NET project on one computer and want to create the project on another computer, There is no connection between the two computers so I simply copied the...
4
by: Brad | last post by:
I'm not one to rant or flame....so please excuse me while I do so for this once. I've now spent a bit of time working with VS2005 beta 2 to see how it functions for web development, especially how...
7
by: Mantorok | last post by:
Hi all We have an ASP.Net project (and the Solution) under source-control. Here is the example - I create the Solution, I create an ASP.Net project and then check it all in to source control,...
29
by: Tony Girgenti | last post by:
Hello. I'm developing and testing a web application using VS.NET 2003, VB, .NET Framework 1.1.4322, ASP.NET 1.1.4322 and IIS5.1 on a WIN XP Pro, SP2 computer. I'm using a web form. How do I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.