Created
December 19, 2015 11:17
-
-
Save stinos/05d93f9b89e1cc7d5930 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<Project DefaultTargets="compile" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<ItemDefinitionGroup> | |
<ClCompile> | |
<PreprocessorDefinitions>SomeDummyDef</PreprocessorDefinitions> | |
</ClCompile> | |
</ItemDefinitionGroup> | |
<!-- If below line is commented, Message text will be 'False'--> | |
<Import Project="C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.mfcDynamic.props" /> | |
<Target Name="TestImport"> | |
<ItemGroup> | |
<ClCompile Include="somefile"/> | |
</ItemGroup> | |
<PropertyGroup> | |
<HasAfxDll>@(ClCompile->'%(PreprocessorDefinitions)'->Contains('_AFXDLL'))</HasAfxDll> | |
</PropertyGroup> | |
<Message Text="$(HasAfxDll)"/> | |
</Target> | |
</Project> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment