Issue with clickonce bootstrapper and msbuild

后端 未结 9 1203
长发绾君心
长发绾君心 2020-12-28 08:25

I have a CruiseControl .NET build server running on Windows Server 2003, and I am trying to build and publish my ClickOnce application using msbuild.

Everything is w

9条回答
  •  南笙
    南笙 (楼主)
    2020-12-28 09:06

    I experienced this same error via my TeamCity build server. The cause in my case was that I was running an MSBuild task against my .sln file, with a 'MyProject:publish' target. In this case, the solution+projecth had been updated to target .NET v4.5, but the build server was still configured to use MSBuild Tools 4.0 and .NET v4.0.

    Took me a little while to work out the inconsistency between working and non-working branch builds.

提交回复
热议问题