Updated with review feedback.
[mono.git] / msvc / README
index 7c6541e0282ab8f4c8d111a582f16f9dd4237f99..375febbdbb20e611fade4d0027c98ea77dcfd2c4 100755 (executable)
@@ -22,12 +22,16 @@ MAINTENANCE
        Files that should not be build on Windows should be excluded  using this configuration:
 
        <ClCompile Include="$(MonoSourceLocation)\mono\mini\tramp-wasm.c">
-               <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-               <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-               <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-               <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
+               <ExcludedFromBuild>$(ExcludeFromWindowsBuild)</ExcludedFromBuild>
        </ClCompile>
 
+       and at the begning of the target file have a property set when to exclude files. This example will always
+       exclude the file, but could be condtional if needed:
+
+       <PropertyGroup>
+               <ExcludeFromWindowsBuild>true</ExcludeFromWindowsBuild>
+       </PropertyGroup>
+
        All header files added to makefiles should be included in the different targets files for consistency.
 
        Each target file has a corresponding filter file, files added to target files should also be added to the corresponding