Skip to content

Cannot use PackageRequireLicenseAcceptance = true with Microsoft.Build.NoTargets sdk #149

@denjmpr

Description

@denjmpr

Hello again!
I started to use your project widely - it is really helpful.
But I figured out a few issues which blocks me from making packages - I'm not sure - maybe I miss something.
I'll post them all as separate issues to your repository in the near future.

Describe the Bug

The current problem:
There is Microsoft.Build.NoTargets sdk project which references other Microsoft.NET.Sdk project.
In the Microsoft.Build.NoTargets project I'm trying to use PackageRequireLicenseAcceptance property, but getting Error "Enabling license acceptance requires a license or a licenseUrl to be specified. The licenseUrl will be deprecated, consider using the license metadata." I also use PackageLicenseFile property and placed "License.txt" file inside the package with PackageFile item.

Steps to Reproduce

  1. Open PackageLicenseFileExample.sln from attached file.
    PackageLicenseFileExample.zip
  2. Build PackageLicenseFileExample.sln solution with Visual Studio.
  3. Observe - Error "Enabling license acceptance requires a license or a licenseUrl to be specified. The licenseUrl will be deprecated, consider using the license metadata."

Expected Behavior

There is no error and during installing NuGet package dialog about license acceptance will appear.

Version Info

NuGetizer 0.7.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions