Skip to content

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

Merged
merged 5 commits into from
May 20, 2019
Merged

Conversation

pranavkm
Copy link
Contributor

No description provided.

@pranavkm pranavkm force-pushed the prkrishn/mvc-discovery branch from f51658b to c737497 Compare May 15, 2019 18:49
@Eilon Eilon added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label May 15, 2019
@pranavkm pranavkm requested a review from rynowak May 15, 2019 19:46
@pranavkm pranavkm force-pushed the prkrishn/mvc-discovery branch from c737497 to 93d14ae Compare May 16, 2019 19:55
@@ -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" />
Copy link
Contributor Author

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?

Copy link
Member

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

Copy link
Contributor

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.

@pranavkm pranavkm force-pushed the prkrishn/mvc-discovery branch from d1a52b3 to d7fb1bb Compare May 17, 2019 18:10
@pranavkm pranavkm requested a review from a team as a code owner May 17, 2019 18:10
@@ -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)" />
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

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

@pranavkm
Copy link
Contributor Author

@aspnet-hello
Copy link

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)
https://github.com/aspnet/AspNetCore-Internal/issues/2267

@natemcmaster natemcmaster added the breaking-change This issue / pr will introduce a breaking change, when resolved / merged. label May 20, 2019
@pranavkm pranavkm merged commit 200c9e2 into master May 20, 2019
@ghost ghost deleted the prkrishn/mvc-discovery branch May 20, 2019 16:10
@davidfowl
Copy link
Member

👏 👏

@davidfowl
Copy link
Member

@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)
Copy link
Member

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

Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates breaking-change This issue / pr will introduce a breaking change, when resolved / merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants