Skip to main content

All Questions

Tagged with
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
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
1 vote
1 answer
40 views

Deployment Report using MSBuild in SQL Server Database Project

When I publish the SQL Server Database Project in Visual Studio, it generates a DeploymentReport.txt file which includes a preview of the changes to apply. When I publish using MSBuild the file is not ...
Abdullah Haidar's user avatar
0 votes
1 answer
132 views

Visual Studio MSBuild Error MSB8066: Custom build

I have a Visual Studio solution with a project that generate a cpp and a hpp file. An other project have to compile these generated files, so I add the cpp file as a "Custom Build" target ...
Xavier Bigand's user avatar
1 vote
1 answer
44 views

How to change targetframework based on Visual Studio version

I would like to support from .NET Standard 2.0 to .NET 8.0 every target in a projects. Currently <TargetFrameworks>$(ExtraTargetFrameworks)netstandard2.0</TargetFrameworks> is used along ...
Neurofibromin's user avatar
0 votes
0 answers
56 views

Multiple tags for docker image in VS 2022

I'd like to tag a image (dockerfile build from VS 2022) with :latest and a version number (ideally taken from the MSBuild property VersionPrefix). Is this possible within VS? I already tried to set ...
Recurs1on's user avatar
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 ...
pjcard's user avatar
  • 1,138
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 ...
Kev12853's user avatar
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 ...
CuppM's user avatar
  • 1,678
-1 votes
1 answer
122 views

VCTargetsPath is not defined when running dotnet / msbuild

I've seen many topics with that problem, but no real solution anywhere. I already tried fresh installs of VS / dotnet without success. When trying to run dotnet pack on a C# - C++\CLI - C++ solution I ...
Milan's user avatar
  • 1,669
1 vote
1 answer
165 views

When building a vs2022 project in github/devops that includes architecture dependency graphs, the build fails MSB4226

I have a project working with builds in both github and devops. I recently added an architecture dependency diagram per https://azuredevopslabs.com/labs/devopsserver/livedependencyvalidation/ This ...
Jason Coyne's user avatar
  • 6,606
-1 votes
1 answer
355 views

error MSB4019: The imported project "D:\Microsoft.Cpp.Default.props" was not found

So I've seen several topic on the subject but so far could not find any clear answer as what the problem is, why it appeared and how to solve it. I am not using npm, have Visual Studio 2022 installed, ...
Milan's user avatar
  • 1,669
0 votes
1 answer
22 views

Use same name third party nuget package dll into same name project

I have Visual Studio class library project named "WCFExtras" where using same name third party nuget package called "WCFExtras" and it's installed properly. When build the ...
Jeetu's user avatar
  • 156
2 votes
1 answer
262 views

"Failed to update binding redirects for .." during nuget consuming in Package Manager Console

When I consume a nuget via Install-Package command from Package Manager Console: Install-Package -ProjectName ### -Id Package -Version 1.0.0 -Source nuget.org I see the below warning on my work ...
Unnamed's user avatar
  • 198
1 vote
1 answer
121 views

How to specify directory where the RootNamespace should be?

If I have a project with the RootNamespace AwesomeRoot, and I want a class to be directly in that namespace, the way I've always done this is to put the class's code file directly into the project ...
Bob Vesterman's user avatar

15 30 50 per page
1
2 3 4 5
185