Unsafe code and visual studio 2008
I had some code I was using to apply a smoothing filter to an image that used the unsafe tag in visual studio. Unfortunately all the references I found about allowing this in the compilation weren't referring to how to set this up for a web project. It actually needs to be set in the web.config file:
....
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" compilerOptions="/unsafe">
The important part being the compilerOptions at the end.
....
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" compilerOptions="/unsafe">
The important part being the compilerOptions at the end.

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home