ookii-dialogs / ookii-dialogs-wpf

Awesome dialogs for Windows Desktop applications built with Microsoft .NET (WPF)
BSD 3-Clause "New" or "Revised" License
1.14k stars 85 forks source link

Publish nuget package that contains .NET Core 3.1 assemblies #20

Closed Insire closed 3 years ago

Insire commented 3 years ago

Hi,

i noticed that you merged and pushed support for .NET Core 3.1 here on github. It would be great, if the official nuget package would reflect that support aswell. Right now, there are only .NET 4.5 assemblies in there. Which causes a warning when restoring and building a project with that version.

Your package on fuget.

What i get when i download the package manually: grafik

Then warning in question:

3>E:\Code\Maple\src\Maple\Maple.csproj : warning NU1701: Package 'Ookii.Dialogs.Wpf 1.2.0' 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.

My project targets <TargetFrameworks>netcoreapp3.1</TargetFrameworks>

augustoproiete commented 3 years ago

Hey @Insire, yes I did all those things you mentioned, last night, but just in a different order... I released Ookii.Dialogs v1.2.0 first, from the master branch which contains a number of features that made in before the .NET Core 3.1 merge into the develop branch which is still a work-in-progress.

Support for .NET Core 3.1 will come in a few days as version 2.0.0 and I'll release at least one pre-release package (#5) before the final 2.0.0 release, probably over the weekend.

Insire commented 3 years ago

i'll be patient then. :)

augustoproiete commented 3 years ago

@Insire, the Ookii.Dialogs.Wpf 2.0.0-preview1 has been published on nuget.org

Install-Package Ookii.Dialogs.Wpf -Version 2.0.0-preview1

Please test in your apps and report any issues you find.


Thanks to @acemod13 for doing all the work!

Insire commented 3 years ago

Hi,

thx for the update. With the new preview version the warning is gone and the VistaOpenFileDialog seems to be working as expected. Thx!

augustoproiete commented 3 years ago

@Insire, the stable version with .NET 3.1 support has been published to nuget.org: Ookii.Dialogs.Wpf 2.0.0

Install-Package Ookii.Dialogs.Wpf -Version 2.0.0

N.B.: WPF apps on .NET Core 3.1 need to declare an application manifest in order to use Ookii Dialogs. The manifest was added automatically in .NET Framework apps, but with .NET Core 3.1 this is no longer the case, so there's a little extra step that the developer needs to do. More details on the README of this repo.


Thanks again to @acemod13 for the contribution!

Insire commented 3 years ago

I'll keep that in mind. Thanks for the update and your work.