Category "msbuild"

git checkout slns between old and new csproj formats

We recently ran the csproj migration tool on our solution with 156 projects: dotnet tool install --global Project2015To2017.Migrate2019.Tool This worked very w

MSBuild on NET 5 Core projects produces different bin/x64 and bin/Debug folder structures

I am having an awful time understanding how MSBuild works with NET Core project files (csproj) on Windows 11. I have 71 NET Core C# project files (executables,

Failing to compile ASP.NET Web API with MSBuild giving a MSB3021 error

enter code here enter image description here I'm having a problem when trying to compile and build an ASP.NET Web API project targeting .NET6.0. For some reason

MSBuild ignoring /p:BuildProjectReferences=false on Azure build server

I've a solution with three projects in it: 2 C# WPF projects and 1 WIX project to create an installer. I've set up a build pipeline on Azure DevOps that referen

How to use the Jenkins MSBuild plug-in in a Jenkinsfile?

I have Jenkins v2.60.3 with the MSBuild Plugin v1.27 installed on Windows. I have configured the path to my msbuild.exe in Jenkins' Global Tool Configuration.

What is the right macro for platform?

I'm trying to write a pre-build event script that must be able to adapt the the build platform (Windows / Mac / Azure DevOps image) in my case. So far I have fo

error : The imported project was not found. Confirm that the expression in the Import declaration is correct, and that the file exists on disk

BUILD ERROR: When I load the solution file in Visual Studio, it says file failed to load. The full error says: C:\path\to\project.csproj : error : The imported

"C:\Microsoft.Cpp.Default.props" was not found

I have a project created in Visual Studio, 2013. The project file has the following properties: ToolsVersion="12.0", PlatformToolset = v120. I have Visual

Can I determine the .NET SDK version used when building from a .csproj or .targets file?

This is mainly to try to work around an annoying coupling of the .Net analyzers to the version of Visual Studio that the .NET SDK version has an affinity to. If

MSB3073 exited with code 1

Error 102 error MSB3073: The command "copy C:\Users\Bike Simulation\Desktop\testing_dll\DrivingSimulator_DLL\example\DrivingSimulatorTextClient....\bin\VS2010\

Build error: Reference PresentationCore could not be resolved

I have a WPF C# application hosted on GitHub attached to Travis. I configured my .travis-ci.yml this way: language: csharp solution: FaceDetection/FaceDetectio

Web Application build error with net6.0 framework, is already signed (NETSDK1177)

I am working on MAC and dotnet core 3.1, 5.0 and 6.0 versions are installed on my machine. I not able to build Web Application on my machine due to shared error

Developers command prompt in Azure DevOps

We have a team Foundation Server setup on premise. This is Azure-devops but a local setup. We have the ASP.Net code. The code base doesn't have a .sln file or

Jenkins MSBuild fails, error NETSDK1064: Package Microsoft.CodeAnalysis.Analyzers, version 2.9.3 was not found

I am trying to deploy a sample aspnet core project but Jenkins build fails. C:\Program Files\dotnet\sdk\3.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.Packa

What are the existing build targets for MSBuild?

MSBuild allows you to specify build-targets such as Build or Clean with -target:<build-target> (Example: MSBuild.exe -target:Clean). Of course, a develop

MSBUILD throws error: The SDK 'Microsoft.NET.Sdk' specified could not be found

I'm trying to build a solution using msbuild command line and I keep getting this error: error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be foun

MSBuild: How to conditionally use one of two targets with same name?

I've seen some answers to a similar question but not exactly the same and not with positive luck trying to use suggested solutions... so I'm trying something li

Include pdb files into my nuget (nupkg) files

I am using MSBuild to generate my nuget packages. Is there any command I need to set, to allow it to include my .pdb files, for stepping into the source while

error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700' in CppFile1.obj

I was converting my projects from VS2010 to VS2012.But I am getting an _MSC_VER linker error in certain projects. After a long surfing through google I found ou

CS8032 warning with Microsoft.CodeAnalysis out of no where

I've had a solution with a large number of projects in that has built fine since we switched to .NET6 then suddenly I am getting for every project this warning