-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Cannot change <MauiVersion> in .csproj #38636
Comments
Is this the same issue? |
Are you referencing the Nuget packages in your project?
If you don't reference the nugets, changing MauiVersion will, I believe, change the Workload version. That's why it fails for you, since you only have that version installed. Also, you should really update to .NET SDK 8.0.1 and the newest Workloads ( |
Hi @MeestorX. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
1 similar comment
Hi @MeestorX. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
Yes, those lines are still in there.
I have run |
So this is an SDK issue, not Maui? I noticed you moved it from Maui. |
Looks like the problem became widespread! |
Description
I receive the following error if I add
<MauiVersion></MauiVersion>
to my .csproj:The type or namespace name 'MauiUIApplicationDelegate' could not be found (are you missing a using directive or an assembly reference?) [{.csproj file name}::TargetFramework=net8.0-maccatalyst]
Steps to Reproduce
Create the default Maui Hybrid app
Add the line
<MauiVersion>{whatever version of Maui you're currently running or any other version}</MauiVersion>
Run for MacCatalyst
In my case, I have 8.0.6 installed and without
<MauiVersion>
it runs properly.The ONLY value that I can put for
<MauiVersion>
is 8.0.0-rc.1.9171. Any other value will cause the above error. e.g.<MauiVersion>8.0.0-rc.1.9171</MauiVersion>
This "version string" matches the workload version. I cannot specify any OTHER version of Maui within .csproj to allow me to test a newer build.
Link to public reproduction project repository
No response
Version with bug
8.0.6
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
macOS
Affected platform versions
MacOS Sonoma
Did you find any workaround?
No response
Relevant log output
The text was updated successfully, but these errors were encountered: