dotnet pack project references

前端 未结 1 1547
小蘑菇
小蘑菇 2021-02-19 00:01

I quite like separating functionality across a few assemblies, for example a facade to a data provider, contracts for the data provider and the data provider implementation itse

1条回答
  •  隐瞒了意图╮
    2021-02-19 00:31

    A possible way to achieve the needed is to use a custom .nuspec file where you can specify the dlls you want to be packed

    
        App.nuspec
    
    

    Having this, dotnet pack will produce the package with respect to MyPackage.nuspec.

    Furthermore, if you have like 3 projects with contracts and implementation and you don't want to add 3 package references, you can create a meta-package that simply has those 3 as dependencies and reference that single meta-package.

    0 讨论(0)
提交回复
热议问题