-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Single Transport Package for aspnetcore #47684
Conversation
…rt package to all config leg
….AspNetCore.Internal.Transport
Tagging subscribers to this area: @safern, @ViktorHofer Issue Details
depends on dotnet/arcade#6886 to bin place the .xml files
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the plan to produce a separate transport package for WindowsDesktop❔ I'm pretty sure they also (like dotnet/aspnetcore) special-case runtime packages that ship in their targeting pack.
@@ -29,9 +29,20 @@ If this library ships both inbox on a platform and in its own library package th | |||
``` | |||
Where the `AssemblyVersion` is set to the old version before updating. To determine if the library ships inbox you can look at for `InboxOnTargetFramework` item groups or `TreatAsOutOfBox` suppressions in the pkgproj for the library. | |||
|
|||
If the library is part of a Aspnetcore or .NET targeting pack then we cannot increment the assembly version. For Aspnetcore, You can examine the ```<IsAspNetCoreApp>true</IsAspNetCoreApp>``` property in the library`s ```Directory.Build.Props``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about WindowsDesktop❔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ericstj who will be the best person to tell us on what packages are used by windowsDesktop in their targeting pack ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know whom, but you could try spot checking them in the targeting pack installed in your dotnet SDK.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the implicit value (Microsoft.Extensions.*) be changed to be explicit?
runtime/src/libraries/NetCoreAppLibrary.props
Line 164 in 75d5cc3
<IsAspNetCoreApp Condition="$(MSBuildProjectName.StartsWith('Microsoft.Extensions.'))">true</IsAspNetCoreApp> |
...s/Microsoft.AspNetCore.Internal.Transport/src/Microsoft.AspNetCore.Internal.Transport.csproj
Outdated
Show resolved
Hide resolved
...s/Microsoft.AspNetCore.Internal.Transport/src/Microsoft.AspNetCore.Internal.Transport.csproj
Outdated
Show resolved
Hide resolved
...s/Microsoft.AspNetCore.Internal.Transport/src/Microsoft.AspNetCore.Internal.Transport.csproj
Outdated
Show resolved
Hide resolved
do you mean setting IsAspNetCoreApp in directory.build.props for extensions project as well ? |
Right. Currently we assume that all libraries which name start with Microsoft.Extensions.* are are aspnetcore libraries which isn't true for some. My question is about if we should stop doing that and just add the property to libraries that are relevant to aspnetcore. |
yes i think we should do that, because as we are planning on bring the hosting packages and those packages i dont think will be part of this package. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are all of the libs where you set IsAspNetCoreApp
needed by aspnetcore?
@dougbu are there any extensions projects here that are not needed by the aspnetcore |
The concise list of all assemblies expected in Microsoft.AspNetCore.App.Ref (what we'll get from the transport package) is https://github.com/dotnet/aspnetcore/blob/43a348b22468be9ed46ff1681cc113c9598b9f25/src/Framework/test/TestData.cs#L155-L288. Note that list includes more from dotnet/runtime than |
src/libraries/Microsoft.Extensions.DependencyModel/Directory.Build.props
Outdated
Show resolved
Hide resolved
@@ -2,5 +2,6 @@ | |||
<Import Project="..\Directory.Build.props" /> | |||
<PropertyGroup> | |||
<PackageDescription>Internal package for sharing Microsoft.Extensions.Hosting.HostFactoryResolver type.</PackageDescription> | |||
<IsAspNetCoreApp>true</IsAspNetCoreApp> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see this library in aspnetcore's list. @dougbu is this one needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, this isn't a library. aspnetcore uses the Microsoft.Extensions.HostFactoryResolver.Sources package but (of course) doesn't ship an assembly with this name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Anipik that's that package, so you want to keep <IsAspNetCoreApp>
as that's the source package that aspnetcore needs.
- handle Microsoft.Extensions.Internal.Transport -> 'Microsoft.AspNetCore.Internal.Transport name change - remove `$(...V0Version)` / `%(RTMVersion)` workarounds - remove mention of System.Security.AccessControl package; only need transitive references to that - confirm content of Microsoft.AspNetCore.Internal.Transport package - missing Microsoft.Extensions.DependencyModel assembly
- handle Microsoft.Extensions.Internal.Transport -> 'Microsoft.AspNetCore.Internal.Transport name change - remove `$(...V0Version)` / `%(RTMVersion)` workarounds - remove mention of System.Security.AccessControl package; only need transitive references to that - confirm content of Microsoft.AspNetCore.Internal.Transport package - missing Microsoft.Extensions.DependencyModel assembly
- handle Microsoft.Extensions.Internal.Transport -> 'Microsoft.AspNetCore.Internal.Transport name change - remove `$(...V0Version)` / `%(RTMVersion)` workarounds - remove mention of System.Security.AccessControl package; only need transitive references to that - confirm content of Microsoft.AspNetCore.Internal.Transport package - missing Microsoft.Extensions.DependencyModel assembly
* React to dotnet/runtime#47684, a new transport package - handle Microsoft.Extensions.Internal.Transport -> 'Microsoft.AspNetCore.Internal.Transport name change - remove `$(...V0Version)` / `%(RTMVersion)` workarounds - remove mention of System.Security.AccessControl package; only need transitive references to that - confirm content of Microsoft.AspNetCore.Internal.Transport package - missing Microsoft.Extensions.DependencyModel assembly * Remove unnecessary `using`s - namespace previously available due to Microsoft.Extensions.Internal.Transport dependency - no need for Microsoft.AspNetCore.Internal.Transport dependency * nit: Clean up "Extensions" naming in Ref project * Correct targeting pack content - intersection w/ `@(ExternalAspNetCoreAppReference)` items added nothing - excluded assemblies now included in transport package
- back-port from main / dotnet#30405 * React to dotnet/runtime#47684, a new transport package - handle Microsoft.Extensions.Internal.Transport -> 'Microsoft.AspNetCore.Internal.Transport name change - remove `$(...V0Version)` / `%(RTMVersion)` workarounds - remove mention of System.Security.AccessControl package; only need transitive references to that - confirm content of Microsoft.AspNetCore.Internal.Transport package - missing Microsoft.Extensions.DependencyModel assembly * Remove unnecessary `using`s - namespace previously available due to Microsoft.Extensions.Internal.Transport dependency - no need for Microsoft.AspNetCore.Internal.Transport dependency * nit: Clean up "Extensions" naming in Ref project * Correct targeting pack content - intersection w/ `@(ExternalAspNetCoreAppReference)` items added nothing - excluded assemblies now included in transport package
…#30461) - back-port from main / #30405 * React to dotnet/runtime#47684, a new transport package - handle Microsoft.Extensions.Internal.Transport -> 'Microsoft.AspNetCore.Internal.Transport name change - remove `$(...V0Version)` / `%(RTMVersion)` workarounds - remove mention of System.Security.AccessControl package; only need transitive references to that - confirm content of Microsoft.AspNetCore.Internal.Transport package - missing Microsoft.Extensions.DependencyModel assembly * Remove unnecessary `using`s - namespace previously available due to Microsoft.Extensions.Internal.Transport dependency - no need for Microsoft.AspNetCore.Internal.Transport dependency * nit: Clean up "Extensions" naming in Ref project * Correct targeting pack content - intersection w/ `@(ExternalAspNetCoreAppReference)` items added nothing - excluded assemblies now included in transport package Co-authored-by: Doug Bunting <[email protected]>
depends on dotnet/arcade#6886 to bin place the .xml files