[英].NET windows forms project and UWP project that both reference .NET Standard class lib gets:
...並獲得:
錯誤...
錯誤NU1201 Project .NET Standard VB ClassLibrary1與uap10.0.15063(UAP,Version = v10.0.15063)不兼容。 Project .NET Standard VB ClassLibrary1支持:netstandard2.0(.NETStandard,Version = v2.0)UWP App1 C:\\ PRIMARY \\ WORK \\ 3 WindowsApp3 \\ UWP App1 \\ UWP App1.csproj 1
但是應用程序Target framework下拉列表僅允許.NET Framework xxx
.NET Standard類庫Target Framework下拉列表僅允許.NET Standard xx
所以我不能使框架匹配。
(這是Windows 10 Pro上的Visual Studio 2017 Pro。)
所有錯誤...
這是2個應用程序項目和類lib項目的屬性...
您需要將UWP項目的最低版本設置為16299(或更高)。 內部版本16299是第一個支持NET Standard 2.0的版本。 錯誤消息指出,UWP的早期版本不兼容。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.