Edit per code review
This commit is contained in:
parent
aac9b44989
commit
ee7b08fdb6
1 changed files with 54 additions and 14 deletions
|
@ -324,20 +324,6 @@
|
|||
<DirectoryName>$([System.IO.Path]::GetFileName('$(TextOnlyDirectory)'))</DirectoryName>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<BinaryExtension Include="
|
||||
.dll;
|
||||
.Dll;
|
||||
.exe;
|
||||
.pdb;
|
||||
.mdb;
|
||||
.zip" />
|
||||
|
||||
<BinaryPackageContent Include="$(TextOnlyDirectory)/**/*%(BinaryExtension.Identity)" />
|
||||
</ItemGroup>
|
||||
|
||||
<Error Text="Binary content found in text-only packages: @(BinaryPackageContent)" Condition=" '@(BinaryPackageContent)' != '' " />
|
||||
|
||||
<ItemGroup>
|
||||
<TextOnlyPackageContent
|
||||
Include="$(TextOnlyDirectory)/**/*"
|
||||
|
@ -349,6 +335,59 @@
|
|||
" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<!-- ttf, woff, woff2, eot are permissible font related content -->
|
||||
<AllowedTextOnlyExtensions Include="
|
||||
.-;
|
||||
.bowerrc;
|
||||
.config;
|
||||
.cs;
|
||||
.cshtml;
|
||||
.csproj;
|
||||
.css;
|
||||
.db;
|
||||
.editorconfig;
|
||||
.env;
|
||||
.env.development;
|
||||
.eot;
|
||||
.fs;
|
||||
.fsproj;
|
||||
.gitignore;
|
||||
.gitkeep;
|
||||
.html;
|
||||
.ico;
|
||||
.js;
|
||||
.json;
|
||||
.map;
|
||||
.md;
|
||||
.nuspec;
|
||||
.otf;
|
||||
.png;
|
||||
.props;
|
||||
.proto;
|
||||
.razor;
|
||||
.sln;
|
||||
.svg;
|
||||
.targets;
|
||||
.ts;
|
||||
.ttf;
|
||||
.tsx;
|
||||
.txt;
|
||||
.vb;
|
||||
.vbproj;
|
||||
.woff;
|
||||
.woff2;
|
||||
browserslist;
|
||||
browserslistrc;
|
||||
LICENSE;" />
|
||||
|
||||
<UnsupportedTextOnlyPackageContent Include="@(TextOnlyPackageContent)" />
|
||||
<UnsupportedTextOnlyPackageContent Remove="$(TextOnlyDirectory)/**/*$([System.String]::Copy('%(AllowedTextOnlyExtensions.Identity)').ToLowerInvariant())" />
|
||||
<UnsupportedTextOnlyPackageContent Remove="$(TextOnlyDirectory)/**/*$([System.String]::Copy('%(AllowedTextOnlyExtensions.Identity)').ToUpperInvariant())" />
|
||||
</ItemGroup>
|
||||
|
||||
<Error Text="Unsupported content found in text-only packages: @(UnsupportedTextOnlyPackageContent)" Condition=" '@(UnsupportedTextOnlyPackageContent)' != '' " />
|
||||
|
||||
<Copy
|
||||
SourceFiles="@(TextOnlyPackageContent)"
|
||||
DestinationFiles="@(TextOnlyPackageContent->'$(TextOnlyPackageTarballDir)$(DirectoryName)/%(RecursiveDir)%(Filename)%(Extension)')" />
|
||||
|
@ -356,3 +395,4 @@
|
|||
</Target>
|
||||
|
||||
</Project>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue