Reference .NET 4.5 dll in .NET Core 1.1 csproj?

前端 未结 2 1855
陌清茗
陌清茗 2020-12-31 05:50

I\'m running VS 2017 RC4.

I add a reference in my .NET Core app to my .NET 4.5 dll and it compiles. When a line that references the dll is called at runtime, I get:<

2条回答
  •  旧巷少年郎
    2020-12-31 06:37

    I had the same problem, but with .NET Standard 2.0 and a .NET Framework 4.0 assembly. The solution was create a nuget with my dll in nuget package explorer targeting .NET Standard 2.0, then add the package to the project.

    Link to nuget explorer: https://github.com/NuGetPackageExplorer/NuGetPackageExplorer

提交回复
热议问题