Uh oh!
There was an error while loading. Please reload this page.
Convert AspNetCore transport pkgproj to Pack task - #56674
Conversation
ghost
commented
Jul 31, 2021
Tagging subscribers to this area: @Anipik, @safern, @ViktorHofer Issue DetailsConverting the Microsoft.AspNetCore.Internal.Transport package to a proj Also moving some more packaging related targets into packaging.targets.
|
Converting the Microsoft.AspNetCore.Internal.Transport package to a proj file which uses the NuGet Pack task. Also moving some more packaging related targets into packaging.targets.
a9d23fd to
156e0e1Compare
Anipik
left a comment
There was a problem hiding this comment.
Can you add the nuspec diff here as well ?
ViktorHofer
commented
Aug 2, 2021
Just added it to the top post. As the package doesn't have any dependencies it doesn't really tell much though. |
Many unrelated failures because of flakiness in the test infrastructure. Merging. |
Anipik
commented
Aug 2, 2021
the diff here shows no files in the package. |
ViktorHofer
commented
Aug 2, 2021
A nuspec generated by the NuGet Pack task doesn't list any files by design. I compared the files locally and those match. |
the extensions package use the nuget pack but still has the files <?xml version="1.0" encoding="utf-8"?>
<packagexmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
<metadata>
<id>Microsoft.Extensions.DependencyInjection.Abstractions</id>
<version>6.0.0-dev</version>
<authors>Microsoft</authors>
<licensetype="expression">MIT</license>
<licenseUrl>https://licenses.nuget.org/MIT</licenseUrl>
<icon>Icon.png</icon>
<projectUrl>https://dot.net/</projectUrl>
<description>Abstractions for dependency injection.
Commonly Used Types:
Microsoft.Extensions.DependencyInjection.IServiceCollection</description>
<releaseNotes>https://go.microsoft.com/fwlink/?LinkID=799421</releaseNotes>
<copyright>© Microsoft Corporation. All rights reserved.</copyright>
<repositorytype="git"url="https://github.com/dotnet/runtime"commit="0000000000000000000000000000000000000000" />
<dependencies>
<grouptargetFramework=".NETFramework4.6.1">
<dependencyid="Microsoft.Bcl.AsyncInterfaces"version="6.0.0-dev"exclude="Build,Analyzers" />
<dependencyid="System.Threading.Tasks.Extensions"version="4.5.4"exclude="Build,Analyzers" />
</group>
<grouptargetFramework=".NETStandard2.0">
<dependencyid="Microsoft.Bcl.AsyncInterfaces"version="6.0.0-dev"exclude="Build,Analyzers" />
<dependencyid="System.Threading.Tasks.Extensions"version="4.5.4"exclude="Build,Analyzers" />
</group>
<grouptargetFramework=".NETStandard2.1" />
</dependencies>
</metadata>
<files>
<filesrc="C:\git\runtime\artifacts\bin\Microsoft.Extensions.DependencyInjection.Abstractions\net461-Debug\Microsoft.Extensions.DependencyInjection.Abstractions.dll"target="lib\net461\Microsoft.Ext <file src="C:\git\runtime\artifacts\bin\Microsoft.Extensions.DependencyInjection.Abstractions\netstandard2.0-Debug\Microsoft.Extensions.DependencyInjection.Abstractions.dll" target="lib\netstandard2
<file src="C:\git\runtime\artifacts\bin\Microsoft.Extensions.DependencyInjection.Abstractions\netstandard2.1-Debug\Microsoft.Extensions.DependencyInjection.Abstractions.dll"target="lib\netstandard2 <file src="C:\Users\anagniho\.nuget\packages\microsoft.private.intellisense\5.0.0-preview-20201009.2\IntellisenseFiles\net\1033\Microsoft.Extensions.DependencyInjection.Abstractions.xml" target="lib
<file src="C:\Users\anagniho\.nuget\packages\microsoft.private.intellisense\5.0.0-preview-20201009.2\IntellisenseFiles\net\1033\Microsoft.Extensions.DependencyInjection.Abstractions.xml"target="lib <file src="C:\Users\anagniho\.nuget\packages\microsoft.private.intellisense\5.0.0-preview-20201009.2\IntellisenseFiles\net\1033\Microsoft.Extensions.DependencyInjection.Abstractions.xml" target="lib
<file src="C:\git\runtime\eng\useSharedDesignerContext.txt"target="useSharedDesignerContext.txt" />
<filesrc="C:\Users\anagniho\.nuget\packages\microsoft.dotnet.arcade.sdk\6.0.0-beta.21370.12\tools\Assets\DotNetPackageIcon.png"target="Icon.png" />
<filesrc="C:\git\runtime\LICENSE.TXT"target="LICENSE.TXT" />
<filesrc="C:\git\runtime\THIRD-PARTY-NOTICES.TXT"target="THIRD-PARTY-NOTICES.TXT" />
</files>
</package> |
ViktorHofer
commented
Aug 2, 2021
I don't know which NuGet.exe or dotnet sdk you are using but neither the tools on my machine nor the official builds produce nuspecs with files in it: |
safern
commented
Aug 2, 2021
I believe @Anipik might be looking at the nuspec generated by the task in order to generate the nupkg and the one that doesn't contain the files is the one inside the final package? |
Anipik
commented
Aug 2, 2021
correct |
ViktorHofer
commented
Aug 2, 2021
Thanks for clarifying, that makes sense. I don't think diffing that intermediate nuspec is useful as it doesn't represent the final nuspec which is part of the package. Also the intermediate one if machine specific (ie absolute paths) and hence quite hard to diff. |
safern
commented
Aug 3, 2021
This change introduced a build error when building some of the extensions package. i.e: Should repro with: The interesting thing is that it doesn't fail the build, that's why the build was green. |
safern
commented
Aug 3, 2021
Seems to be related to ordering, haven't figured out why, but packaging.targets is imported afterwards. If I move what was moved from |
ViktorHofer
commented
Aug 3, 2021
Thanks for reporting. I will try to fix this immediately. Interestingly this is also showing in my other PR (windows compat pack). |
safern
commented
Aug 3, 2021
I see. The problem is that these properties: Where set unconditionally and now are set conditionally only when |

Converting the Microsoft.AspNetCore.Internal.Transport package to a proj
file which uses the NuGet Pack task.
Also moving some more packaging related targets into packaging.targets.
Diff: https://www.diffchecker.com/3qVruSQz