msbuild-14.0

MSBUILD 14.0 Visual Studio 2015 CustomBuild Command environment does not contain the result of a SetEnv even though Exec does

一世执手 提交于 2019-12-11 00:01:18
问题 I have used CoApp to create a nuget package to package some code generators (binaries). I want to be able to use these code generators in a msbuild custombuild step to generate the code I have a targets file that defines the following (using CoApp) <SetEnv Condition="'$(Platform.ToLower())' == 'x64' And '$(PlatformToolset.ToLower())' == 'v100' And ( $(Configuration.ToLower().IndexOf('debug')) == -1 )" Name="PATH" Prefix="true" Value="$(MSBuildThisFileDirectory)../..//build/native/bin/x64\v100

Disable code analysis when using MSBuild 14

不打扰是莪最后的温柔 提交于 2019-12-08 15:42:19
问题 I have a .NET solution containing several C# 6.0 projects. Every project references the StyleCop Analyzer via NuGet. Within Visual Studio, I have the possibility to distinguish between building and analyzing the code, but I don't see how to do this with MSBuild v14.0 on the command line (e. g. on a CI server). I'm calling msbuild mySolution.sln /t:Rebuild with the following options, none of them worked: /p:RunCodeAnalysis=False /p:RunCodeAnalysisOnThisProject=False /p:RunCodeAnalysis=False

msbuild 14 doesn't work without full .net framework installation

*爱你&永不变心* 提交于 2019-12-08 04:17:52
问题 I have a build machine with visual studio 2010 and multiple build targets. all the other targets that I use works as expected and for some reason the new build of version 14 for .net 4.6.1 doesn't work. When I'm executing the build from command line I get the following error: C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1097,5): warning MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.6.1" were not found. To resolve this, install the

Building Visual Studio 2015 C++ project (v140) by MSBuild Failed - v140 cannot be found

爱⌒轻易说出口 提交于 2019-12-03 07:32:18
问题 I have Visual Studio 2013 and 2015 installed side by side. I have just upgraded the combined solution (C#, C++, C++/CLI) to 2015 and set Platform Toolset to v140. The build from Visual Studio works fine, but it cannot be compiled from MSBuild. I use MSBuild 14 and MSBuild complains that is unable to find v140, but it is nonsense, because v140 is installed on the computer in "c:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140". The advice about upgrading the solution cannot be done,

Building Visual Studio 2015 C++ project (v140) by MSBuild Failed - v140 cannot be found

自作多情 提交于 2019-12-02 22:26:33
I have Visual Studio 2013 and 2015 installed side by side. I have just upgraded the combined solution (C#, C++, C++/CLI) to 2015 and set Platform Toolset to v140. The build from Visual Studio works fine, but it cannot be compiled from MSBuild. I use MSBuild 14 and MSBuild complains that is unable to find v140, but it is nonsense, because v140 is installed on the computer in "c:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140". The advice about upgrading the solution cannot be done, because the solution is already upgraded and there is no such item in solution context menu. If I switch