1

Closed

Add the ability to ignore supporting projects, such as, test projects.

description

I am using unit tests with my module and noticed that the test project was being included in the resources.zip. I added a new ItemGroup under Settings to specify which projects should be excluded.
 
I added this to Settings:
 
<!--Add projects that should be ignored. A unit test project is a common example.--> <ItemGroup>
<ProjectsToExclude Include="$(MSBuildProjectDirectory)\MyProject.Tests\**" />
</ItemGroup>
 
Then modified the Get files section:
 
<!-- Get files -->
<CreateItem
      Exclude="**\.svn\**;
        $(MSBuildProjectDirectory)\_*\**;
                    $(MSBuildProjectDirectory)\obj\**;
                    $(MSBuildProjectDirectory)\bin\**;
                    $(MSBuildProjectDirectory)\My Project\*.*;
                    $(MSBuildProjectDirectory)\Properties\*.*;
                    $(MSBuildProjectDirectory)\Dependencies\*.*; 
                    $(MSBuildProjectDirectory)\Installation\**;
        $(MSBuildProjectDirectory)\*ReSharper*\**;
        $(MSBuildProjectDirectory)\tmpCompressScript\**;
        $(MSBuildProjectDirectory)\packages\**;
        @(ProjectsToExclude)"
      Include="$(MSBuildProjectDirectory)\**\*.ascx;
                    $(MSBuildProjectDirectory)\**\*.aspx;
                    $(MSBuildProjectDirectory)\**\*.css;
                    $(MSBuildProjectDirectory)\**\*.xml;
                    $(MSBuildProjectDirectory)\**\*.xslt;
                    $(MSBuildProjectDirectory)\**\*.resx;
                    $(MSBuildProjectDirectory)\**\*.rpt;
                    $(MSBuildProjectDirectory)\**\*.gif;
                    $(MSBuildProjectDirectory)\**\*.jpg;
                    $(MSBuildProjectDirectory)\**\*.png;
        $(MSBuildProjectDirectory)\**\*.js;">
  <Output TaskParameter="Include" ItemName="resources" />
</CreateItem>
Closed Oct 8, 2013 at 2:36 PM by EPT
Included in the new release

comments