NuGet packages not copied from referenced project

后端 未结 3 1673
情话喂你
情话喂你 2021-01-01 23:39

I have a very strange error I have no explanation for.

So my setup is very simple:

I have a solution with 2 projects, let\'s name them ProjectA and

3条回答
  •  时光取名叫无心
    2021-01-02 00:24

    If the dependency graph is more complex than what you described you might have some versioning issues.

    1. Set the compiler output to diagnostics to see what’s happening: VS->Options->Projects and Solutions->Build and Run->MSBuild project build output vervosity:->Diagnostic enter image description here
    2. Compile the solution. If you find some issue similar to:

      There was a conflict between "X, Version=2, Culture=neutral, PublicKeyToken=null" and "X, Version=1, Culture=neutral, PublicKeyToken=null".

      "X, Version=2, Culture=neutral, PublicKeyToken=null" was chosen because it was primary and "X, Version=1, Culture=neutral, PublicKeyToken=null" was not.

    3. Try fixing that issue using the same dependency version everywhere and compile again.

提交回复
热议问题