SmartestVEGA
SmartestVEGA

Reputation: 8889

Error while deploying asp.net website!

Line 108:    <compilers>
Line 109:      <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
Line 110:        <providerOption name="CompilerVersion" value="v3.5"/>
Line 111:        <providerOption name="WarnAsError" value="false"/>
Line 112:      </compiler>

Could we recompile the project using .NET Framework Version 2.0.50727, as 3 or 3.5 frameworks aren't on our production server? I developed it in vs2008

Upvotes: 0

Views: 107

Answers (2)

Rory
Rory

Reputation: 2742

There is no need to use VS2005, just open the project properties dialog and change the "Target Framework" back to ".NET Framework 2.0" to make use of VS2008's multi-targeting functionality. As Daniel has mentioned, your project wont compile if you have used any features from the newer .NET versions.

Upvotes: 0

Daniel Elliott
Daniel Elliott

Reputation: 22857

It depends on whether you have used any of the 3.0/3.5 goodness; implicit typing, Linq et al.

Kindness,

Dan

Upvotes: 2

Related Questions