[Bug]: Installing ReactiveUI.Wpf in a .NET 7 WPF project forces a restore to .net framework
mStylias opened this issue ยท 4 comments
Describe the bug ๐
When installing any ReactiveUI.WPF version above 18.4.1 in a .net 7 WPF project it creates the following warning:
warning NU1701: Package 'ReactiveUI.WPF 18.4.26' 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, .NETFramework,Version=v4.8.1' instead of the project target framework 'net7.0-windows7.0'. This package may not be fully compatible with your project.
One of the implications of this warning is that calculating code metrics doesn't work.
Step to reproduce
- Create a .NET 7 WPF project
- Install ReactiveUI, ReactiveUI.WPF and ReactiveUI.Fody latest version nuget packages
Reproduction repository
https://github.com/reactiveui/ReactiveUI
Expected behavior
The project shouldn't get restored to .Net Framework
Screenshots ๐ผ๏ธ
No response
IDE
Visual Studio 2022
Operating system
Windows 11
Version
No response
Device
No response
ReactiveUI Version
18.4.26
Additional information โน๏ธ
No response
the default net7.0-windows
targets windows 7 which isn't supported. you need to change your project to target net7.0-windows10.0.17763.0
or later
Recommend you target net7.0-windows10.0.19041
I see, thanks for the clarification!
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.