-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Use attributes for application part discovery #10271
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
Conversation
f51658b
to
c737497
Compare
c737497
to
93d14ae
Compare
@@ -15,7 +15,6 @@ | |||
<Reference Include="Microsoft.AspNetCore.Routing.Abstractions" /> | |||
<Reference Include="Microsoft.AspNetCore.Routing" /> | |||
<Reference Include="Microsoft.Extensions.DependencyInjection" /> | |||
<Reference Include="Microsoft.Extensions.DependencyModel" /> |
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.
@natemcmaster we could remove Microsoft.Extensions.DependencyModel
from the shared fx now. None of the other MVC assemblies that reference it are part of Microsoft.AspNetCore.App. Should I remove it?
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.
verified S P I C Y
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.
Let's run this by Damian and Fowler. Can you send mail on this? I'm personally okay with it, but let's make sure we think measure the impact first.
d1a52b3
to
d7fb1bb
Compare
@@ -56,9 +56,6 @@ | |||
<ExternalAspNetCoreAppReference Include="System.Security.Cryptography.Xml" Version="$(SystemSecurityCryptographyXmlPackageVersion)" /> | |||
<ExternalAspNetCoreAppReference Include="System.Threading.Channels" Version="$(SystemThreadingChannelsPackageVersion)" /> | |||
|
|||
<!-- Dependencies from dotnet/core-setup --> | |||
<ExternalAspNetCoreAppReference Include="Microsoft.Extensions.DependencyModel" Version="$(MicrosoftExtensionsDependencyModelPackageVersion)" /> |
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.
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.
Can you update this list? #3755
This comment was made automatically. If there is a problem contact [email protected]. I've triaged the above build. I've created/commented on the following issue(s) |
👏 👏 |
@pranavkm Can/Did we turn off PreserveCompilationContext now in the Razor SDK? |
@@ -52,18 +52,56 @@ public void PopulateFeature<TFeature>(TFeature feature) | |||
|
|||
internal void PopulateDefaultParts(string entryAssemblyName) |
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.
@pranavkm it would be good to profile this to understand how this particular piece of code scales (allocations wise) with the number of assemblies. I know it only happens once per app but I'm curious mostly because of the amount of LINQ
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.
Ok. We used to have a ton of Linq in the Deps file code too which is primarily why I didn't think it was a big deal: https://github.com/aspnet/AspNetCore/blob/release/3.0-preview5/src/Mvc/Mvc.Core/src/ApplicationParts/ApplicationAssembliesProvider.cs#L48-L79. We could switch it to vanilla for loops if you think this might be something to be concerned about.
No description provided.