Click here to Skip to main content
15,882,329 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have projects A (web application) and B (Class library).

Project B is added as a reference to project A. Now, Project B contains some NuGet packages.

On my machine, when I run project A it is working fine without any errors. But when the same project is loaded on a different machine, It gives the missing NuGet package dll error for the Nuget package from the class library.

My project is built with .NET framework 4.8 in Visual studio 2022.

What I have tried:

1. Delete bin/obj and package folder and rebuild the project A which has the reference of project b.
Updated 19-Oct-22 22:35pm
Richard MacCutchan 20-Oct-22 3:32am    
How did you install it on the different machine?
Ravi-from-India 20-Oct-22 4:34am    
I have installed Nuget packages using Nuget package manager only in project b and then I have added the reference of project b in project A.
Richard MacCutchan 20-Oct-22 4:41am    
That was not my question. I meant how you installed the completed application in the different machine.
Ravi-from-India 20-Oct-22 4:44am    
It's a web application and we are checking in the local machine only. Basically, I have committed my changes for project b and project an in my branch and other dev checked out it.

On my machine, I don't need to install the Nuget package separately on project A, but on the other dev's machine, when he runs the same code from my branch it is showing a missing dll reference.
Richard MacCutchan 20-Oct-22 4:47am    
That suggests that the other dev needs to add the Nuget packages, which are probably not part of the committed code. You should be able to check this yourself by inspecting the location that you commit to.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900