Home Packaging project reference in nuget : .net core
Reply: 1

Packaging project reference in nuget : .net core

Signcodeindie
1#
Signcodeindie Published in 2017-12-07 16:49:00Z

Currently I have a requirement where we have separate assemblies for contract and implementation. After creating a nuget package and attempting to consume nuget package, it fails because Package manager is unable to find dependent (contract) assembly.

This seems to be an open issue in .net core.

https://github.com/dotnet/cli/issues/3959

Unable to understand why such simple thing will not work in .net core. Looking for workaround for this issue.

Signcodeindie
2#
Signcodeindie Reply to 2017-12-08 11:02:30Z

After reading documentation I understood .net core discourages project reference instead advises to use package reference. This is mentioned in description heading in following doc.

https://github.com/dotnet/docs/blob/master/docs/core/tools/dotnet-pack.md

I published my contract assembly to nuget package and consumed it in implementation as nuget package.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.304587 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO