Questions tagged [msbuild]
Microsoft Build Engine, also known as MSBuild, is a build platform for managed code and was part of .NET Framework.
msbuild
15,165
questions
0
votes
1
answer
130
views
MSBuild outputting all files in uppercase
We are using Azure Devops to build our .NET projects and making use of the Visual Studio build task. Our build server has decided to start outputting all files in uppercase. This is causing subsequent ...
0
votes
0
answers
19
views
Compiles but doesn't publish executables or dll when running build through MSBuild on Jenkins
I have created a freestyle project on Jenkins to build a .NET Web API application that compiles but doesn't output any executables(.exe) or class library(.dll) after a successfull build. I have ...
1
vote
1
answer
77
views
Variable in Directory.Build.Props not working for old-style csproj format
I tried using Directory.Build.props to setup some variables for use with our different project types.
<Project>
<PropertyGroup>
<!-- For SDK style c# projects -->
&...
0
votes
1
answer
90
views
After Upgrade to Maui, Build exception "error XAGJS7001: System.NullReferenceException" at Xamarin.Android.Tasks.XAJavaTypeScanner.GetJavaTypes
Background:
An app that runs on Windows, Android, and iOS.
Separate projects. Xamarin.Android, Xamarin.iOS, WPF.
NOT Xamarin.Forms. We do our own rendering via SkiaSharp and OpenGL.
Almost all source ...
0
votes
1
answer
138
views
MSBuild Net 8 property for build as single file
I am using Azure DevOps Server (on Prem) and am trying to build a solution (windows service, C#) for Net 8.0.204.
I have it working, and it is producing the Artifact that I can use in the release.
The ...
0
votes
1
answer
55
views
.NET 8.0 Project fails build Could not load System.Runtime - Reference Assemblies should not be loaded for execution
I have a project that is multi-targeting net8.0-windows and net48. In both configurations it has no warnings or errors. It builds fine in net48, but when I try to build the project in net8.0-windows ...
0
votes
0
answers
24
views
MSBuild is not deploying to an internal server from a GitHub self-hosted runner
I'm trying to get a self-hosted runner which I installed on one of our internal servers and configured with the repository we have in our GitHub organization, to deploy to another internal server. The ...
0
votes
1
answer
28
views
Obtaining the time as linuxtime in an MSBuild .targets file
I'm trying to inject a numeric linux time value (i.e., seconds since the start of the Linux epoch) for when a build was made as a pre-processor definition in a C++ project. The below code works for ...
0
votes
0
answers
48
views
System.ArgumentException: The path is empty. (Parameter 'path') while Executing file 'NSwag.json' with variables 'Configuration=Release
I am upgrading the API project "UserAuthContextService.AppServices" from
.NET6
Nswag.msbuild v13.18.0
To
.NET 8.
NSwag.msbuild v14.0.7
According to the post NSwag v14 announcement
and https:/...
0
votes
0
answers
136
views
How to specify the output folder when publishing a MAUI App for Windows (WinUI3)?
I am not sure if this is a bug or it's by design and I need another switch but when I run this:
PS D:\Temp\MyProject> dotnet publish -f net8.0-windows10.0.19041.0 -c Release -p:...
0
votes
0
answers
31
views
Error in Jenkins build using msbuild when no error in Visual Studio
I am new to Jenkins and msbuild (Visual Studio Build Tools 2022 is installed!) and am getting an error when I build from Jenkins, which I do not get when I build the solution in Visual Studio. The ...
0
votes
0
answers
11
views
Why would the self-hosted runner raise a warning about not being able to find the project file?
I maintain an old ASP.NET application I upgraded to .NET 4.5.2 several years ago. The solution is comprised of 9 VB.NET projects. This is an intranet application. The guy who wrote the app years ago, ...
0
votes
0
answers
56
views
MAUI project not building on F5 after changes to the XAML, but it used to
When I make a change to the XAML of my project (say change the text in a label) the changes are reflected in the runnning app but if I re-run the app I get the old version of the file. If I build the ...
0
votes
1
answer
88
views
Visual Studio 2022 - CSPROJ AssemblyAttribute Shows as Missing File
I'm trying to add a custom build time attribute to my assembly following the post here: https://blog.jermdavis.dev/posts/2023/build-metadata-dotnet
I've added the following class file for the ...
0
votes
1
answer
393
views
Setting <UseMaui>true</UseMaui> does not automatically include NuGet package references?
I'm making a MAUI Android app and some time ago I updated the target framework to .NET8. Since then, I'm getting this warning about Microsoft.Maui.Controls not being automatically included.
Warning ...