Note that there are some explanatory texts on larger screens.

plurals
  1. POCan I use a property sheet to generate project configurations?
    primarykey
    data
    text
    <p>I'm trying to avoid hard coding settings into my .vcxproj files. I'd like to edit a single file, i.e. inherited property sheets (.props), to change my settings. This works great for compiler and linker settings. I also use this technique for all my dependent libraries like boost, zlib, for appending the include path and the libpath. </p> <p><strong>I'd like to take this a step farther and <em>create the list of configurations</em> in one property sheet</strong>. Is this possible. I keep getting a error. </p> <blockquote> <p>proj1.vcxproj</p> </blockquote> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"&gt; &lt;Import Project="configurations.props"/&gt; &lt;PropertyGroup Label="Globals"&gt; &lt;ProjectGuid&gt;{36327322-B9FA-4D71-1111-E94F5BB55D57}&lt;/ProjectGuid&gt; &lt;RootNamespace&gt;Proj1&lt;/RootNamespace&gt; &lt;/PropertyGroup&gt; &lt;Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /&gt; &lt;Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /&gt; &lt;Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /&gt; &lt;/Project&gt; </code></pre> <blockquote> <p>configurations.props</p> </blockquote> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"&gt; &lt;ItemGroup Label="ProjectConfigurations"&gt; &lt;ProjectConfiguration Include="DebugUnicode|Win32"&gt; &lt;Configuration&gt;DebugUnicode&lt;/Configuration&gt; &lt;Platform&gt;Win32&lt;/Platform&gt; &lt;/ProjectConfiguration&gt; &lt;/ItemGroup&gt; &lt;/Project&gt; </code></pre> <blockquote> <p>proj1.vcxproj : error : Project "proj1" does not contain any configuration. The project cannot be loaded.</p> </blockquote> <p>So is this possible? </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload