Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I just found out somthing I didnt think was possible (it is not exposed by the GUI) that helps make property sheet far more useful. The "Condition" attribute of many of the tags in the project property files and it can be used in the .props files as well!</p> <p>I just put together the following as a test and it worked great and did the task of 5 (common,x64,x86,debug,release) separate property sheets!</p> <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;PropertyGroup Label="UserMacros"&gt; &lt;!--debug suffix--&gt; &lt;DebugSuffix Condition="'$(Configuration)'=='Debug'"&gt;-d&lt;/DebugSuffix&gt; &lt;DebugSuffix Condition="'$(Configuration)'!='Debug'"&gt;&lt;/DebugSuffix&gt; &lt;!--platform--&gt; &lt;ShortPlatform Condition="'$(Platform)' == 'Win32'"&gt;x86&lt;/ShortPlatform&gt; &lt;ShortPlatform Condition="'$(Platform)' == 'x64'"&gt;x64&lt;/ShortPlatform&gt; &lt;!--toolset--&gt; &lt;Toolset Condition="'$(PlatformToolset)' == 'v90'"&gt;vc90&lt;/Toolset&gt; &lt;Toolset Condition="'$(PlatformToolset)' == 'v100'"&gt;vc100&lt;/Toolset&gt; &lt;/PropertyGroup&gt; &lt;!--target--&gt; &lt;PropertyGroup&gt; &lt;TargetName&gt;$(ProjectName)-$(Toolset)-$(ShortPlatform)$(DebugSuffix)&lt;/TargetName&gt; &lt;/PropertyGroup&gt; &lt;/Project&gt; </code></pre> <p>Only issue is the properties GUI cant handle it, a project that uses the above property sheet just reports default inherited values like "$(ProjectName)" for the target.</p>
 

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