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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…