Skip to content
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

"Packing was skipped because ... doesn't have a <PackageLicenseFile> property." when the license file comes from a nuspec template (OSOE-639) #236

Open
Piedone opened this issue Jun 4, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Piedone
Copy link
Member

Piedone commented Jun 4, 2023

Case in point for Lombiq .NET Analyzers: It uses a ConvertTo-Nuspec.ps1 script to add the following element with a reference to the license file:

<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
    <metadata>
        <license type="file">License.md</license>
    </metadata>
</package>

This is valid but causes New-NuGetPackage.ps1 to throw the above warning because it looks specifically for the //PropertyGroup/PackageLicenseFile element. Rather, it should support the above notation too.

Once this is fixed, remove the workaround from Lombiq.Analyzers.

Jira issue

@Piedone Piedone added the bug Something isn't working label Jun 4, 2023
@github-actions github-actions bot changed the title "Packing was skipped because ... doesn't have a <PackageLicenseFile> property." when the license file comes from a nuspec template "Packing was skipped because ... doesn't have a <PackageLicenseFile> property." when the license file comes from a nuspec template (OSOE-639) Jun 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant