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

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


How to mark a NuGet package as deprecated in a local repository?

I´ve seen that there is a way to mark packages as deprecated on nuget.org.Unfortunally I don't push my packages to nuget.org but to an internal file repository.Is there a way to mark a local package as...

View Article


'ServiceCollection' exists in both nuget packages

I do have multiple projects in one solutions. Some of them are in .net core 2.1, 3.1 and 5.0. My main project is in .net core 5.0 and it have multiple projects as dependency (.net core 2.1,3.1). The...

View Article

Image may be NSFW.
Clik here to view.

The located assembly's manifest definition does not match the assembly...

I created a nuget package library called FeatureLibrary.I added this nuget package in a another project. At run time getting below error."Description": "Unhandled exception in BaseApiController....

View Article

Build error during publishing in MS Visual Studio Professional 2019

I'm getting build error as mentioned below while publishing web project to root directory. Anybody facing same issue?Publish has encountered an error.Build failed. Check the Output window for more...

View Article


Create Nuget package for C++/C Visual Studio Solution projects

I have several legacy components written in C/C++ and would like to wrap them into the Nuget package and use this package from C# code.What is the best way to actually wrap C++ code in nuget package? I...

View Article

NuGet install-package error (unable to find version that is compatible)

I'm trying to install Xamarin.Forms package, however, the console throws this errorInstall-Package : Unable to find a version of 'Xamarin.Android.Support.Design' that is compatible with...

View Article

Could not load file or assembly ‘Microsoft.IdentityModel.Abstractions,...

I am developing a C# dll based on .NET framework 4.8.2 which will use Microsoft Graph API to send email through outlook.For this I have added the latest Nuget packages for “Microsoft.Graph” v5.67.0 and...

View Article

Image may be NSFW.
Clik here to view.

Nuget how can i specify packages location?

i have simple folder structure:project1|_ nuget.config|_ packages.configproject2|_ nuget.config|_ packages.configpackages|_ FluentNHibernate.1.2.0.712|_ FluentValidation.3.2.0.0i need to restore...

View Article



What is the EnsureNuGetPackageBuildImports target?

In some of my csproj files I have this but some dont:<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"><PropertyGroup><ErrorText>This project references...

View Article


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