我们已经开始研究在WebAssembly中运行的新发布的OpenSilver(开源SilverLight)(作为满足我们跨平台需求的可能解决方案。
OpenSilver使用.Net Standard 2.0构建。我们有使用.NetCore库构建的现有代码。
根据我所读的内容,.NetCore似乎位于/使用.Net Standard(BCL库)之上。https://docs.microsoft.com/en-us/archive/msdn-magazine/2017/september/net-standard-demystifying-net-core-and-net-standard
如何将现有的.NetCore库包含/使用到新的Visual Studio应用程序/项目中?这甚至可能(不拆分为客户端/服务器方法)?
谢谢
当您拥有这些.NetCore库的源代码时,应该可以对它们进行多目标定位。
打开FooLib.csproj文件并找到TargetFramework标签。使它看起来像这样:
<PropertyGroup>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>