Library projects targeting net6.0 and UseMaui set to true VSMac project UI properties doesn't work
See original GitHub issueDescription
For this very basic project setting:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<UseMaui>true</UseMaui>
<ImplicitUsings>false</ImplicitUsings>
</PropertyGroup>
</Project>
VSMac UI Properties configuration cannot be open.
When changing to <UseMauiEssentials>true</UseMauiEssentials>
project properties are being displayed without issues.
Could be related to: https://github.com/dotnet/maui/issues/6529
Steps to Reproduce
Create MAUI SDK library project with configuration specified in the description.
Link to public reproduction project repository
NA
Version with bug
7.0 (current)
Last version that worked well
Unknown/Other
Affected platforms
macOS
Affected platform versions
net6.0 net7.0
Did you find any workaround?
Partial workaround for projects that switching to <UseMauiEssentials>true</UseMauiEssentials>
is sufficient.
Relevant log output
No response
VS bug #1759228
Issue Analytics
- State:
- Created 7 months ago
- Comments:12
Top Results From Across the Web
With UseMaui = true in class library I get a ' ...
I believe this is an issue with the Windows App SDK that assumes that the class libraries have the same windows TargetFramework as...
Read more >.net MAUI can't build due to not found target in project. ...
My solution for this is to go to the MAUI Shared in properties and set the build number and display version to the...
Read more >Unable to compile .net 6.0 projects in VS 2022
While creating new project I got the option to select .net 6.0 but ... in target framework list which is shown within project...
Read more >Telerik MAUI is not compatible with net6.0
UI.for.MAUI.Trial 1.0.1 reference into my MAUI class libraries, It said Project XXX is not compatible with net6.0 (.NETCoreApp,Version=v6.0) ...
Read more >Multi-target Xamarin.Forms and .NET MAUI from a single project
This class library contains the common definitions that can be shared with all the platforms, which could be UI, services, resources, business ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
That’s the build that it doesn’t repro for me on… Thank you for trying! We’ve made a change in this area for Preview 2. I’ll reach out again after that is released so we can try and see if it solves it.
@mariaghiondea https://developercommunity.visualstudio.com/t/Library-projects-targeting-net60-and-Us/10316394