Exclude files from being build in Debug

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!

Answers


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' "/>

Need Your Help

Soundcloud player script broken unexpectedly

soundcloud soundmanager2

I had worked on a small Soundcloud player and it was working fine for several days, until today. Now it won't load any sound. The web console says:

Configure netbeans 8.0 gdb to work with gradle cpp plugin

c++ debugging netbeans gradle gdb

Lately I've switched from Visual Studio in Windows 7 to Ubuntu with Netbeans 8.0 (C++). From that time I have big problem with debugging my application from NetBeans (gdb works perfectly fine). I h...