My WP7 solution has a Class Library which contains three big embedded resources. When the XAP file is generated, it takes quite a while to compress those three files and I would like to speed up the time required to build when I am in Debug mode (but not Release).
How do I specify in the CSProj that I don't want the file 2 and 3 to be build if I am building Debug?
<ItemGroup>
<EmbeddedResource Include="Data\my-big-file-1.txt" />
<EmbeddedResource Include="Data\my-big-file-2.txt" />
<EmbeddedResource Include="Data\my-big-file-3.txt" />
</ItemGroup>
Thanks!
You can use conditions in your Project Definition file.
http://msdn.microsoft.com/en-us/library/ms171455.aspx
<EmbeddedResource Include="Data\my-big-file-2.txt" Condition=" '$(Configuration)' == 'Release' "/>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With