Questions tagged [msbuild-14.0]

MSBuild is a short for Microsoft Build, which is a tool to build .net applications. Use this tag for questions relating to MSBuild v14.0.

MSBuild is a short for Microsoft Build, which is a tool to build .net applications. You also can create scripts to automate tasks related with build process in .net applications. This tag is realted with msbuild v14.0.

13 questions
17
votes
4 answers

Disable code analysis when using MSBuild 14

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…
mu88
  • 4,156
  • 1
  • 23
  • 47
11
votes
2 answers

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

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…
Tomas Kubes
  • 23,880
  • 18
  • 111
  • 148
4
votes
4 answers

MSBuild Warning MSB3884 when building from command line

When building our solution on the build server (using Jenkins) with MSBuild 14 following warning occurs: C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.VisualBasic.CurrentVersion.targets(133,9): warning MSB3884: ruleset file…
Toni Wenzel
  • 2,081
  • 2
  • 24
  • 39
3
votes
1 answer

MSBuild fails for solution with project dependencies

The build for my solution, which contains multiple projects, suddenly appears to be broken and the cause of the issue isn't clear. All of the projects in the solution target the same framework (4.5.1), however, some of the projects' dependencies…
DaRussian
  • 173
  • 3
  • 13
3
votes
1 answer

Building with MSBuild 14.0/C# 6.0 in AppVeyor

I am trying build a library with C# 6.0 code in AppVeyor. I have tried configurations in this update from AppVeyor, this discussion and this blog post. Here's what I did: Select Visual Studio 2015 as operating system from AppVeyor web interface Add…
Ufuk Hacıoğulları
  • 37,978
  • 12
  • 114
  • 156
2
votes
1 answer

MSBuild 14 produces executable requiring older dependency than referenced

I have a VS 2015 C# solution with a main executable and some library projects. This is a code analyzer tool, it uses Roslyn and MSBuild as well, so the main assembly requires Microsoft.CodeAnalysis and Microsoft.Build from NuGet. My recent task was…
Tejes
  • 144
  • 1
  • 10
2
votes
1 answer

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

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…
silver
  • 1,633
  • 1
  • 20
  • 32
2
votes
1 answer

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

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…
1
vote
0 answers

MSBuild throws The SDK 'Microsoft.Build.NoTargets' specified could not be found

I'm using .net 4.7.2 runtime and MSBuild 14. I have imported these two targets into a project file
1
vote
0 answers

MSBuild opens a new instance of Visual Studio

We have been using Visual studio 2010 - 2013 on the build server using the following MSBuild command so far: Set msBuilder=%windir%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe However recently we moved to VS 2015, and had to uninstall all other…
sm2mafaz
  • 392
  • 3
  • 15
1
vote
0 answers

Include Microsoft.Build.dll in Clickonce installation

I made a very simple app that makes use of VS 2015 build tools. However when I try to install it to client machine by Clickonce Microsoft.Build.dll is not distributed, so app fails. I checked Application Files dialog on Publish tab - but it is not…
0
votes
1 answer

msbuild C# 14 compiler doesn't ignore warning 3021

I have the following pragma in one of the generated C# class and it is used to ignore a CLSCompliant warning #pragma warning disable 3021 This works perfectly when compiling with msbuild 12. After upgrading my project to use msbuild 14, this…
Mohamed BOUZIDI
  • 125
  • 1
  • 7
0
votes
0 answers

Build MSBuild target without dependencies defined in solution

I'd like to invoke MSBuild to build a single project inside a solution. Therefore I use MSBuild MySolution.sln /t:MyProject Since I have some sophisticated deployment process and I want to save time, I need to build just the one project, but…
peter-f-s
  • 11
  • 2