I have an ASP MVC2 web project that I developed using VS2008. I recently upgrade to VS2010. I went through the upgrade wizard the first time I open the project in VS2010. When I came to the "Do you want to convert this site to use .net framework version 4" question I answered "no". This is because I wanted to build against .net 3.5 so that I know I can deploy to the production servers without needing to upgrade them to .net 4 first. It works fine locally (and is still targetting .net 3.5) but when I try to build it using the command line invocation of msbuild that our build script uses I get the following error:
vbc : Command line error BC2026: warning number '42353' for the option 'nowarn' is either not configurable or not valid
vbc : Command line error BC2026: warning number '42354' for the option 'nowarn' is either not configurable or not valid
vbc : Command line error BC2026: warning number '42355' for the option 'nowarn' is either not configurable or not valid
Is there some new version of msbuild for 3.5 which understands these warning codes? Yes, I can just remove the three codes from the .vbproj file, but I still count this as a bug - when I answered "no" to the upgrade question I expected to be able to build the project using the .net 3.5 msbuild that I have always used.
The msbuild there reports itself as "Microsoft (R) Build Engine Version 3.5.30729.1". On my development machine it reports as "Microsoft (R) Build Engine Version 3.5.30729.4926" so there is a difference there, but I woldn't have expected it to be a problem like this given it's the build number only that changes - or?
My development machine is Windows 7 while the build machine (and production machine) is Server 2008.