Created
April 28, 2009 22:34
-
-
Save spraints/103443 to your computer and use it in GitHub Desktop.
Finds .cs files that aren't included in a .csproj file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<Project ToolsVersion="3.5" DefaultTargets="Verify" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<Import Project="SomeProject.csproj" /> | |
<ItemGroup> | |
<ShouldBeIncluded Include="**/*.cs" Exclude="@(Compile)" /> | |
</ItemGroup> | |
<Target Name="Verify"> | |
<Error Text="The following cs files are on disk, but not in the csproj: @(ShouldBeIncluded)" Condition="'@(ShouldBeIncluded)' != ''" /> | |
</Target> | |
</Project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment