PC Review


Reply
Thread Tools Rate Thread

compile options

 
 
William
Guest
Posts: n/a
 
      7th Jul 2004
I read somewhere that VB.net can exclude code from the release configuration
that was only used for testing during the development stage. If I remember
correctly it went something like:

#if debug
'code that you do not want in release compile goes
'here
#end if

but my head is filled with so many other things that I am learning in order
to make the switch from vb6 to Net that I can't remember. Can someone point
me in the right direction.

Thanks


 
Reply With Quote
 
 
 
 
Richard Myers
Guest
Posts: n/a
 
      7th Jul 2004
Hi William ,

Your asking about a really flexible part of the complier with a ton of
alternative examples and uses so im not going to bother getting into it
here.

So check out the docs under the terms:

"Conditional Compilation Directives"

hth
Richard


 
Reply With Quote
 
William
Guest
Posts: n/a
 
      7th Jul 2004
Thank you very much Richard

"Richard Myers" <richard.spam-(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi William ,
>
> Your asking about a really flexible part of the complier with a ton of
> alternative examples and uses so im not going to bother getting into it
> here.
>
> So check out the docs under the terms:
>
> "Conditional Compilation Directives"
>
> hth
> Richard
>
>



 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      7th Jul 2004
* "William" <(E-Mail Removed)> scripsit:
> I read somewhere that VB.net can exclude code from the release configuration
> that was only used for testing during the development stage. If I remember
> correctly it went something like:
>
> #if debug
> 'code that you do not want in release compile goes
> 'here
> #end if


\\\
#If DEBUG Then
...
#End If
///

Remember that you can get information about a language element by
placing the caret on it and pressing the F1 key (assuming help is
installed locally).

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VBAProject name compile error, not defined at compile time Matthew Dodds Microsoft Excel Programming 1 13th Dec 2005 07:17 PM
asp.net compile options robin9876@hotmail.com Microsoft ASP .NET 1 20th Apr 2005 01:23 AM
Compile Options A.M Microsoft C# .NET 6 21st Sep 2004 11:05 AM
can i fine tune VS.Net compile/ use parallel process when compile? norton Microsoft Dot NET 0 1st May 2004 07:09 PM
command line compile options =?Utf-8?B?R2FyeSBP?= Microsoft VB .NET 3 23rd Jan 2004 12:39 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:59 PM.