简体   繁体   中英

Referenced project not carrying through referenced assemblies

This has been asked a few times but the various other answers relate to Client Profile which isn't the issue in this instance.

I have a solution file which has the following structure:

  • Solution
    • Project 1
      • Nuget Reference to ServiceStack
    • Project 2
      • Project Reference to Project 1

The problem is the nuget package references ServiceStack.Common which it happily brings through into Project 1 but when Project 2 is built, the reference is not carried through (I'm assuming that it's because it's not used anywhere).

Looking around at other people who have had this before, they tend to just reference ServiceStack.Common in Project 2 as that resolves it but surely there's a better way?

如果您想携带ServiceStack.Common甚至不引用它,则可以将其复制到Project2项目属性->生成事件中“发布”或“生成事件前”命令行选项下的所需路径。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM