5

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!

1
  • you may simply unload the library project while debugging the consumer project. Visual Studio will simply reuse the latest compiled. If you have modification, reload the project, compile, and unload again. Commented Jun 11, 2012 at 12:23

1 Answer 1

10

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' "/>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.