Category "nuget"

Unrecoverable build error - 0x8007000B in Setup Project

I have some .Net6 WinForm application that supposed to run PowerShell script via System.Management.Automation package Version="7.2.2". This app works fine. For

What is the easiest way to test multiple versions of a NuGet?

I have two C# projects. Project A is a NuGet package. Project B is a web service. Project A calls the web service. We want B (the web serice) to remain backward

Visual Studio: Centralized Output Folder - No 3rd Party Libraries Copied

I have a C# solution containing many projects (DLL and EXE projects) and decided to centralize the Output folder so that Visual Studio builds all projects to on

How to interpret/handle this dotnet list package --vulnerable result

I have scanned for vulnerable NuGet packages using dotnet list package --vulnerable --include-transitive. I get the following: Project `MyProject` has the follo

Migrate Azure Devops Artifacts between organizations

I am trying to migrate (clone) an Azure Devops project to another project / organization. I successfully cloned the repos migrated the work items using Azure De

Visual studio 2019 Google test nuget package restore failing

I have this error when I try to open some students' assignments in Visual Studio 2019, stating that nuget can't restore a package. I'm concerned about the direc

Flutter windows build: Nuget is not installed

I uninstalled Visual Studio 2019 and installed it as 2022. I reinstalled Flutter. When building Flutter desktop, the following problem is repeated. If I run it

How to install/Store NuGet Packages inside the Visual Studio Project's folder?

I have already read similar questions but the provided answers do not resolve my issue. I need to put all the required NuGet packages by a project inside its ow

SQLite-net-pcl Comparing Dates

As stated in the question I am attempting to do a date comparison for tasks that are done within a specific date range. My model has a boolean called "Done" and

NuGet pack Could not load file or assembly 'System.Memory, Version=4.0.1.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'

I am trying to build a NuGet package from a Framework 4.8 .csproj file for a library. The project compiles fine. I have some unit tests that run fine. I run

How to see what symbols are hosted on a Symbol Server?

I would like to inspect what symbols are available on a symbol server. I expect that a symbol server hosts more or less a collection of .pdb files for various a

Automate Artifactory NuGet download during build in Visual Studio

I have been working with Artifactory NuGet packages in Visual Studio 2019 recently, and have a workflow which looks sort of like this: Add private Artifactory r

Regex to recognise valid NuGet package filenames

Some NuGet packages have filenames that look valid but are not. Perhaps the versioning does not comply with semver or the name of the package confuses NuGet's p

How to manage nuget packages globally for all projects in a solution using Visual Studio 2022?

I have a solution created in .NET 6.0 using Visual Studio 2022 which has many projects. Each project has so many nuget package references in the .csproj file as

Visual Studio CLI cant install specific NuGet package version

I am in Visual Studio 2019, and when I open the package manager console, I can run: nuget install MartinTestPkgXYZ which will succeed and install the latest ver

Error CS0246: The type or namespace name 'NPOI' could not be found (are you missing a using directive or an assembly reference?)

I'm setting up a DevOps pipeline and during the build, I keep running into the error: ScreeningController.cs(19,7): Error CS0246: The type or namespace name 'NP

Visual Studio 2019 create NuGet package that includes NetStandard and updates web.config

Recently, I created a NuGet package in Visual Studio 2019 by following the steps here to create the package using the "Pack" command. The problem is when I tri

Private Artifactory Package not showing up in Visual Studio

in the past hour I used Visual Studio to package a NuGet .nupkg file, and then used the following commands to push my .nupkg file to a private artifactory repo:

Could not load file or assembly 'System.Buffers, Version=4.0.2.0...'

I'm getting the following exception when trying to call GetDatabase method of the MongoClient class after adding a new configuration using VS config. manager: C

NuGet Unable to load the service index for source Authentication failed

Since today for some reason I'm unable to connect to the NuGet package manager through Visual Studio. [nuget.org] Unable to load the service index for source ht