Category "msbuild"

Intellisense not working in VSCode - OmniSharp Error

Intellisense has stopped working for me and whenever I run VSCode this error comes up in the OmniSharp Log. [warn]: OmniSharp.MSBuild.ProjectManager Fai

Azure devops build pipeline faild error MSB4062: The "IsTestFileByName" task could not be loaded from the assembly SonarQube.Integration.Tasks.dll

I am running a build pipeline with sonat tasks but when it arrives to the build task it fails and i got the following error : Here 'is my azure pipeline file:

Invalid expression errors when building .NET Framework solution with Github Actions

I'm trying to build and run test for my solution in Github Actions. App is written in .NET Framework 4.7.2 and when I build or test it locally with the same msb

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