Skip to main content

Questions tagged [msbuild]

Microsoft Build Engine, also known as MSBuild, is a build platform for managed code and was part of .NET Framework.

msbuild
0 votes
0 answers
21 views

Packing multiple projects into singular NuGet package

I would like to pack a Roslyn source generator and another project that contains the attributes the source generator acts upon together into one NuGet package. To do this, I've decided that using a ...
-1 votes
0 answers
33 views

Problem building Windows Service project using CLI (C#)

I want to build a Windows Service project using CLI (dotnet or msbuild) to be able to make continuous delivery of a new project. No problem to build a Windows Application, but, if I use dotnet build ...
0 votes
1 answer
22 views

Build a single project respecting solution-level configuration mappings

I have a solution (My.sln) with two projects App.csproj - application Lib.csproj - class library The App project references the Lib project via the <ProjectReference/> I have configuration ...
1 vote
0 answers
33 views

Build vcxproj with msbuild and warnings disabled [duplicate]

I have an Visual Studio example project with the purpose to generate compiler warnings. Warnings are enabled in the project settings. I want to build the project on the command line with msbuild and ...
0 votes
0 answers
32 views

Exclude projects in nested folders while using dotnet build of solution file

Folder strucure of our project is below. While building the solution, we need to exclude some projects present. Please let me know if there is a way to exclude some projects while building a solution ...
0 votes
0 answers
32 views

dotnet build "Could not resolve this reference. Could not locate the assembly" error but only occurs on CI?

I have a simple CI that builds my solution on GitLab. The project consist of a .NET Core project and a WCF project. I am encountering an error after installing the latest version of Newtonsoft JSON ...
0 votes
1 answer
29 views

Issue with Nuget restore for .Net core application using dotnetbuild

We have our application developed in .Net 6. While using dotnet build/msbuild nuget restore is getting error with letter 'v' we are using along with version number. Please let me know if there is away ...
150 votes
11 answers
32k views

"Treat all warnings as errors except..." in Visual Studio

In Visual Studio, I can select the "Treat warnings as errors" option to prevent my code from compiling if there are any warnings. Our team uses this option, but there are two warnings we would like to ...
0 votes
1 answer
175 views

Failed to find TextTransform.exe on VDI in Visual Studio 2019

I have a C# project which is giving following error in VS2019. "The "TransformOnBuildTask" task failed unexpectedly. System.Exception: Failed to find TextTransform.exe at Clarius....
2 votes
2 answers
12k views

VSTS Build Failure MSB1009 Project File Does Not Exist

I have a simple Solution tree: Repository: DFW-SPF-Website |-- Solution: DFWSPFWebsite |-- |-- Project: DFWSPFWebsite In my previous post I explained the contortions I had to go through to get VSTS ...
0 votes
1 answer
44 views

Building wix bundle overwrites package

Overview: I am making an installer for a web app build on asp.net 8. I started with just doing an msi installer (Package) with a custom UI. I then wanted to also include the installers for the dotnet ...
0 votes
0 answers
48 views

MSBuild detect if signed driver is same as previous built non-signed driver (prevent re-signing via caching)

My organization has a driver that now needs to be signed by both our organization and by Microsoft. We have a build process that runs on windows as a batch file, it runs msbuild for all of the ...
7 votes
2 answers
14k views

SonarScanner giving 'MsBuild.exe' is not recognized as an internal or external command on TFS 2018

I'm adding SonarQube to existing TFS 2018 builds. I was following the directions for downloading Community Edition 7.4 located here https://docs.sonarqube.org/display/SCAN/Install+the+SonarScanner+for+...
1 vote
2 answers
78 views

Directory.Build.props only respected when building .sln file

When I build my projects with the MyConfig target, I want the code to be optimized, and I don't want any .pdb files. To achieve this, I have created a Directory.Build.props file like this in the root ...
-1 votes
1 answer
3k views

Error LNK2038 : mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in XX.obj [duplicate]

I'm very new to c++ and was getting this error while trying to build Release versions of my c++ OpenGL project. After some googling I went ahead and changed the Runtime Library in the C/C++ > Code ...

15 30 50 per page
1
2 3 4 5
1011