MSBUILD - Error: MSB4019

Find Tips and tricks on how to better use the Zeus IDE. Feel free to post your own tips but please do not post bug reports, feature requests or questions here.
Post Reply
jussij
Site Admin
Posts: 2482
Joined: Fri Aug 13, 2004 5:10 pm

MSBUILD - Error: MSB4019

Post by jussij »

After importing a Visual Studio solution file into Zeus and trying to build that solution from inside Zeus can report this error:
C:\Projects\Test\.csproj(122,3): error MSB4019:

The imported project "C:\Program Files\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" was not found.

Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
This is caused by the fact the Visual Studio environment variables have not be correctly configure.

To fix this create a shortcut on the desktop using these details:

Code: Select all

    File: C:\Users\<User Name>\AppData\Local\Programs\Zeus\ze.cmd
     Run: Minimized
Note: The <User Name> represents the user's name. Also check that the ze.cmd file exists as this file is created by the Zeus installer.
In addition, if the Zeus installer had been run for all users this ze.cmd file will then be found in the location shown below:

Code: Select all

c:\Program Files (x86)\Zeus\ze.cmd
Using this new shortcut to the ze.cmd file, Zeus will start with all the Visual Studio environment variables in place which then means the msbuild should then run fine :)

Cheers Jussi
Post Reply