Search code examples
nugetuno-platform

Uno Platform: How to determine which nuget packages are needed for each platform


I think I have messed up which nuget packages are installed for my various platforms, and which versions are appropriate. How does one determine the correct packages and versions?

I discovered this by creating a fresh solution and comparing some of the package assignments and versions between that and my "real" solution.

Currently, my UWP build is failing with

CS0246 The type or namespace name 'IMainPage_Bindings' could not be found 

Here are a couple of my packages:

Microsoft.NETCore.UniversalWindowsPlatform 6.2.9 for UWP only
NetStandard.Library                        2.0.3 for Wasm and UWP

I will make a 2nd pass and try to get all my packages the same as for my "fresh" app, but my question still stands: how am I to determine the correct package version and assignments?


Solution

  • For this type of scenario, it is best to start from the original templates.

    You can either:

    Then observe the differences between those files and your project and align the versions.