【发布时间】:2016-06-24 07:28:24
【问题描述】:
我在 Visual Studio 中添加了从 csproj 到 xproj 的引用。
我在引用中看到库,并且 dll 的路径是正确的。 Intelisens 工作但编译不工作并出现错误:
the type could not be found.
我该如何投入使用呢?
【问题讨论】:
标签: c# visual-studio asp.net-core .net-core
我在 Visual Studio 中添加了从 csproj 到 xproj 的引用。
我在引用中看到库,并且 dll 的路径是正确的。 Intelisens 工作但编译不工作并出现错误:
the type could not be found.
我该如何投入使用呢?
【问题讨论】:
标签: c# visual-studio asp.net-core .net-core
您不能直接从 csproj 引用 xproj 项目,只能反过来。
您可以使用dotnet pack(或dnu pack,如果您使用rc1)从xproj 创建一个nuget 包,然后在csproj 中安装该nuget。
【讨论】: