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 ArticleC# 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 ArticleHow 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 ArticleMy 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 ArticleUnable 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 Articleusing 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 ArticleHow 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 ArticleHow 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 ArticleMake 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 ArticlePackage 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 ArticleHow 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 ArticleCreate 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 ArticleCannot 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 ArticleCould 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 ArticleHow 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 ArticleNuget package readme.txt is not being updated
I followed the steps to create and publish a nuget package including a readme.txt....
View ArticleGetting 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 ArticleMultiple 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 ArticleUnable 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 Articlenuget 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 ArticleNuGet 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 ArticleSpecify 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 ArticleHow 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 ArticleCan 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 ArticleNuGet: 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 ArticleManage 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 ArticleMax 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 ArticleHow 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 ArticleCan'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 ArticleAutomatic 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