One option is to edit the msbuild file (* .csproj) to conditionally exclude certain files based on the solution configuration (for example, Debug, Release, etc.). For example:
<Compile Exclude="inspector.aspx" Condition="'$(Configuration)' == 'Release'" />
Similarly, you can define an ItemGroup containing only the files that you want to include in the Debug assembly:
<ItemGroup Condition="'$(Configuration)' == 'Debug'"> <Compile Include="inspector.aspx" /> <Compile Include="...other files..." /> </ItemGroup>
JulianM
source share