© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
1 reply
Byron

❔ Project adds "*.Reference" dependencies and libraries

When building my NET 6 sample project, the
deps.json
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"
"SampleProject.Client.Reference"
to the
target
target
and the
library
library
property of
deps.json
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
*.Reference
targets?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Class Libraries Project Reference
C#CC# / help
2y ago
❔ Project reference
C#CC# / help
3y ago
✅ Avoiding sub project reference
C#CC# / help
2y ago
✅ Adding A Project Reference
C#CC# / help
3y ago