-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
MAUI app build is broken with .NET 8.0.403 #25179
Comments
Have you taken a look at #25132 |
Specifically, the section about WebView2 errors. You should be able to work around this for now with adding the property to your project: <PropertyGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'"">
<CsWinRTRcwFactoryFallbackGeneratorForceOptOut>true</CsWinRTRcwFactoryFallbackGeneratorForceOptOut>
</PropertyGroup> |
As of today, I am getting the following errors, which seem to be related to the VS update to 17.11.5 I did yesterday
|
Did you find some solutions? Same error here |
We implemented this workaround and it seems to work for now. |
Description
The build of our MAUI App suddenly broke when the new 8.0.403 SDK rolled out. The build works fine with 8.0.402. The errors seems to be related to the MSAL library when used with .NET MAUI. I suspect the MAUI libraries and the identity libraries have some sort of circular or common reference issue.
Repro steps:
Expected:
No errors.
Actual:
Lots of duplicated type error messages. Like so:
As the repro steps also show, there is no direct reference to these assemblies in the project.
Also tested
We only have problem when doing this in MAUI. I tested both 8.0.82 and 8.0.91 but that did not have an effect on this.
(Just to clear things up, we are not creating a new app, our older app's build pipeline suddenly broke with the .NET version published.)
Workaround:
Use
global.json
to force 8.0.402 SDK will fix the issue for now.This works as a temporal fix, but someone who knows more about the internals of these libraries should check what and why is happening.
Steps to Reproduce
Link to public reproduction project repository
No response
Version with bug
8.0.82 SR8.2
Is this a regression from previous behavior?
No, this is something new
Last version that worked well
8.0.82 SR8.2
Affected platforms
Windows
Affected platform versions
No response
Did you find any workaround?
Use
global.json
to force 8.0.402 SDK will fix the issue for now.This works as a temporal fix, but someone who knows more about the internals of these libraries should check what and why is happening.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: