Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow

Max unique snapshot option not working on Nuget snapshot version

I have a scenario where we are using nuget snapshot repo in jfrog and we are using snapshot versions for the develop branch builds.The requirement is that for develop branch build the version will not...

View Article


Prevent duplicating files in NuGet content and contentFiles folders

My NuGet package needs to deliver some rather large files to build output directory.In an old NuGet model, such files have to be stored in content folder of the .nupkg. While in a new model introduced...

View Article


Image may be NSFW.
Clik here to view.

Dependent SignalR scripts not being created with package VS2022 package install

I am supporting an MVC5-based web project in Visual Studio 2022. I am attempting to add SingalR support, following the instructions at...

View Article

Ability to install a nuget package which has a dependent package which...

I'm trying to create a NuGet package that I can reference in a WiX v5 project (.wixproj). Below is my current .nuspec file:<package...

View Article

Nuget Package Source is not prompting for credentials

I've added a NuGet Source. It needs credentials but when I'm installing a package using install-package packageName nothing happens. I tried the same steps on other PC and it works. I'm using Visual...

View Article


Unable to load MailKit.dll file in PowerShell

I have installed the MimeKit and the MailKit in my PC using:Install-Package -Name 'MimeKit' -Source "https://www.nuget.org/api/v2" -SkipDependenciesInstall-Package -Name 'MailKit' -Source...

View Article

Using MimeKit for reading e-mails

I try to read e-mails via the code described here:http://www.agile-coding.net/mailkit-mit-powershell-nutzen-um-emails-abzufragen-via-imap/That means within the first step I would like to add/import the...

View Article

Unable to update Nuget package...

I'm updating the nuget package microsoft.identity.serviceessentials.aspnetcore 1.26.0 tover 1.28.1. however I get the below error message in Package Manager Console.Unable to find package...

View Article


Create NuGet Package with GitHub Actions

I have a solution for an ASP.NET Core API project that contains the main API project as well as two other library projects.I now want to create NuGet packages for the library projects so that I can use...

View Article


Limit nuget packages to target version of solution

I have VS solution with approx 50 projects. The application runs in PROD environment and it targets framework NET 8.0. I regularly check for nugets updates to keep my app up-to-date and without...

View Article

Image may be NSFW.
Clik here to view.

After changing .Net Framework version, this project references NuGet...

My project was stored on TFS, and working fine.Recently, we changed from TFS to Github. So, I zipped up my project (without the bin and obj folders) and sent that to our IT guy so he could create the...

View Article

How to debug code in NuGet package created by me

I have a NuGet package I created and installed in another solution but now I need to debug the code of the package when called from my new solution.I tried referencing the solution of the package but...

View Article

OpenXml Dependency Loading issue

Loading all these package dependencies with repetitive try/ catch blocks:$libPath = ".\packages\DocumentFormat.OpenXml.3.3.0\lib\netstandard2.0"$libFPath =...

View Article


Nuget.exe command CLI does not recognized

I would like to add feed to push my nuget package to Azure Devops as artifacts. I have followed all the steps that have been mentioned in the Microsoft docs to push my nuget package to Azure Devops. I...

View Article

Nuget not finding packages in our UNC Path based Nuget feed unless in root...

Our build machine is adding our own nuget packages to a UNC based nuget feed (i.e. \\myserver\packages) using the nuget add command... e.g.nuget add OurPackage.1.2.3.nupkg -source...

View Article


VS2019 is dropping my references when I save the script?

So I'm following this tutorial here in an attempt to get data from a REST API:https://www.c-sharpcorner.com/article/how-to-consume-web-api-through-ssis-package/And I've followed all the steps, had to...

View Article

Image may be NSFW.
Clik here to view.

Dotnet pack package structure

I have a github workflow that builds a nuget package using the OctopusDeploy/create-nuget-package-action@v3 action. I need to refactor this to use the dotnet pack command, but I am getting a different...

View Article


Unable to load the service index for source...

I'm facing an issue while trying to restore NuGet packages in Visual Studio. The error message is as follows:Unable to load the service index for source https://api.nuget.org/v3/index.json.An error...

View Article

Image may be NSFW.
Clik here to view.

Could not load file or assembly Microsoft.Data.SqlClient, Version=5.0.0.0

Facing following issue after deploying app to azure app service:Unhandled exception. System.IO.FileNotFoundException: Could not loadfile or assembly 'Microsoft.Data.SqlClient,...

View Article

How to auto-publish my GitHub branch on NuGet?

I have a GitHub repo that I'd like to automatically compile and publish to NuGet when a commit is pushed. How do I do it?

View Article

Microsoft.Direct3D.D3D12 and "MakeAppx.exe pack"

Hello!Would someone help me, please?I develop an DirectX12 application. When I create a MSIX package with the nuget Microsoft.Direct3D.D3D12, MakeAppx.exe pack exists with an error...

View Article


CS0433 The type 'type' exists in 'ProjectA' and 'ProjectB'

I have a solution made with .NET Framework 4.7 (c#) in which we have 2 projects that contain the same partial class within the same namespace, those projects are packaged on a nupkg.From now on we will...

View Article


Visual Studio 2022 not adding transitive dependency after migrating from...

I'm running into this issue after upgrading to VS2022 from VS2019. As part of the upgrade I migrated from NuGet package.config to PackageReferenceI have VS 2022 17.7.5, .NET Framework 4.8 Project A...

View Article

What is "Microsoft.NETCore.App.Host.win-x64" used for?

What is the NuGet package "Microsoft.NETCore.App.Host.win-x64" used for? I see that one of my projects downloads it from the feed, but I don't know why.The package's description at nuget.org...

View Article

How to match app.config version numbers to packages.config

I've had this several times now with different packages (Latest was System.ValueTuple) installed using the nuget package manager in Visual Studio.After doing some upgrading of various packages I find...

View Article


Azure Function Nuget Cache restore failing with "The user name or password is...

I have an Azure Function I deploy as a part of an ARM template. This Azure Function references a few external .NET DLLs. I have added the reference to these DLLs in the project.json...

View Article

How to find the version of a NuGet package that supports a specified .NET...

Lets assume my project based on .NET Framework 4.0 and requires the NuGet package GuardClauses.Currently GuardClauses' latest version is 5.0.0, which supports .NET Framework 4.6.1 and higher. So...

View Article

Image may be NSFW.
Clik here to view.

NuGet package targets - how to copy files to subfolder of target dir on build?

I'm trying to add two text files to my nuget package so that when the user of the package builds the project, one file is copied to the root of the build directory, but another file is copied to a...

View Article

Missing NuGet Packages, But "Packages Already Installed"

I have seen this same problem brought up by numerous people online, and have tried just about everything under the sun to resolve this issue but nothing is working. I copied my visual studio solution...

View Article



Unable to find fallback package folder "NuGet & VS2019" Error

How to resolve this issue? VS2019Just created a new .Net Core 3.1 Windows Application and built the ProjectI was not able to follow this answer here! it is not clearSeverity Code Description Project...

View Article


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>