Skip to main content

All Questions

0 votes
1 answer
243 views

How to override the way CLCompile processes the source files in MSBuild?

I try to use ccache with VS2017 using the steps described here: https://github.com/ccache/ccache/wiki/MS-Visual-Studio Turned out, it only works for ninja and nmake projects which is unacceptable for ...
Robert's user avatar
  • 63
2 votes
1 answer
943 views

MSBuild failure: IsOsPlatform not found

One of our developers has created a project which builds successfully using Visual Studio 2017 on his PC. I want to build the project on an Azure virtual machine, from an Azure Pipeline. Since it will ...
Ray Depew's user avatar
  • 669
2 votes
1 answer
1k views

How to add project dependencies in a MSBuild solution programmatically with C#

Hello I ran into a XY problem using Visual Studio 2017 and dotnet 6.0.100 My original problem is: "How to add project dependencies in a MSBuild solution programmatically with C#" This is ...
negatic's user avatar
  • 41
0 votes
1 answer
204 views

VS2017 loads C++ project that was manually configured to x86 as a VS2010 project

I just changed a vcxproj file (C++) to have x86 as a platform for all solution build configurations instead of Win32, which seems to be the default for all C++ projects. The project loads fine but it ...
Stephen Hyberger's user avatar
0 votes
1 answer
623 views

MSBuild not publishing dll.config of dependency for ClickOnce

My C# projectA published via ClickOnce depends on projectB. I need the projectB.dll.config file for projectA to work. While MSBuild copies over projectB.dll.config to projectA/bin/ConfigXY correctly, ...
user2727133's user avatar
1 vote
0 answers
1k views

C# MSBuild not including the NuGet packages (works in Visual Studio 17)

I am using PackageReference in my .csproj file and my build works in Visual Studio (2017). I'm building with .net 4.5 I have looked at this: (MSBuild not adding a /reference for nuget ...
notInThisForTheMoney's user avatar
0 votes
2 answers
1k views

Why is MSBuild looking at incorrect path?

I have been trying to build a .NET project with visual studio 2017 Community on my local. The build works fine when done using Publish option but throws below error when trying using msbuild C:\Users\...
Ajay Malik's user avatar
0 votes
1 answer
768 views

Access $(VCToolsInstallDir) from a non CPP project

I have a WiX project and need to call editbin.exe to change the stack size on an executable. I am working in VS2017 and have the component "VC++ 2017 version 15.9 v14.16 latest v141 tools" ...
SmudgerDan's user avatar
2 votes
1 answer
681 views

What does the BuildMacro element do in Visual studio properties and projects?

I have seen this several times: <PropertyGroup Label="UserMacros"> <SomePropertyName>trunk</SomePropertyName> </PropertyGroup> <ItemGroup> <...
Tomáš Zato's user avatar
  • 52.1k
1 vote
1 answer
296 views

Is it possible to get MSBuild property by string name?

I am trying to retrieve an MSBuild property ($(Something)) by using the string value "Something" stored in another property. I tried to use MSBuild's Escape/Unescape methods but it still ...
Tomáš Zato's user avatar
  • 52.1k
0 votes
1 answer
139 views

Is it possible to read MSBuild macros of C/C++ project programatically outside of Visual Studio?

I am trying to do a mass edit on Visual Studio 2017 projects (.vcxproj). This edit depends conditionally on some project properties. Sadly it's more complicated than what could I do using shared ....
Tomáš Zato's user avatar
  • 52.1k
0 votes
1 answer
322 views

Build error - Access is denied after installing Nuget package

I had created a nuget package which includes .props and .targets in build folder. Below is my .targets file: <?xml version="1.0" encoding="utf-8"?> <Project DefaultTargets=...
Kalyani Reddy's user avatar
0 votes
1 answer
62 views

VS2017 property sheet replacement issue

Some time ago I wrote a point cloud drop sampling code, directly call someone else's library "Library111" and property sheet.However, since the property sheet was not working well, the ...
paobukuaideluozi's user avatar
0 votes
1 answer
460 views

What would cause Build Configuration not to recognize new Build Config setting?

In VS 2017 ,I have defined a new Build Config using Configuration Manager called LiveSystemBuild I have set all projects as AnyCPU . I have some code as follows: #if LiveSystemBuild private const ...
Abbey's user avatar
  • 163
1 vote
1 answer
483 views

MvcBuildViews not working for x64 project

In a VS2017 ASP.NET MVC project I've noticed that my views aren't syntax checked on build/compile even though I have set MvcBuildViews to true. The project is now on MVC 5 but has been upgraded from ...
Kjell Rilbe's user avatar
  • 1,443

15 30 50 per page
1
2 3 4 5
31