I'm getting an error about not being able to find Microsoft.XXX.targets. How do I fix this?
Possibility 1: Could be related to the .TARGETS file rename
For the Beta 1 release, all of the ""MSBuild"" .TARGETS files were renamed to follow our recommended naming convention. The renames are as follows:
| Old name (pre-Beta1) | New name (Beta 1 and beyond) |
| ""CSharp.targets"" | ""Microsoft.CSharp.targets"" |
| ""VisualBasic.targets"" | ""Microsoft.VisualBasic.targets"" |
| ""VisualJSharp.targets"" | ""Microsoft.VisualJSharp.targets"" |
| ""Framework.targets"" | ""Microsoft.Common.targets"" |
So ... if you are using a VS project file that was created using Beta 1 bits, but are trying to load that using a "Pre-Beta 1" drop, then you might get this error. If you must do this, you could try editing the project file on the line that says:
<Import Project="$(MSBuildBinPath)\Microsoft.XXX.targets" />
and change it to use the old name. But that still may not be guaranteed to work because there have been other breaking changes in the project file format.