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

Find a directory using wildcard in Inno Setup

I'm trying to get all the files in a directory recursively while using wildcard within the name of the directory in Inno Setup script.I have came across examples for filename but none for a directory...

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

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

Getting a 401 error when attempting to build a Visual Studio Solution

For the past couple of days, I've been trying to run a company-made solution in Visual Studio. Normally, you build and everything works. In this case, I am getting a:Retrying 'FindPackageByIdAsync' for...

View Article


Multiple target framework project: different versions of the same NuGet...

I've put together a .Net 5 for Windows application, using among other things EntityFramework 5.0.13.Now we're trying to run it on a specific server, that doesn't have the .Net 5 framework yet. The nice...

View Article

Unable to Create a Nuget package and Getting NU5012: Unable to find

I am unable to create a nuget package using below azure devops yml pipelineVariablesbuildPlatform: 'x86'buildConfiguration: 'Debug'- task: NuGetCommand@2 displayName: 'NuGet Pack' inputs: command:...

View Article

Image may be NSFW.
Clik here to view.

nuget package manager now want to install transitive package by default?

I want to update a few nuget package and I notice that it now want to install the transitive package by default, show a simple example aboveThis is new to me, is there a way to return to the old way of...

View Article

NuGet Package Not working in Visual Studio 2015

After updating Visual studio 2015, I am getting the following error when visual studio starts.Nuget Operation failedNuGet.Config is not a valid XML. Path'.' hexadecimal value 0x00, is an invalid...

View Article


Specify latest package version in create-release-action

I have a github action that creates a release for Octopus deploy using the "OctopusDeploy/create-release-action@v3" action. - name: Create Octopus Release uses: OctopusDeploy/create-release-action@v3...

View Article


How to solve NuGet.targets(124,5): error : Value cannot be > null. (Parameter...

On building the project I am getting this error.Error NETSDK1004 Assets file'J:\Test\core\fx-core\obj\project.assets.json' not found. Run a NuGetpackage restore to generate this file. FxCore...

View Article

Can you now force nuget to update versions of transitive packages with...

There's a lot of older posts about the way that NuGet defaults to the lowest compatible version for transitive packages, and thus creates vulnerabilities in your code. It looks like until recently, the...

View Article

NuGet: remote server returned an Error(403) Forbidden

Whenever i attempt to install a package i get this errorremote server returned an Error(403) ForbiddenI can use other commands, such as get-package -ListAvailable, and discover whether there are any...

View Article


Image may be NSFW.
Clik here to view.

Manage Nuget Package in VS 2015 grey out

I want to use Nuget to download a package VS 2015 for Node.js project, however, it is grey out as shown below:How to resolve it?

View Article

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

Image may be NSFW.
Clik here to view.

How do I determine .NET Framework needed for a particular NuGet package?

Using Nuget Package Manager in Visual Studio 2019 I attempted to install Microsoft.Toolkit.Uwp.UI.Controls and was met with this message/error:Could not install package...

View Article

Image may be NSFW.
Clik here to view.

Can't add a package source to Nuget package manager

When I try adding it, the add button is disabled. Does anyone know how to resolve this? I didn't have any problems with the Nuget package manager a couple of days ago.Don't mind this text, I just...

View Article



Image may be NSFW.
Clik here to view.

Automatic native and managed DLLs extracting from NuGet Package

This is driving me crazy for several months now and I'm still not able to achieve it. My managed libraries are extracted from the NuGet package but not the natives ones.We have a bunch of managed and...

View Article


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