Questions tagged [vcxproj]
84 questions
1
vote
1 answer
Generating a custom ItemGroup in .vxcproj using CMake
I'm trying to use CMake to add an entire directory structure to my Visual Studio project. I know it is possible in VS because I already succeed by manually copying the root folder of the structure in the same directory of the project and by…

Oneiros
- 4,328
- 6
- 40
- 69
1
vote
1 answer
Change where Visual Studio looks for project file?
Is there a way to change where visual studio looks for project files(.vcxproj)? So I can keep all visual studio related files in separate VS folder and have my project still open and save correctly in visual studio.

Jason
- 2,198
- 3
- 23
- 59
1
vote
0 answers
A first chance exception of type 'Microsoft.Build.Exceptions.InvalidProjectFileException' occurred in Microsoft.Build.dll
I am trying to extract various properties from vcxproj projects. These properties include the TargetName and TargetExtension. As I am looping through all of the project types with this extension I am creating a temporary project and extracting…

jshaf
- 309
- 1
- 18
1
vote
1 answer
Parsing vcxproj with python and lxml
I'm trying to parse a vcxproj with Python and lxml. When I attempt to do that nothing is chown during print unless I delete what's in .
Here is my .vcxproj (I reduced it to test) :

Algorys
- 1,710
- 2
- 25
- 52
1
vote
1 answer
Msbuild and ClCompile options
I compile C++ code with msbuild and I specify cl options inside ClCompile item. Something like...
Precise
…

Miroslav Franc
- 1,282
- 12
- 13
1
vote
1 answer
msbuild output directory with vcxproj differs from MSVS build
I'm new to MSVS and there's a requirement appeared to write one executable program and one DLL. I've got MSVS 2013 project with vcxproj file for DLL that I'm trying to build with msbuild.
When running build from MSVS it creates folder like…

Igor Petrov
- 166
- 2
- 15
1
vote
1 answer
The platform toolset for Windows phone 8.1(v120_wp81) appears as not installed in vs2013 update 4
I want to upgrade my project from Windows phone 8.0 to Windows phone 8.1. But i'm not getting the required platform toolset for windows phone 8.1(v120_wp81) in the dropdown in properties->general->platform toolset. I have vs2013 with update 4.
I…

SalmanKhan
- 103
- 1
- 11
1
vote
2 answers
How to get actual project output using microsoft.build.evaluation.project in c#
I need to know the actual output file name full path in a project.
I use microsoft.build.evaluation.project to open a project with the correct properties, and i tried using the properties TargetPath, TargetDir, TargetFileName, but i can't find a…

Yechiel B.D.
- 2,011
- 2
- 13
- 9
1
vote
1 answer
MSBuild: How can I define using XmlPeek that is usable in a ResouceCompile task?
When I read the value from the XML file, it is correct, but when I use it (as an option to rc.exe), it is undefined. How can I fix that?

user3397529
- 11
- 2
1
vote
1 answer
How can I force the C++ platform in MSBuild?
I have a program which must build as 32 bit. It gets shipped with an x64 application. As a result, there is an installer which gets a bitness.
The installer is built with a wixproj that must be built with /p:Platform=x64 -- but the vcxproj needs to…

Billy ONeal
- 104,103
- 58
- 317
- 552
0
votes
0 answers
How to choose a WDK version (Out of several installed) using vcxproj/Msbuild
I have a build environment where 1 SDK version and several WDK versions are installed using "winwdksetup.exe" and "winsdksetup.exe". I also have a vcxproj file with "PlatformToolset" set as WindowsKernelModeDriver10.0.
How can I modify this vcxproj…

Sathya
- 1
0
votes
0 answers
How to have Visual studio solution specific 'Use vcpkg' setting
I'm using vcpkg installed dependencies (globally installed, not specific to project) for one Visual Studio solution, and conan for another Visual studio solution. For the conan solution, I have to use 'Use Vcpkg = No' in all of the projects inside…

Surya
- 45
- 7
0
votes
1 answer
visual studio .vcxproj changes to generate exe
In my project there are multiple subdirectories, out of which one is utils,
and utils.vcxproj has details like below:

Ami
- 233
- 2
- 9
0
votes
0 answers
building project "app_crow.vcxproj" -- FAILED
Included the Additional Directory and everything, still fails.
// app_crow.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include "crow_all.h"
#include
using namespace std;
int main(int argc,…
0
votes
0 answers
error MSB4019: The imported project "C:\Microsoft.Cpp .Default.props" was not found while trying to publish mixed project
I have .NET 7 mixed project with C++ managed and C dlls. I'm using Visual Studio 22 Enterprise.
When I try to publish the project using the command dotnet publish -c Release --self-contained -p:PublishSingleFile=true I get erron on the Managed C++…

avital orenstein
- 11
- 2