Windows Phone 8, C# project. I have some content files that go into my app package as resources (build type “Content”). Depending on build configuration (Debug vs. Release), I want to exclude some of them from the build process. Can I? There’s nothing in the properties window to that effect. However, in C++ projects I can do that to individual source files…
Share
You can also go into the .csproj file and edit it manually. There you can set various properties for this. Ie, add this to whatever you want to only apply to a specific build:
Condition=” ‘$(Configuration)|$(Platform)’ == ‘Release|AnyCPU’ “
Example:
<Content Include=”Assets\ReleaseImage.png” Condition=” ‘$(Configuration)|$(Platform)’ == ‘Release|AnyCPU’ ” />
<Content Include=”Assets\DebugImage.png” Condition=” ‘$(Configuration)|$(Platform)’ == ‘Debug|AnyCPU’ ” />