Skip to content

Commit

Permalink
Remove PackageLicenseFile which prevents PackageLicenseExpression fro…
Browse files Browse the repository at this point in the history
…m working correctly
  • Loading branch information
lahma committed Feb 7, 2024
1 parent 4e52655 commit aeee3ca
Show file tree
Hide file tree
Showing 11 changed files with 31 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@
<PropertyGroup>
<Copyright>$(CopyrightMicrosoft)</Copyright>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageLicenseFile>LICENSE_MIT.txt</PackageLicenseFile>
<PackageLicenseFullPath>$(SrcPackageFolder)licenses/LICENSE_MIT.txt</PackageLicenseFullPath>
<!-- Prevent warning about deprecated target frameworks -->
<CheckEolTargetFramework>false</CheckEolTargetFramework>
Expand All @@ -90,6 +89,10 @@
<BuildWithNetFrameworkHostedCompiler>true</BuildWithNetFrameworkHostedCompiler>
</PropertyGroup>

<ItemGroup>
<NuspecProperty Include="MITPackageLicenseFullPath=$(PackageLicenseFullPath)" />
</ItemGroup>

<!-- Sign config -->
<PropertyGroup>
<StrongNameKeyId>Microsoft</StrongNameKeyId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
<file src="netstandard2.0\zh-Hans\Microsoft.TestPlatform.AdapterUtilities.resources.dll" target="lib\netstandard2.0\zh-Hans" />
<file src="netstandard2.0\zh-Hant\Microsoft.TestPlatform.AdapterUtilities.resources.dll" target="lib\netstandard2.0\zh-Hant" />

<file src="$MITPackageLicenseFullPath$" target="" />

<!-- TODO: Include source files. -->
</files>
</package>
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,8 @@
<file src="netstandard2.0/tr/Microsoft.TestPlatform.Build.resources.dll" target="lib/netstandard2.0/tr" />
<file src="netstandard2.0/zh-Hans/Microsoft.TestPlatform.Build.resources.dll" target="lib/netstandard2.0/zh-Hans" />
<file src="netstandard2.0/zh-Hant/Microsoft.TestPlatform.Build.resources.dll" target="lib/netstandard2.0/zh-Hant" />

<file src="$MITPackageLicenseFullPath$" target="" />

</files>
</package>
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,8 @@
<file src="netstandard2.0\tr\Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger.resources.dll" target="lib\netstandard2.0\tr" />
<file src="netstandard2.0\zh-Hans\Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger.resources.dll" target="lib\netstandard2.0\zh-Hans" />
<file src="netstandard2.0\zh-Hant\Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger.resources.dll" target="lib\netstandard2.0\zh-Hant" />

<file src="$MITPackageLicenseFullPath$" target="" />

</files>
</package>
Original file line number Diff line number Diff line change
Expand Up @@ -112,5 +112,8 @@
<file src="netstandard2.0\zh-Hans\Microsoft.TestPlatform.CoreUtilities.resources.dll" target="lib\netstandard2.0\zh-Hans" />
<file src="netstandard2.0\zh-Hant\Microsoft.TestPlatform.CoreUtilities.resources.dll" target="lib\netstandard2.0\zh-Hant" />
<!-- /netstandard 2.0 -->

<file src="$MITPackageLicenseFullPath$" target="" />

</files>
</package>
Original file line number Diff line number Diff line change
Expand Up @@ -154,5 +154,8 @@
<file src="netstandard2.0\tr\Microsoft.VisualStudio.TestPlatform.Common.resources.dll" target="lib\netstandard2.0\tr" />
<file src="netstandard2.0\zh-Hans\Microsoft.VisualStudio.TestPlatform.Common.resources.dll" target="lib\netstandard2.0\zh-Hans" />
<file src="netstandard2.0\zh-Hant\Microsoft.VisualStudio.TestPlatform.Common.resources.dll" target="lib\netstandard2.0\zh-Hant" />

<file src="$MITPackageLicenseFullPath$" target="" />

</files>
</package>
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,8 @@
<file src="net462\Microsoft.VisualStudio.TraceDataCollector\tr\Microsoft.VisualStudio.TraceDataCollector.resources.dll" target="build\netstandard2.0\tr" />
<file src="net462\Microsoft.VisualStudio.TraceDataCollector\zh-Hans\Microsoft.VisualStudio.TraceDataCollector.resources.dll" target="build\netstandard2.0\zh-Hans" />
<file src="net462\Microsoft.VisualStudio.TraceDataCollector\zh-Hant\Microsoft.VisualStudio.TraceDataCollector.resources.dll" target="build\netstandard2.0\zh-Hant" />

<file src="$MITPackageLicenseFullPath$" target="" />

</files>
</package>
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,8 @@

<file src="netstandard2.0\_._" target="lib/netcoreapp3.1" />
<file src="netstandard2.0\_._" target="lib/net462" />

<file src="$MITPackageLicenseFullPath$" target="" />

</files>
</package>
Original file line number Diff line number Diff line change
Expand Up @@ -416,5 +416,7 @@
<file src="netcoreapp3.1\zh-Hans\Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger.resources.dll" target="contentFiles\any\netcoreapp3.1\Extensions\zh-Hans" />
<file src="netcoreapp3.1\zh-Hant\Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger.resources.dll" target="contentFiles\any\netcoreapp3.1\Extensions\zh-Hant" />

<file src="$MITPackageLicenseFullPath$" target="" />

</files>
</package>
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,7 @@
<file src="netstandard2.0\Microsoft.VisualStudio.TestPlatform.Common.dll" target="lib\netstandard2.0\" />
<file src="netstandard2.0\Microsoft.TestPlatform.PlatformAbstractions.dll" target="lib\netstandard2.0\" />

<file src="$MITPackageLicenseFullPath$" target="" />

</files>
</package>
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,8 @@
<file src="netcoreapp3.1\tr\Microsoft.VisualStudio.TestPlatform.Common.resources.dll" target="lib\netcoreapp3.1\tr" />
<file src="netcoreapp3.1\zh-Hans\Microsoft.VisualStudio.TestPlatform.Common.resources.dll" target="lib\netcoreapp3.1\zh-Hans" />
<file src="netcoreapp3.1\zh-Hant\Microsoft.VisualStudio.TestPlatform.Common.resources.dll" target="lib\netcoreapp3.1\zh-Hant" />

<file src="$MITPackageLicenseFullPath$" target="" />

</files>
</package>

0 comments on commit aeee3ca

Please sign in to comment.