Compiling a code behind file as unsafe

  • Thread starter Thread starter Jeronimo Bertran
  • Start date Start date
J

Jeronimo Bertran

How can I modifiy the compiler options in a Visual Sutido.net project so I
can include the /unsafe compiler option for one of my code behind cs files?

Thanks,

Jeronimo
 
Hi Jeronimo,

To set this compiler option in the Visual Studio development environment,
please perform the following steps:

Open the project's Property Pages dialog box. For details, see Setting
Visual C# Project Properties.
Click the Configuration Properties folder.
Click the Build property page.
Modify the Allow unsafe code blocks property.

To set this compiler option programmatically, please refer to the
AllowUnsafeBlocks Property.

Does is answer your question? If I have misunderstood your concern, please
feel free to let me know.

Best regards,

Jacob Yang
Microsoft Online Partner Support
Get Secure! ¨C www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Back
Top