Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
91 views
in Technique[技术] by (71.8m points)

c# - Missing Nested Project Dependencies in project.assets.json file

We are seeing some unexpected differences in project.assets.json files that mean references are not included when looking at the MSBuild logs

For example below, as such none of the dependent projects are being brought through as a reference in MSBuild CoreCompile task to projects that have an explicit project reference to MyCompany.Identifier but not MyCompany.Log. This then given the standard are you missing an assembly reference error..

Our build server is running this okay, but it is affecting at least 2 of our team, I'm the only one able to run it locally. Build server and colleague has dotnet 5.0.102, I have 5.0.200-preview.20614.14

Any and all suggestions welcome

MSBuild CoreCompile in a project that references MyCompany.Log through the nested dependencies. I see this, but colleagues do not

/reference:C:dev
epoMyCompany.LoginDebugMyCompany.Log.dll

My PC

"MyCompany.Identifier/1.0.0": {
        "type": "project",
        "dependencies": {
          "MyCompany.W.Core": "1.0.0",
          "MyCompany.X.Interface": "1.0.0",
          "MyCompany.Y.Utils": "1.0.0",
          "MyCompany.Z.Core": "1.0.0",
          "MyCompany.Log": "1.0.0"
        },        
        "compile": {
          "bin/placeholder/MyCompany.Identifier.dll": {}
        },
        "runtime": {
          "bin/placeholder/MyCompany.Identifier.dll": {}
        }
      },
      "MyCompany.Log/1.0.0": {
        "type": "project",
        "dependencies": {
          "MyCompany.OtherDependency": "1.0.0"
        },
        "compile": {
          "bin/placeholder/MyCompany.Log.dll": {}
        },
        "runtime": {
          "bin/placeholder/MyCompany.Log.dll": {}
        }
      },

Colleague's PC

      "MyCompany.Identifier/1.0.0": {
        "type": "project",
        "compile": {
          "bin/placeholder/MyCompany.Identifier.dll": {}
        },
        "runtime": {
          "bin/placeholder/MyCompany.Identifier.dll": {}
        }
      },
question from:https://stackoverflow.com/questions/66057173/missing-nested-project-dependencies-in-project-assets-json-file

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...