Skip to content

Commit c166525

Browse files
committed
Update project metadata
Add README and remove exmaple policies so they do not show when installing or restoring the package.
1 parent da481d7 commit c166525

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

OWASP.AntiSamy/OWASP.AntiSamy.csproj

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,13 @@
1717
Another way of saying that could be: It's an API that helps you make sure that clients don't supply malicious cargo code in the HTML they supply for their profile, comments, etc., that get persisted on the server. The term "malicious code" in regard to web applications usually mean "JavaScript." Mostly, Cascading Stylesheets are only considered malicious when they invoke JavaScript. However, there are many situations where "normal" HTML and CSS can be used in a malicious manner.</Description>
1818
<Title>OWASP.AntiSamy</Title>
1919
<GenerateDocumentationFile>true</GenerateDocumentationFile>
20-
</PropertyGroup>
21-
<PropertyGroup Condition=" '$(TargetFramework)' == 'net5.0'">
22-
<DefineConstants>NET5_0</DefineConstants>
20+
<PackageReadmeFile>README.md</PackageReadmeFile>
2321
</PropertyGroup>
2422
<ItemGroup>
2523
<PackageReference Include="AngleSharp" Version="0.17.1" />
2624
<PackageReference Include="AngleSharp.Css" Version="0.17.0" />
2725
<PackageReference Include="HtmlAgilityPack" Version="1.11.55" />
2826
</ItemGroup>
29-
<ItemGroup>
30-
<!-- Added so NuGet copies this folder to the output package -->
31-
<Content Include="AntiSamyPolicyExamples\**\*">
32-
<CopyToPublishDirectory>true</CopyToPublishDirectory>
33-
</Content>
34-
</ItemGroup>
3527
<ItemGroup>
3628
<None Update="AntiSamyPolicyExamples\antisamy-anythinggoes.xml">
3729
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
@@ -57,6 +49,7 @@ Another way of saying that could be: It's an API that helps you make sure that c
5749
<None Update="AntiSamyPolicyExamples\antisamy.xsd">
5850
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
5951
</None>
52+
<None Include="..\README.md" Pack="true" PackagePath="\"/>
6053
</ItemGroup>
6154
<ItemGroup>
6255
<Compile Update="Properties\Resources.Designer.cs">

0 commit comments

Comments
 (0)