All Questions
691
questions
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" ...
0
votes
1
answer
69
views
Build Boost with Conan 2.0 fails with MSVC
I am using the following setup:
Visual Studio:
Microsoft Visual Studio Professional 2022 (64-bit) - Current
Version 17.10.2
Conan:
Conan version 2.4.1
Here is my Conan profile:
[settings]
arch=...
0
votes
1
answer
99
views
Why does Visual Studio not show Project/Target Performance Summary in Output window?
If I build a simple .NET 8.0 HelloWorld project in Visual Studio 2022, I get the following output in my output window:
Rebuild started at 14:53...
1>------ Rebuild All started: Project: ...
0
votes
0
answers
19
views
Create custom file into the repository during dotnet build
I'd like to run custom commands during the build process of a project, to create a json output from a c# static class (.net 8). The class contains permission values and other attributes built into the ...
0
votes
0
answers
40
views
Automating the build process of our embedded c++ apps, which currently use VisualGDB
I have been tasked with creating a CICD pipeline for our embedded c++ apps which means I want to build our app completely from the command line. I’ll also be using AWS Codepipeline and Codebuild ...
0
votes
1
answer
207
views
Is there a way to pass argument to launchSettings.json in .NET?
I'm using .NET 7 and I have the launchSettings.json file:
{
"profiles": {
"http": {
"commandName": "Project",
"launchBrowser": true,
...
0
votes
0
answers
85
views
dotnet build/publish library project adds all dependencies
Within a Visual Studio solution I have several library projects, which generate DLLs.
The DLLs are dynamically loaded from an application, therefor no further dependencies to other libraries (logging, ...
0
votes
2
answers
233
views
How to prevent files in debug/release folder from been deleted?
We have some binary files that are not generated from code that we ship with our application. They were placed manually in debug/release folder. VS didn't touched those files when compiling the ...
0
votes
0
answers
301
views
dotnet build does not generate runtimeconfig.json and deps.json if a solution does not contain all referenced projects
dotnet build does not generate a runtimeconfig.json and deps.json if a solution does not contain all referenced projects.
I created a small example solution that shows the problem. It contains 3 ...
0
votes
1
answer
218
views
How to log the messages to see them in MsBuild?
I have a class, that inherits Microsoft.Build.Utilities.Task. I am able to add a log by using Log.LogMessage() there and see it in MsBuild. However I call other classes inside Execute() and I want to ...
0
votes
1
answer
219
views
Where is the output directory specified in my xUnit csproj file?
I am struggling to understand how Visual Studio compiles and organizes the output assemblies of my project.
I have downloaded and installed the latest Visual Studio, and ticked all the boxes to use ...
4
votes
2
answers
3k
views
How to build in parallel (using all cores) with dotnet build command
Using msbuild command I can do:
msbuild -m
to build with multiple cores.
Is this possible with dotnet build command?
Looking at the documentation I see:
dotnet build uses MSBuild to build the ...
0
votes
0
answers
358
views
MSB4023 Cannot evaluate the item metadata "%(FullPath)". The item metadata "%(FullPath)" cannot be applied to the path ""
I started getting this error in the all .net6 apps build from last couple of days.
MSB4023 Cannot evaluate the item metadata "%(FullPath)". The item metadata "%(FullPath)" cannot ...
1
vote
2
answers
612
views
vcpkg: code execution cannot proceed because dll was not found
I installed protobuf with vcpkg.
This happens when I build/redeploy and no c++ files where changed (i.e. no c++ linking). Changes in Xaml, and hlsl files for example.
I can fix this by touching any c++...
0
votes
1
answer
60
views
MSBuild: how to copy multiple build results in different directory
Using Visual Studio Community 2022, i want to build a project for .NET 5.0 et .NET 6.0.
So, the build process create two directories:
bin\x64\Release\net5.0-windows
bin\x64\Release\net6.0-windows
I'...