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:\Program Files\Zeus\ze.cmd
     Run: Minimized
Now if you run the build from inside an instance of Zeus created from that shortcut the build will run fine :)

Cheers Jussi