The error message you are receiving indicates that the NuGet package you are trying to install, Microsoft.WindowsDesktop.App.Ref version 8.0.6, has a package type 'DotnetPlatform' that is not compatible with your project. This package is a reference package that provides metadata for the Microsoft.WindowsDesktop.App NuGet package, which contains the Windows Desktop 8 runtime components.
To use the Windows Desktop 8 runtime components, you need to install the Microsoft.WindowsDesktop.App NuGet package instead of the Microsoft.WindowsDesktop.App.Ref package. You can install the Microsoft.WindowsDesktop.App NuGet package by searching for it in the NuGet Package Manager in Visual Studio and installing the appropriate version for your project.
References: