Community Toolkit for MVVM broken in .Net 8.0

Community Toolkit for MVVM broken in .Net 8.0

Clint_Svensrud
Explorer Explorer
333 Views
3 Replies
Message 1 of 4

Community Toolkit for MVVM broken in .Net 8.0

Clint_Svensrud
Explorer
Explorer

Previously I have developed in .NET Framework 4.8 using the Community Toolkit for MVVM from GITHUB. After some tweaking change C# language to 10, all worked well.

 

In .NET 8.0 I start out debugging with a simple editor writeline. It works and I hit the break point. As soon as I declare a new class which derives from ObservableObject from the toolkit is written in the project. This breaks at NETLOAD and bypasses the debugger giving no error warnings.

 

I assuming this has issues due to Roselyn source code generator. 

 

Any help with this would be appreciated.

 

Thanks Clint

 

 

0 Likes
Accepted solutions (1)
334 Views
3 Replies
Replies (3)
Message 2 of 4

ricaun
Advisor
Advisor

Are you sure is related to Community Toolkit?

It is more likely your net8 configuration is not right.

 

What error warnings are you receiving?

The CommunityToolkit.Mvvm.dll has been created in your output project?

 

Luiz Henrique Cassettari

ricaun.com - Revit API Developer

AppLoader EasyConduit WireInConduit ConduitMaterial CircuitName ElectricalUtils

0 Likes
Message 3 of 4

18348401357
Enthusiast
Enthusiast
Accepted solution

It shouldn't be a problem with the mvvm toolkit. I'm sure this package can be used normally, whether it's net48 or net8

0 Likes
Message 4 of 4

Clint_Svensrud
Explorer
Explorer

I was able to get it work with Community Toolkit by add the following to Visual Studio project file.

<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
  <RuntimeIdentifier>win-x64</RuntimeIdentifier>