Remove PackageLicenseFile preventing PackageLicenseExpression from working#4890
Conversation
…m working correctly
8c516c4 to
aeee3ca
Compare
|
@microsoft-github-policy-service agree |
Co-authored-by: Amaury Levé <amaury.leve@gmail.com>
|
With the proposed changes the package verification now fails. |
|
Yes because there are less files included. Let me help you here. |
All MIT packages no longer include MIT license file
|
My assumption was that the license file should part of the package even though license expression would be MIT, this is why added explicit packaging. So should the checks just be changed to have one file less as expected count? |
| @@ -17,18 +17,18 @@ Add-Type -AssemblyName System.IO.Compression.FileSystem | |||
| function Verify-Nuget-Packages { | |||
| Write-Host "Starting Verify-Nuget-Packages." | |||
| $expectedNumOfFiles = @{ | |||
There was a problem hiding this comment.
For all packages using MIT license, reduce count by 1 as license file is no longer present.
File was added explicitly because VSTest was only moved to our common build infra recently and there are still reminicense of the past that we missed.
Correct! I did it and checked locally that build was good. -- Thanks for the contribution @lahma! |
|
Hum that's weird. I am pretty busy until Thursday so I will only be able to investigate and ensure this gets merged then. Sorry for the delay! |
|
Still working out what's the issue. |
|
Ok so that was just the test infra being super flaky. Thank you for the work here @lahma! |

Description
Removing the
PackageLicenseFileallowsPackageLicenseExpressionto work correctly. Adding explicit packaging instructions to nuspec to keep the MIT license as part of packages.Checking artifacts from
.\build.cmd -packBefore
After
Related issue
fixes #4816