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.

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 ...
dopr's user avatar
  • 1
-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 ...
Shionigami's user avatar
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 ...
Challex's user avatar
  • 52
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 ...
jdistro07's user avatar
  • 165
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 ...
AMDI's user avatar
  • 963
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 ...
Serg's user avatar
  • 4,188
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 ...
applecider's user avatar
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 ...
mortenbock's user avatar
0 votes
1 answer
54 views

How do I run npm build as part of dotnet publish

I have an ASP.NET Core 8 web project, where the client source code lives in a client folder. I also have an npm run build that will compile those client files, and copy the output to the wwwroot ...
mortenbock's user avatar
0 votes
3 answers
53 views

Getting exact cl.exe call when building a visual studio project or solution

When building a visual studio project or solution, how can I get the actual call to cl.exe that is executed? For instance, I would like to see something like cl.exe /c /I"C:\Path\to\Include" ...
roi_saumon's user avatar
0 votes
0 answers
46 views

Can I build a project targeting .NET 8 using msbuild from older version of Visual Studio?

I have an older version of Visual Studio 2022 that came out with .NET 7. Due to system requirements reasons I cannot upgrade the Visual Studio 2022 to the most recent version that supports .NET 8. I ...
MMDR's user avatar
  • 1
0 votes
0 answers
42 views

Build csproj on Visual Studio without building references

Lets say you have a solution with projects A and B. A needs to B be build at least once so in order to be built with MSBuild i need it to be some kind of reference to setup the order of build. But ...
TSDrake's user avatar
0 votes
1 answer
90 views

MAUI .NET 8 on Android - throwing an exception

I have created a new MAUI .NET 8 project and migrated the Xamarin forms project code. When I tried to run the project with the Android device with Visual Studio Windows, which threw the exception ...
Anitha v's user avatar
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 ...
AMDI's user avatar
  • 963
0 votes
1 answer
40 views

Parsing .targets file with ElementTree does not find specified tag

I am trying to use ElementTree to parse information out of a .targets file from a NuGet package. What I am trying to find is the tag <AdditionalIncludeDirectories>. I am using the following ...
meetaig's user avatar
  • 915

15 30 50 per page
1
2 3 4 5
1011