Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Browsing all 3170 articles
Browse latest View live

Using Nuget packages on an offline machine

I have a class where we are using off network laptops for security reasons. We are using VS community 2022 and are also using SQL to write to a local database.I have created a project as an example and...

View Article


How to manage front end nuget packages .net Framework ASP.NET Web Application...

I am working on a large ASP.NET web application running on .NET Framework 4.8.Nuget package management is done using with the packages.config format. There are 150+ nuget package references defined in...

View Article


My ASP project can't access classes from a NuGet package I created

So I'm experimenting with creating NuGet packages and this one has a tag helper and an extension method for the IApplicationBuilder, I packed the package and put it in a local folder, added the folder...

View Article

C# when deploid as nuget package a simple calculation gives wrong results

The following functionpublic int GetNumber(){ int num = (condition1 ? 3 : (condition2 ? 1 : 2)); int num2 = (condition3 ? 6 : (condition4 ? 3 : 0)); return num + num2;}returns the correct result when...

View Article

How to automatically use static libs refered by other static libs from a...

I must build several NuGet native (C/C++) packages that depend on other NuGet packages, then use them in a way they would provide all the needed libraries to be linked in the final application.For...

View Article


Microsoft.Jet.OLEDB.4.0 Provider not registered on local machine

Error:System.InvalidOperationException: 'The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine.'I encountered an error while trying to read an Excel file in my ASP.NET web...

View Article

{SOLVED} My ASP project can't access classes from a NuGet package I created

Solution:As mentioned by @Zhi Lv I had to clear the cache.Instead of clearing the cache of all packages I choose to go manually to C:\Users\<username>\.nuget\packages\ and delete the folder...

View Article

My ASP project can't access classes from a NuGet package I created

Solution:As mentioned by @Zhi Lv I had to clear the cache.Instead of clearing the cache of all packages I choose to go manually to C:\Users\<username>\.nuget\packages\ and delete the folder...

View Article


Image may be NSFW.
Clik here to view.

Unable to Use `Microsoft.EntityFrameworkCore.Migrations.Design` in C# Project

I have already added the related NuGet packages, as far as I know, to the following C# console project. However, I cannot use the corresponding namespace.using...

View Article


using relative path on .nuget packages folder in .csproj file

How to use relative path on .nuget packages folder in .csproj file. I've .txt content files and it is copied to my bin directory if I make a build only if I set the property to copy always. By doing...

View Article

How to automatically update NuGet packages to latest available version

I have two repositories, and I need compiled libraries from one repository in the other. I don't want to manually check repo1 for updated libraries, and copy/commit to repo2, because that is stupid....

View Article

Image may be NSFW.
Clik here to view.

How does the "Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" package...

I have a class library project which has the following extension method -public static async Task DoSomethingAsync(this WebApplication app){ //}I was curious how a class library project is resolving...

View Article

Make a NuGet package that depends on another, but do not include it inside

I want to make a NuGet package A that depends on NuGet package B.Projects that will use package A will always have package B as a direct dependency.Hence, I believe that package B does not need to be...

View Article


Package is not found in the following primary source

I have a build pipeline set up to create Nuget packages and publish them to a feed in artifacts.I was able to use the feed successfully.However when I ran the pipeline again, causing the packages to...

View Article

How can I clear the NuGet package cache using the command line?

I can clear my development computer's NuGet package cache using Visual Studio menu Tools→ Options→ NuGet Package Manager→ General: Clear Package Cache button.I would like to do this on the command...

View Article


Create a Nuget package with just a resources file using dotnet pack

A couple years ago, I set up my build to create separate packages for a main library a number of language resource files.Project structure:- proj - localization - lib.nuspec - lib.de.nuspec -...

View Article

Cannot install Plugin.Firebase.CloudMessaging in .NET MAUI project (Path Too...

I'm trying to integrate Firebase Cloud Messaging (FCM) into my .NET MAUI app, but I keep running into an issue when installing the Plugin.Firebase.CloudMessaging package via NuGet.Issue:When attempting...

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 create nuget package for MAUI class library?

What should we pack in nuget package for a MAUI class library such that no private, internal or implementation detail is embeded in nuget package i.e. the user should not be able to navigate to the...

View Article

Nuget package readme.txt is not being updated

I followed the steps to create and publish a nuget package including a readme.txt....

View Article
Browsing all 3170 articles
Browse latest View live


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