I'm attempting to create a 3.5 build from a 4.0 set of code. It almost works the following msbuild options: /tv:3.5 /p:targetframeworkversion=v3.5
. The issue is that I get a conflict for those classes that have moved to new assemblies in 4.0, for example:
error CS0433: The type 'System.Web.Security.RoleProvider' exists in both 'c:\Windows\Microsoft.NET\assembly\
GAC_MSIL\System.Web.ApplicationServices\v4.0_4.0.0.0__31bf3856ad364e35\System.W
eb.ApplicationServices.dll' and 'c:\Windows\Microsoft.NET\Framework\v2.0.50727\
System.Web.dll'
How do I tell msbuild to pickup the System.Web assembly? Can I tell it to ignore the 4.0 directory?