C# 从csproj引用xproj
我在VisualStudio中添加了从C# 从csproj引用xproj,c#,visual-studio,asp.net-core,.net-core,C#,Visual Studio,Asp.net Core,.net Core,我在VisualStudio中添加了从csproj到xproj的引用 我在参考资料中看到库,dll的路径是正确的。Intelisens可以工作,但编译时不能工作,但有错误: the type could not be found. 如何将其付诸实施?您不能直接从csproj中引用xproj项目,相反的方式 您可以使用dotnet-pack(或者dnu-pack,如果您使用的是rc1),从xproj创建一个nuget包,然后在csproj中安装该nuget。可能重复的
csproj
到xproj
的引用
我在参考资料中看到库,dll的路径是正确的。Intelisens可以工作,但编译时不能工作,但有错误:
the type could not be found.
如何将其付诸实施?您不能直接从csproj中引用xproj项目,相反的方式 您可以使用
dotnet-pack
(或者dnu-pack
,如果您使用的是rc1
),从xproj创建一个nuget包,然后在csproj中安装该nuget。可能重复的