Skip to content
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

Binary breaking change in removal of Microsoft.AspNetCore.Mvc.Components.Prerendering #388

rynowak opened this issue Sep 20, 2019 · 1 comment


Copy link

@rynowak rynowak commented Sep 20, 2019

Removal of Microsoft.AspNetCore.Mvc.Components.Prerendering

The assembly Microsoft.AspNetCore.Mvc.Components.Prerendering was removed in 3.0-preview 9. This can cause applications compiled against earlier 3.0 previews to fail at runtime even if they are not using this assembly.

Version introduced

3.0-preview 9

Old behavior

Applications compiled against 3.0-preview 8 or earlier are able to load Microsoft.AspNetCore.Mvc.Components.Prerendering

New behavior

Application crashes during startup with an exception like:

"Unhandled exception. System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.AspNetCore.Mvc.Components.Prerendering, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified. File name: 'Microsoft.AspNetCore.Mvc.Components.Prerendering, Culture=neutral, PublicKeyToken=null'    at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, RuntimeAssembly assemblyContext, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, AssemblyLoadContext assemblyLoadContext)    at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, StackCrawlMark& stackMark, AssemblyLoadContext assemblyLoadContext)    at System.Reflection.Assembly.Load(String assemblyString)    at Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartManager.<>c.<GetApplicationPartAssemblies>b__8_0(ApplicationPartAttribute name)    at System.Linq.Enumerable.SelectArrayIterator`2.ToArray()    at System.Linq.Buffer`1..ctor(IEnumerable`1 source)  

Reason for change

This assembly was part of the Blazor programming model, and the design and layering of these components changed between preview 8 and preview 9.

Recommended action

Rebuild the application against 3.0 preview 9 or later.



Affected APIs

"Not detectable via API analysis"

Issue metadata

  • Issue type: breaking-change
@rynowak rynowak added this to the 3.0.0-preview9 milestone Sep 20, 2019
@aspnet aspnet locked as resolved and limited conversation to collaborators Sep 20, 2019

This comment has been minimized.

Copy link
Member Author

@rynowak rynowak commented Sep 20, 2019

Please use aspnet/AspNetCore#14174 for discussion of this topic.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
None yet
1 participant
You can’t perform that action at this time.