Avalonia icon indicating copy to clipboard operation
Avalonia copied to clipboard

Consider using Central Package Management insted of props files

Open rstm-sf opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe. At the moment, when adding or bumping any nuget dependency, we need to know about props files

Describe the solution you'd like Central Package Management in my opinion is a mature solution to start using it. This is convenient, everything is stored in one file, and when adding a dependency outside of PackageVersion, an error will be that the solution uses CPM

rstm-sf avatar Oct 20 '22 06:10 rstm-sf

Does it work well with stable VS and Rider? If anybody have used it already.

maxkatz6 avatar Oct 20 '22 06:10 maxkatz6

If you mean the build and analysis of the code, then everything was fine with me. If you mean the nuget manager, then I can’t say anything

rstm-sf avatar Oct 20 '22 07:10 rstm-sf

NuGet Central Package Management Comes To JetBrains Rider | The .NET Tools Blog https://blog.jetbrains.com/dotnet/2022/11/07/nuget-central-package-management-comes-to-jetbrains-rider/

rstm-sf avatar Nov 08 '22 14:11 rstm-sf

Note that we'll still be keeping files like https://github.com/AvaloniaUI/Avalonia/blob/master/build/XUnit.props to avoid manually adding 10 dependencies to unit test projects.

kekekeks avatar Nov 09 '22 07:11 kekekeks

There are also tricks like this one https://github.com/AvaloniaUI/Avalonia/blob/master/build/System.Drawing.Common.props to make System.Drawing to work properly

kekekeks avatar Nov 09 '22 07:11 kekekeks