Byron
Byron
CC#
Created by Byron on 8/9/2023 in #help
❔ Project adds "*.Reference" dependencies and libraries
When building my NET 6 sample project, the deps.json file has the following target properties:
"targets": {
".NETCoreApp,Version=v6.0": {
"SampleProject/1.0.0": {
"dependencies": {
"SampleProject.Client": "1.0.0",
"Newtonsoft.Json": "13.0.3",
"SampleProject.Client.Reference": "1.0.0.0",
"System.Reactive.Reference": "4.3.0.0"
},
"runtime": {
"SampleProject.dll": {}
}
},
}
}
"targets": {
".NETCoreApp,Version=v6.0": {
"SampleProject/1.0.0": {
"dependencies": {
"SampleProject.Client": "1.0.0",
"Newtonsoft.Json": "13.0.3",
"SampleProject.Client.Reference": "1.0.0.0",
"System.Reactive.Reference": "4.3.0.0"
},
"runtime": {
"SampleProject.dll": {}
}
},
}
}
I do reference a client project within my solution. However with net core 3.1 I don't see it adding "SampleProject.Client.Reference" to the target and the library property of deps.json Why is it adding it in NET 6 (or it is not a framework issue?) and how do I exclude adding these *.Reference targets?
2 replies