【问题标题】:referencing xproj from csproj从 csproj 引用 xproj
【发布时间】:2016-06-24 07:28:24
【问题描述】:

我在 Visual Studio 中添加了从 csprojxproj 的引用。

我在引用中看到库,并且 dll 的路径是正确的。 Intelisens 工作但编译不工作并出现错误:

the type could not be found. 

我该如何投入使用呢?

【问题讨论】:

标签: c# visual-studio asp.net-core .net-core


【解决方案1】:

您不能直接从 csproj 引用 xproj 项目,只能反过来。

您可以使用dotnet pack(或dnu pack,如果您使用rc1)从xproj 创建一个nuget 包,然后在csproj 中安装该nuget。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-04-07
    • 1970-01-01
    • 1970-01-01
    • 2021-07-31
    • 2017-08-07
    • 2015-01-17
    相关资源
    最近更新 更多