-
Notifications
You must be signed in to change notification settings - Fork 2.1k
[Proposal][Fixes #4187] Get rid of DNX services #4379
Conversation
@javiercn - do they have to add the 'entry' assembly or do they get that for free? |
/// <summary> | ||
/// A type that uses Roslyn to compile C# content and <see cref="ILibraryExporter"/> to find out references. | ||
/// </summary> | ||
public class DnxRoslynCompilationService : ICompilationService |
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.
We might need to find an alternative for this. Can we make the default implementation make use of ApplicationPartManager to get the list of referenced assemblies?
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.
That's a different matter entirely. These are not the same.
|
||
namespace Microsoft.AspNetCore.Mvc.Infrastructure | ||
{ | ||
public class DnxAssemblyProvider : IAssemblyProvider |
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.
Couldn't we just port this? The API doesn't seem significantly different and it avoids breaking people again.
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.
Yes, please 👍
We don't need IAssemblyProvider anymore as we have application parts, this commit removes support for IAssemblyProvider from MVC and DNX assembly provider. For customers running on RC1 using DNX that want to use nightly bits, the alternative is to add their assemblies manually to the IMvcBuilder.ApplicationPartManager during startup.