Skip to content
This repository has been archived by the owner on Sep 20, 2021. It is now read-only.

.NET Core Support #88

Open
mysteryx93 opened this issue Apr 30, 2020 · 9 comments
Open

.NET Core Support #88

mysteryx93 opened this issue Apr 30, 2020 · 9 comments

Comments

@mysteryx93
Copy link

When I add MvvmLight to a .NET Core project, I get this error

Warning NU1701 Package 'MvvmLightLibs 5.4.1.1' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework '.NETCoreApp,Version=v3.1'. This package may not be fully compatible with your project.

Has it been updated to work with .NET Core?

@jamesmcroft
Copy link

jamesmcroft commented Apr 30, 2020

@mysteryx93 I believe you get .NET core support from the MvvmLightLibsStd10 (.NET Standard) package, however, it hasn't been updated since 2018 so might not give you the functionality you might like for WPF.

@mysteryx93
Copy link
Author

mysteryx93 commented Apr 30, 2020

Ah I see. Only problem is that GalaSoft.MvvmLight.CommandWpf won't be supported.

Or keep it with the .NET Framework version; it's working but it's just showing the warnings.

Also the code snippets plugin was never updated for Visual Studio 2019. Is there anyone still maintaining MvvmLight?

@LentoMan
Copy link

Until we get any official statement from Laurent, you could always try to (look for a) fork.

Another option is to try a similar library like Prism, which currently supports Wpf for .NETCoreApps

@KevinBassaDevelopment
Copy link

.Net Core support would be great!

@jamesmcroft
Copy link

I don't think there has been any official statement on whether MvvmLight is no longer going to be maintained.

There has been a bit of effort to breathe new life into MvvmLight through building a new MVVM framework within the Windows Community Toolkit.

The umbrella for this says Windows but don't worry. The MVVM Toolkit there which was inspired by the MvvmLight toolkit is platform agnostic.

@mysteryx93
Copy link
Author

Sounds like an awesome initiative! I've looked at the other MVVM frameworks and I didn't find the extra features really useful for my specific needs. I prefer it does a basic job well.

A well-supported rewrite with better performance would be a double-plus!

@michael-hawker
Copy link

Figured I'd follow-up here and say that we shipped our 7.0 version last month which includes the new MVVM Toolkit. You can find the notes on migrating from MVVM Light here: https://docs.microsoft.com/en-us/windows/communitytoolkit/mvvm/migratingfrommvvmlight and samples here: https://aka.ms/mvvmtoolkit/samples.

@luetm
Copy link

luetm commented Aug 30, 2021

Figured I'd follow-up here and say that we shipped our 7.0 version last month which includes the new MVVM Toolkit. You can find the notes on migrating from MVVM Light here: https://docs.microsoft.com/en-us/windows/communitytoolkit/mvvm/migratingfrommvvmlight and samples here: https://aka.ms/mvvmtoolkit/samples.

Does that work with WPF too?

@michael-hawker
Copy link

@luetm yes, the MVVM Toolkit is based on .NET Standard and works with WPF, UWP, Xamarin, Uno, MAUI, WinUI 3, etc...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants