Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] Third Party Tools
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 04-06-2005, 04:57 PM
fkish fkish is online now
Registered User
 
Join Date: 06-26-2003
Posts: 11
C# unsafe mode

I'm trying to compile a C# sln that compiles in the IDE but not in Visual Builder.

The error message says "Unsafe code may only appear if compiled with /unsafe"

The projects are set to "Allow Unsafe Code Blocks = True"

I took a guess and added /unsafe as Option but the compiler did not like that.

Any ideas??

Thanks
Frank
Reply With Quote
  #2  
Old 04-07-2005, 07:07 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
Not really. I doubt it's actually VBP itself causing this -- the Make VS.NET action ultimately invokes the VS.NET command-line compiler to perform an actual compile. If you check the 'Show command-line' on the Options tab, build, then copy and paste the devenv.com command-line from the build output to a Command Prompt and run it there, you should get the same behavior. You could then open a support incident with Microsoft to determine why it's doing that.
Reply With Quote
  #3  
Old 02-21-2007, 07:57 AM
wellilein wellilein is online now
Registered User
 
Join Date: 11-30-2005
Posts: 53
C# unsafe mode

This is probably a problem of your developer.

Developers typically build Debug configurations. So when he introduced unsafe code, he switched on the [x] Allow unsafe code flag in the project properties.

What he probably didn't do is to turn that flag on for release builds.

Open MS VS, go to Project Properties / Build and have a look at the flags for different releases.

That helped me.
Reply With Quote
Reply


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 Off
HTML code is Off



All times are GMT -5. The time now is 12:50 AM.


Copyright © 1999-2023 Kinook Software, Inc.