Kinook Software Forums

Go Back   Kinook Software Forums > Visual Build Professional > [VBP] Third Party Tools

Thread Tools Rate Thread Display Modes
Old 04-06-2005, 05: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??

Reply With Quote
Old 04-07-2005, 08:07 AM
kinook kinook is online now
Join Date: 03-06-2001
Location: Colorado
Posts: 5,758
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 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
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

Thread Tools
Display Modes 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 Off
HTML code is Off

All times are GMT -5. The time now is 08:24 PM.

Copyright 1999-2019 Kinook Software, Inc.