Page 1 of 1

MSBUILD - Error: MSB4019

Posted: Tue Oct 18, 2016 2:51 am
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