小编Jam*_*lop的帖子

为什么在根据.NET Standard编译.NET Framework项目时缺少此NuGet依赖项?

我有3个项目的Visual Studio解决方案。

顶层是.NET Framework 4.6.1控制台应用程序(项目A)。它取决于.NET Framework 4.6.1类库(项目B)。项目B依赖于.NET Standard 2.0类库(项目C)。

I have some code in Project C that uses System.Data.SqlClient (NuGet package version 4.6.1).

Due to the following known issue https://github.com/dotnet/sdk/issues/901 I have also added System.Data.SqlClient as a NuGet dependency to Project B (the .NET Framework Class Library).

This is Scenario 1, and when the solution is built, System.Data.SqlClient is copied to the /bin/Debug folder of Project A and the the application runs successfully.

The code for Scenario 1 is here …

.net c# dll dll-reference .net-standard

6
推荐指数
1
解决办法
751
查看次数

标签 统计

.net ×1

.net-standard ×1

c# ×1

dll ×1

dll-reference ×1