Using MSBuild with Hudson?

I am creating a CI server using Hudson to deploy .NET applications. My problem is that it keeps throwing an error:

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. 

Do I need to have VisualStudio on my CI server?

+4
source share
3 answers

It’s annoying that this Microsoft.WebApplication.targets file only comes with Visual Studio, and not with the simple .NET SDK.

In principle, you need to be able to work with a working installation of Visual Studio and copy this file. However, it is not as simple as copying a single file. As you copy more and more things, you are wondering where you cross the line from “repairing your SDK installation” to “re-creating the Visual Studio installation” (and therefore requires a different license).

Thus, installing Visual Studio is the only way to create projects that require Microsoft.WebApplication.targets. Non-web projects work fine.

+1
source

You need to install the latest version of the Windows SDK, as well as the built-in shell VS2010.

References:

Windows SDK.Net 4

VS2010 Integrated Shell

+1
source

Just install VS2010 in your hudson host machine.

0
source

Source: https://habr.com/ru/post/1332131/


All Articles