referencing xproj from csproj

2019-07-06 22:54发布

问题:

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

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. 

How do I put into operation this?

回答1:

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

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.