15,290 questions
0
votes
1
answer
92
views
Jenkins doesn't use Nuget packages while building project with MSBuild
We are trying to bring our deployment and project building from our local PCs to a Jenkins server. We want to simply run a batch to compile everything with MS Build; I restructured everything, moving ...
-1
votes
0
answers
99
views
Managing interdependent projects in solution
Consider the following scenario:
I have a local NuGet store
Multiple libraries, e.g. generally used tooling are published as NuGet packages
Many packages depend on said generally used tooling and ...
0
votes
0
answers
43
views
Customize scoped CSS bundle route path in Blazor Web App
I created a Blazor Web App and I want to customize the route where <ProjectName>.styles.css is served. However app.MapStaticAssets() does not provide a way to do so. The docs about CSS isolation ...
1
vote
1
answer
94
views
How to publish utility executable as part of regular build?
My entry point project needs another project to be build as separate executable which is included in the output:
EntryPoint/bin/Debug/net10.0-windows/
Diagnostics.Utility/
Diagnostics....
0
votes
1
answer
56
views
Pass AssemblyCopyright as a parameter into .NET Framework project
I'm working with .NET Framework solution that contains 50+ C# projects. I have a GlobalAssemblyInfo.cs file where AssemblyCopyright is hardcoded, smth like this
[assembly: AssemblyCopyright("...
Best practices
0
votes
2
replies
313
views
Installation path of Visual Studio 2022 vs 2026
I am using the following cmd snippet to find the installation path of my Visual Studio installation:
for /f "usebackq tokens=1* delims=: " %%i in (`vswhere -latest -requires Microsoft....
1
vote
0
answers
66
views
Azure Functions .NET 8 – Files copied to bin but missing from publish ZIP (obj folder)
I'm working on an Azure Functions project targeting .NET 8
I have a Templates folder that I want to include in my deployment package.
Here is my .csproj configuration:
<ItemGroup>
<None ...
2
votes
1
answer
124
views
ClickOnce deps.json file has the wrong name
I am working on a ClickOnce SDK project for .NET 9. I have upgraded from .NET 4.8.
The problem is that the MyApp.deps.json file that is generated during build, gets renamed to app.publishMyApp.deps....
Advice
0
votes
2
replies
68
views
How to read property group related information in a build log?
This question is a follow-up of this previous question, but as it treats the situation from a completely different angle, I decided to write a new question.
I'm working with a C++ project in Visual ...
0
votes
0
answers
66
views
Individual settings for multiple developers in .NET Framework 4.8 web projects
I work with an old style .NET Framework 4.8 solution with many web application projects
(defined by <ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}...
0
votes
1
answer
79
views
`devenv` too slow to exit. `msbuild` not incremental [closed]
I'm trying get a compile error from visual studio into codex-cli/claude-code, without copy pasting. I'd like to switch between building from the command line and from the IDE. It's a c++ project.
...
6
votes
1
answer
256
views
How can I adjust the verbosity level in a custom MSBuild target?
I have a custom MSBuild target declared in my .csproj file like so:
<Target Name="AfterRestore" AfterTargets="Restore">
<Exec Command="./script/after-...
0
votes
1
answer
85
views
Is Visual Studio (not compiler or SDK) version check possible in Directory.Build.targets?
Is there way to write Condition property of <Target> section insuch way that target wouldn't be executed if IDE used is 2022 or above?
0
votes
1
answer
67
views
How to match patterns AdditionalIncludePaths metaproperty for compilation in Visual Studio
Most sources lead to something like this being writen in Directory.Build.targets file
<Project>
<ItemDefinitionGroup>
<ClCompile>
<AdditionalIncludeDirectories>%(...
3
votes
0
answers
386
views
I got exception after adding automatic configuration generation in C# project
I want to make certification when building application instead of manually creating it. I wrote a script to generate certificate and then call it from my .csproj file. But the problem is: when I run ...