从 csproj 引用 xproj
referencing xproj from csproj
我在 visual studio 中添加了从 csproj
到 xproj
的引用。
我在参考资料中看到了库,dll 的路径是正确的。 Intelisens 工作但编译不工作并出现错误:
the type could not be found.
如何运行这个?
您不能直接从 csproj 引用 xproj 项目,只能反过来。
您可以使用 dotnet pack
(或 dnu pack
,如果您使用 rc1
)从 xproj 创建一个 nuget 包,然后在 csproj 中安装该 nuget。
我在 visual studio 中添加了从 csproj
到 xproj
的引用。
我在参考资料中看到了库,dll 的路径是正确的。 Intelisens 工作但编译不工作并出现错误:
the type could not be found.
如何运行这个?
您不能直接从 csproj 引用 xproj 项目,只能反过来。
您可以使用 dotnet pack
(或 dnu pack
,如果您使用 rc1
)从 xproj 创建一个 nuget 包,然后在 csproj 中安装该 nuget。