Questions tagged [nuget-package-manager-console]

17 questions
6
votes
1 answer

Nuget Package Manager: "...is not a valid JSON object"

I setup a Nexus repo recently. I see the expected result if I type the URL into a browser: I've successfully added this nuget server as a source to my VS2022 package manager on one machine. On my other machine, however (also with VS2022 installed),…
3
votes
2 answers

NuGet PowerShell Core Console in Visual Studio 2022 for Mac 17.3

Can someone tell me if we can access the Package manager console in VS 2022 for MAC 17.3 Thanks
3
votes
0 answers

Accessing Nuget Package Manager console in github actions

I have a fairly messy website project in C# It has the layout of Foo-EUR Foo-EUR-Web Where Foo-EUR has a csproj file and Foo-EUR-Web does not. It's just a website. To get this to build locally I need to go to the Package Manager console for nuget…
Stuart
  • 3,949
  • 7
  • 29
  • 58
2
votes
0 answers

Can't open package manager console in visual studio 2019

I am learning asp .net from this udemy course udemy_course_link. Whenever I open package manager console in visual studio 2019, Following error comes : The error message is: Unable to cast COM object of type 'System.__ComObject' to interface type…
1
vote
1 answer

how to use pm> Update-Database command?

i am trying to run the command Update-Database in package manager console. the following errors appears. this is the connection string I tried using "ConnectionStrings": { "sqlserver":…
Marco Maher
  • 351
  • 1
  • 9
1
vote
2 answers

Entity Framework 6 .net Framework Migrations / Package Management Console - How Do You Run These In An Azure Pipeline?

I am setting up an Azure Release Pipeline and I need to execute any pending DB Migrations as part of the release. I have been scouring the internet for over an hour and everything I can find is about dotnet Core, while the database is EF6 on .Net…
1
vote
2 answers

Facing NuGet issue "'5.0.0+42a8779499c1d1ed2488c2e6b9e2ee6ff6107766' is not a valid version string." while installing packages

I have created a framework for testing web applications in C#(Console application) All the packages are managed by Nuget package manager. When I try to install/uninstall packages via nuget, I'm facing exception(pasted at the…
0
votes
0 answers

Nuget Package Manager cannot Find ConnectionString

TLDR: ConnectionStrings for options.useSQLServer.GetConnectionString is returning null. Changing names does not work. Hardcoding the connection string did work, so it seems to be a config issue. I've been running into an issue and have tried several…
0
votes
0 answers

Package source mapping does not work since 17.5.0

I have recently had the problem that all my projects have difficulties with the Nuget packages. Since they seem to be equipped with additional security since version 17.5, I have to reconfigure them. Unfortunately, this does not work. As an example…
0
votes
0 answers

Can not open Nuget Package Manager in VS

I suddenly can't open nuget package manager in Visual Studio. I undid all the changes to the package.config, so my package.config is correct. I tried looking for hidden files that might be causing it, but there are no weird hidden files. The .sln…
0
votes
0 answers

add-migration command not working in Nuget Package Manager Console

I'm trying to learn .Net Core and I am currently stuck with this error. When I open the NuGet Package Manager Console, the first error appears saying "Failure has occured while loading a type." Then when I type my code add-migration…
0
votes
0 answers

ASP.NET MVC 5 - HttpClient 0.3.0 not found in Nuget Package Manager

I'm trying to update my app's .NET framework version to 4.8 and executed the Update-Package command but it gets error pointed to HttpClient package I couldn't find this package when trying to search it on Nuget Package…
aj go
  • 637
  • 2
  • 10
  • 27
0
votes
0 answers

Going about creating a bat file to auto create a new .NET Core Web API project

I'm trying to fully automate our API/microservice business model by writing up a bat script that: First: Create a new .NET core web API using input as the name and input as location and input as version. (Also selecting or unselecting "Configure…
Aquaphor
  • 129
  • 10
0
votes
1 answer

Keep local copy of Nuget Package in VS Code

In Visual Studio Code, i would like to keep a local copy of a referenced Nuget package in the project folder for the case the package will not be available online for some reason in the future. nuget restore shall still be able to download it from…
0
votes
1 answer

Visual Studio For Mac cannot run Powershell with Nuget Package Management extension

I was trying to use add-migration command within package management console in Visual Studio for Mac, version 8.4.8 (VS Mac). However, Package Management(PM) Console does not come with VS Mac. Cant find package manager console in visual studio for…
1
2