Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Tuesday, March 14, 2017 5:53 PM
I created new Typescript Nodejs console project.
In package manager console window, I see that Default project is empty.
When I run Get-Package -ListAvailable, it gives error
Get-Package : Project 'Default' is not found.
At line:1 char:1
- Get-Package -ListAvailable
-
+ CategoryInfo : ObjectNotFound: (Default:String) [Get-Package], ItemNotFoundException
+ FullyQualifiedErrorId : NuGetProjectNotFound,NuGet.PackageManagement.PowerShellCmdlets.GetPackageCommand
I found many postings on this error but no resolution.
How can I resolve this error.
All replies (3)
Wednesday, March 15, 2017 5:59 AM
Hi Umit (Netman) Tiric,
Thanks for posting here.
This is designed by the nuget team. From the Announcing NuGet 3.1:
Solution packages are no longer supported, as these packages are not modifying any specific project’s capabilities and were typically used to deliver shared resources that were re-used across projects. With the new shared packages folder, these resources may already be on disk from another project.
The template of Typescript Nodejs console project is "Blank Node.js Console Application", so the Default project on Package Manager Console window is empty and you would got that error after using command “Get-Package -ListAvailable”. If you create a common project, you will not get this error.
To resolve this error, you can adopt the yishaigalatzer`s suggestion: Apply a package to a project and a simple way to achieve it is to create a project that will include what you used to apply to the solution level.
For more detail information, you can refer the same issue on GitHub.
MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected].
Monday, March 20, 2017 2:32 AM
Thank you. I start using VS Code and I am loving it.
Monday, March 20, 2017 3:25 AM
@Umit (Netman) Tiric, Thanks for you reply. If above answer that resolved your issue, you can click Mark as Answer to mark it which is benefit to other communities who has the same problem. Thanks, if not, you can let me know the latest message about this issue.
MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected].