question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Library projects targeting net6.0 and UseMaui set to true VSMac project UI properties doesn't work

See original GitHub issue

Description

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:closed
  • Created 7 months ago
  • Comments:12

github_iconTop GitHub Comments

1reaction
mariaghiondeacommented, Mar 7, 2023

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found