Questions tagged [vsprops]

30 questions
39
votes
3 answers

Vue, is there a way to pass data between routes without URL params?

I am looking how to pass data secretly between two separate components (not parent and child) without using URL params in my Vue2 app. This doesn't mean I am passing secrets but rather I just dont want the user to see it (only for UI…
KasparTr
  • 2,328
  • 5
  • 26
  • 55
28
votes
7 answers

Building both DLL and static libs from the same project

I have a number of native C++ libraries (Win32, without MFC) compiling under Visual Studio 2005, and used in a number of solutions. I'd like to be able to choose to compile and link them as either static libraries or DLLs, depending on the needs…
Tim Lesher
  • 6,341
  • 2
  • 28
  • 42
5
votes
3 answers

CMake's equivalent to Visual Studio's Property Sheets (.vsprops)

I'm trying to migrate from Visual Studio towards Jetbrains' (awesome) CLion IDE which uses CMake to organize the projects. Until now, the transition has been smooth: creating CMake projects and importing them into CLion is easy, and I can begin…
maddouri
  • 3,737
  • 5
  • 29
  • 51
4
votes
2 answers

Multiple projects with multiple (different) build configuration in one solution

What is the correct and easy step by step way to have multiple build configurations in the same VS project, where the Solution also contain multiple projects? The projects would have different build configurations. Basically, I'm looking for…
KTC
  • 8,967
  • 5
  • 33
  • 38
4
votes
3 answers

Optional environment variables with vcproj/vsprops

Is there any way to make an environment variable substituion in a project file (with or without vsprops) that, if the variable is not found, is substituted instead with a default value? I haven't found any way to do this, because everything seems to…
coppro
  • 14,338
  • 5
  • 58
  • 73
4
votes
1 answer

Importing a .props file in .vcxproj generated by qmake

With a command qmake -tp vc -r I'm generating Visual Studio .sln file and a bunch of .vcxproj files from corresponding Qt .pro file and a bunch of .pri files. I would like those generated .vcxproj files to import my own .props file. A path to which…
Adam Badura
  • 5,069
  • 1
  • 35
  • 70
3
votes
1 answer

C# reference in .props file

When I add this code directly to the .csproj file, the reference is resolved correctly:
Rick de Water
  • 2,388
  • 3
  • 19
  • 37
3
votes
2 answers

Force VSProps settings to override project settings

I have a vsprops file that defines the optimizations all of our projects should be built with for Visual Studio 2008. If I set the properties for the project to "inherit from parent of project defaults" it works, and fills them in the vcproj file.…
Steve
  • 11,763
  • 15
  • 70
  • 103
3
votes
2 answers

Can I have platform specific sections in my vsprops (Property Sheet) file?

I'm creating a vsprops file to contain include and lib paths that are common to all projects in my solution. However, I have platform specific paths for the lib paths which can be Win32/x64. Is it possible to put these settings in one vsprops file?…
Scott Langham
  • 58,735
  • 39
  • 131
  • 204
3
votes
1 answer

VS2008: Add custom build rule to a Property Sheet (vsprops)?

I'm using the CUDA .rules file which comes with the CUDA SDK for custom build steps in my project. To save on property duplication I'd like to define the properties of the CUDA rule in a .vsprops file. For some reason, the CUDA rule branch of the…
shoosh
  • 76,898
  • 55
  • 205
  • 325
2
votes
1 answer

Visual Studio 2010 property sheet inheritance

I am trying to move my c++ project setting into property sheets. I use multiple third party libraries, but they are not used by all of the projects. Is there any way to use property sheets to bring in settings specific to the third party library I…
Eric Gurney
  • 263
  • 2
  • 11
2
votes
1 answer

VS2017 Directory.Build.props doesn't load for whole solution

OK here is my problem I have 2 library and 2 project that include their .csproj (1 for Dev, 1 for Client Delivery). I need a Defined constant to set accessible most of my class when we are with the Dev purpose (internal -> public). I used a…
Samael
  • 61
  • 1
  • 9
2
votes
0 answers

Is there exist msvs .props analog in cmake?

MSVS have a great thing - the .props files. This files gives ability to carry out some project settings in other place. For example, I could write .props for some library, where I set up the include path`s, add .lib files, set up some compiler on…
AeroSun
  • 2,401
  • 2
  • 23
  • 46
2
votes
0 answers

How to resolve this Visual Studio issue with looking for .props file in wrong location?

I have a project that I'm not even able to open because of an error: proj_path.vcxproj : error : The imported project "some_other_path\p.props" was not found. Confirm that the path in the declaration is correct, and that the file exists on…
Il'ya Zhenin
  • 1,272
  • 2
  • 20
  • 31
1
vote
0 answers

Visual Studio ignores UseDebugLibraries from .props

I have the following .props file, generated with CMake (but this does not seem to be a CMake problem):
user2281752
  • 145
  • 1
  • 9
1
2