Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version of a Project Reference defaults to 1.0.0.0 in deps.json file #1044

Open
dcm99 opened this issue Apr 11, 2024 · 0 comments
Open

Version of a Project Reference defaults to 1.0.0.0 in deps.json file #1044

dcm99 opened this issue Apr 11, 2024 · 0 comments

Comments

@dcm99
Copy link

dcm99 commented Apr 11, 2024

I have an application with a plugin architecture where I use the dependency context of the host application (deps.json) to determine which dependencies need to be loaded and which are already provided by the host application.
Now I have the problem that all project references that are versioned by Nerbank.GitVersioning have the default version 1.0.0.0 in the deps.json file, but the *.dll files are versioned correctly.
In this example, I have a test project with two dependencies. One library is versioned with NerdBank.GitVersioning, the other has the version set in the *.csproj file. In the deps.json file of the main application, only the library managed with NerdBank.GitVersioning defaults to V1.0.0.0.
I am probably better of calculating the dependency context of the host application at runtime, rather than rely on the static deps.json file.
But since this behaviour could also cause problems in other scenarios that depend on the deps.json file, I created this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant