0

I've setup building nuget package from my project using package tab in project options. Everything seems to work except that my nuget package contains stylecop.json file. Build action for this file is set to "C# analyzer additional file". How to get rid of this file from nuget package?

This is my csproj file content

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFramework>netcoreapp2.0</TargetFramework>
    <GeneratePackageOnBuild>true</GeneratePackageOnBuild>
    <PackageLicenseUrl>https://github.com/aixasz/ImageShareTemplate/blob/develop/LICENSE</PackageLicenseUrl>
    <PackageProjectUrl>https://github.com/aixasz/ImageShareTemplate/</PackageProjectUrl>
    <Description>ImageShareTemplate is image template library to share an image to social like facebook, twitter, etc.</Description>
    <RepositoryUrl>https://github.com/aixasz/ImageShareTemplate/</RepositoryUrl>
    <PackageTags>image socialmedia</PackageTags>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="SixLabors.ImageSharp" Version="1.0.0-beta0001" />
    <PackageReference Include="SixLabors.ImageSharp.Drawing" Version="1.0.0-beta0001" />
  </ItemGroup>

  <ItemGroup>
    <Folder Include="Fonts\" />
  </ItemGroup>

</Project>
cezarypiatek
  • 1,078
  • 11
  • 21

0 Answers0