You try to open an MVC2 project that worked on a previous machine but won’t open on your new machine? The error message you get when you try to open the project is:
error MSB4019: The imported project “C:\Program Files\MSBuild\Microsoft\VisualStudio\v9.0\WebApplications\Microsoft.WebApplication.targets” was not found. Confirm that the path in the
declaration is correct, and that the file exists on disk.
Possibly your new machine has never had Visual Studio 2008 on it, whereas your old machine did. In which case the solutions is:
- Find a machine on which VS2008 has been installed
- Copy the contents of C:\Program Files\MSBuild\Microsoft\VisualStudio\v9.0\WebApplications to your new machine