Reputation: 413
I have an Identity Server 3 Project where I need to install a couple of custom Nuget Packages, that comes from a private Nuget Package repository in my company. This Nuget is installed and running in many other web projects so it is most likely not the problem.
When I install the package on Identity Server Project, logs say everything was fine and the package was successfully installed. It is listed on Project References. But when I try to access it anywhere on Identity Server Project, it just isn't accessible. I can't set up an using reference, neither call any methods by using it's full namespace (InstalledNuget.Services.Example). Visual Studio's intellisense returns "The type or namespace name does not exist in namespace 'company' (are you missing an assembly reference?)".
While investigating the issue, I found out that it is listed on Project References, but not on Object Browser.
I tried:
I have been to several posts here and other websites but did not find a problem matches this one. Any hints?
Upvotes: 3
Views: 5254
Reputation: 1488
I had the same problem. Tried to reinstall package, clean solution, rebuild solution, delete obj and bin folders. What solved it in the end was restarting Visual Studio...
Upvotes: 0
Reputation: 1
For anyone with the same issue. For me it was accidentally using internal (visibility only within assembly) instead of public (visibility between assemblies) on my class in my nuget (classLibrary)
Upvotes: 0
Reputation: 413
The error was some visual bug on Visual Studio. I accidentally clicked on run, and it run successfully, with errors still on the screen. It ignored then completely.
Then I manually removed "bin" and "obj" folders and everything returned to normal.
Upvotes: 3