New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error building symbol .snupkg package when using embedded license file #7591

Closed
chitsaw opened this Issue Dec 5, 2018 · 1 comment

Comments

Projects
None yet
3 participants
@chitsaw
Copy link

chitsaw commented Dec 5, 2018

Details about Problem

Attempting to build symbol NuGet .snupkg package fails when using embedded license file with the PackageLicenseFile property.

NuGet product used: VS UI, dotnet pack

dotnet.exe --version: 2.1.500

VS version: 15.9.3

OS version: win10 v1809 (17763.134)

Detailed repro steps so we can see the same problem

  1. Build a C# netstandard2.0 project in Visual Studio 15.9.3 with the following properties set in the .csproj file:
  <PropertyGroup>
    <TargetFramework>netstandard2.0</TargetFramework>
    <GeneratePackageOnBuild>true</GeneratePackageOnBuild>
    <PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
    <SymbolPackageFormat>snupkg</SymbolPackageFormat>
    <IncludeSymbols>true</IncludeSymbols>
  </PropertyGroup>

  <ItemGroup>
    <None Include="LICENSE.txt" Pack="true" PackagePath="$(PackageLicenseFile)"/>
  </ItemGroup>
  1. Build generates the main .nupkg file successfully but fails to generate the .snupkg with the following error message:
    error NU5030: The license file 'LICENSE.txt' does not exist in the package.

  2. Expected build to generate both .nupkg and .snupkg files.

Verbose Logs

Please include verbose logs (NuGet.exe -verbosity detailed | dotnet.exe --verbosity diag | etc...)

log.txt

Sample Project

Very helpful if you can zip a project and paste into this issue!

MySampleLibrary.zip

@nkolev92

This comment has been minimized.

Copy link
Member

nkolev92 commented Jan 11, 2019

Merged in release-4.9.3-rtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment