-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Blazor Server execption on publish after updating to .net 7 #41712
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
Comments
Thanks for contacting us. Looks like trimming related issue. |
@mkArtakMSFT thx for the fast reply. unchecked |
Thanks for confirming, @HeroinGyrl. |
What version of .NET 7 are you using? I think the changes recently made to DataProtection should fix this issue - #41650. It forces this type's public constructors to be preserved.
Those changes will be in .NET 7 preview 5. I suggest you leave trimming disabled for now, and try enabling it again once preview 5 is publically available. |
This issue has been resolved and has not had any activity for 1 day. It will be closed for housekeeping purposes. See our Issue Management Policies for more information. |
I updated my projects to .net 7 and now I'm getting these errors.
running this on local works but after publishing it gives these errors.
The text was updated successfully, but these errors were encountered: