从引用的csproj xproj [英] referencing xproj from csproj

查看:404
本文介绍了从引用的csproj xproj的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在visual studio中添加了 csproj xproj 的引用。

I've added reference from csproj to xproj in visual studio.

我看到库中的引用和dll的路径是正确的。 Intelisens工作但编译不工作与错误:

I see library in references and path to dll is correct. Intelisens work but compile not work with error:

the type could not be found. 

如何投入使用?

推荐答案

您不能从csproj直接引用xproj项目,只有相反的方法。

You can't directly reference xproj project from csproj, only the other way around.

你可以做的是从xproj用 dotnet pack (或 dnu pack ,如果你使用 rc1 ),然后在csproj中安装nuget。

What you can do is create a nuget package from xproj with dotnet pack (or dnu pack, if you're using rc1) and then install that nuget in csproj.

这篇关于从引用的csproj xproj的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆