Questions tagged [vsprops]

30 questions
1
vote
0 answers

Substring under PropertyGroup in msbuild props not working when property is passed as argument to msbuild

In my props file, i pass the BUILD_VERSION to dotnet msbuild using properties as /p:BUILD_VERSION=1.2.3.4. However, i get errors on when performing Substring operation on property BuildVersion which gets its value from : BUILD_VERSION.
Ashish Negi
  • 5,193
  • 8
  • 51
  • 95
1
vote
2 answers

MSVC linker won't apply RandomizedBaseAddress via vsprops file

I am trying to add ASLR to a project using a vsprops file. I have verified the file is being used by the project as there are other settings in the file that are being applied, and intentionally corrupting the file produces an error when opening the…
fbrereto
  • 35,429
  • 19
  • 126
  • 178
1
vote
0 answers

vs2008 extension access user file

One of my vc2008 project is under version control, and it depends on boost and some other libraries, but in my machine, the boost root directory $BOOST the project refers to is not the same as my teammate's, and I don't like to put $BOOST into…
flymolon
  • 11
  • 3
1
vote
0 answers

Moving the CharacterSet setting to a property file in Visual Studio

I have few Visual Studio projects that should compile either in MultiByte or in Unicode mode. Looking at the project xml file, the compilation is controlled by a Property named CharacterSet that can have value either MultiByte or Unicode. I'm trying…
BPas
  • 99
  • 5
1
vote
1 answer

Accessing .vsprops (Property Sheets) via VS Automation and Extension

I am trying to access user macros that are defined in a .vsprops (Property Sheet) that is used by a Visual Studio 2008 project. I cannot find any documentation on accessing any information in a .vsprops file using VS automation and extension…
madhatter160
  • 439
  • 5
  • 13
1
vote
1 answer

CharacterType/ConfigurationType in vsprops

I've been using Visual Studio's property sheets for building my code and I have a useful hierarchy of sheets controlling the build settings, rather than having them in the vcproj files. This is great except for one thing. I can't seem to set…
Cthutu
  • 8,713
  • 7
  • 33
  • 49
1
vote
1 answer

How to set a VSPROPS variable only if it does not already exist?

Say I've got a .vsprops file that is used in a solution. In that file, various variables are defined such as int_dir for intermediate build results and log_dir for the log results. Usually, these variables get set to default values (relative to the…
eckes
  • 64,417
  • 29
  • 168
  • 201
1
vote
0 answers

Is there a shortcut key to select in VS2010 property sheets?

I am moving a multi-project solution to use .props files instead of repeatedly defining properties in the projects. At the moment I am going through all the old projects and selecting "inherit from parent or project defaults" for most of the…
Bids
  • 2,422
  • 18
  • 26
0
votes
1 answer

VS2010 compiler auto-generates unwanted .vsprops file in MSBuild project

I've got a PrimaryBuild.targets file, which I build with MSBuild, through Team Foundation Server build definition. This file invokes other msbuild tasks to build all VB solutions contained in my component and lots of other targets. (msbuild…
0
votes
0 answers

How do I choose a different Rule Set based on OutputType in Visual Studio?

Currently, I have a .Net Standard project that references StyleCop. It builds as a NuGet package and includes custom ruleset's and a custom props file. I would like the props file to apply a different rule set based on the output type of the project…
Alex
  • 870
  • 2
  • 9
  • 19
0
votes
1 answer

Visual Studio removes props file definition from vcxproj file

I created a Project Template https://learn.microsoft.com/en-us/visualstudio/ide/creating-project-and-item-templates?view=vs-2017 Inside vcxproj I have props file definition: (left side of the image): props in vcxproj The prop file is present in…
Tomasz Kot
  • 193
  • 2
  • 7
0
votes
4 answers

Allowing developer-specific settings in VS2008 Native C++ projects

Is it possible to combine the following properties, and if so, how? Store in our version control system some Visual Studio 2008 native C++ (VCPROJ) project files for the developers in our team that use this IDE. Allow some of those developers to…
Xavier Nodet
  • 5,033
  • 2
  • 37
  • 48
0
votes
1 answer

Create CoApp package with property sheets

I want to create a CoApp package which will just install my department's custom property sheets (currently they come from a Mercurial subrepository and we want to get rid of as many subrepositories as possible). The property sheets reside in a a few…
Dina
  • 1,346
  • 1
  • 15
  • 35
0
votes
1 answer

How can the order of inherited includes be controlled in vsprops Property Sheets?

I'm using some vsprops sheets that inherit from each other. My base property sheet defines some include paths. In a second vsprops file that inherits from it, I want to add some more include paths. However, I want to be able to choose whether the…
Scott Langham
  • 58,735
  • 39
  • 131
  • 204
0
votes
1 answer

.props setting OutDir

Trying to setup two parallel environments, with a separate .sln's, but the same vcxproj's, since I'm working with 100+ projects. I want different OutDir and IntermediateDir's, so I put this in the variant props file for each…
Thomas
  • 3,348
  • 4
  • 35
  • 49
1
2