Hi John,
You can use conditional compiler directives:
Here's an example from MSDN:
#Const CustomerNumber = 36
#If CustomerNumber = 35 Then
' Insert code to be compiled for customer # 35.
#ElseIf CustomerNumber = 36 Then
' Insert code to be compiled for customer # 36.
#Else
' Insert code to be compiled for all other customers.
#End If
--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE
"John" <jo**@nospam.infovis.co.uk> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
Hi
Is there a way to conditionally include parts of code in a vb.net project?
I am creating an app for two clients with slightly different requirements. I
figure if I can set the condition at the top of the project, I can compile
the same app for either of the clients.
Thanks
Regards