referencing xproj from csproj

2019-07-06 22:48发布

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条回答
贪生不怕死
2楼-- · 2019-07-06 23:09

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.

查看更多
登录 后发表回答