Can NuGet add a .cs file to the destination project?
I want to create a NuGet package that adds a .cs file (a base class the package consumer is encouraged to later modify) to the root of the destination project during installation.Is that possible?...
View ArticleNuget publish to only certain repository
I am new to Nuget and have seen the commandnuget push YourPackage.nupkg -Source https://api.nuget.org/v3/index.jsonCan we forcefully add some environment variable and make sure Nuget always pushes to...
View ArticleCan't resolve the reference 'System.Void System.Security.Cryptography.DSACng
I am working on the iOS App in Xamarin in Visual Studio 2019.My App is working perfectly on Simulator but when I am trying to Build Solution to deploy or debug on iPhone (registered under developer...
View ArticleCould not load file or assembly 'WinFormAnimation, Version=1.3.0.0,...
After I downloaded a package called CircularProgressBar via NuGet Packet Manager, I am getting the error has been attached to the post although winFormAnimation.dll is in my references. The program...
View ArticleAzure devops private nuget takes a long time to find package
We are using Azure DevOps pipelines. We have a step that publishes the our private nuget package to the Azure Artifacts. However, the build breaks at other steps because the nuget package (that was...
View ArticleDeploy demo and retail version of a .NET library via NuGet
I need to deploy a commercial .NET library via NuGet (most likely, it will be a local source used mainly in Microsoft Visual Studio). First my potential customer installs the NuGet package with the...
View ArticleRecommended approach to managing packages in ASP.NET Core websites
This is probably a very basic question, but I haven't had any luck finding the answer online. I am learning ASP.NET Core and I am wondering what the recommended approach is to manage third party...
View ArticleHow to include referenced project assembly into NuGet package, when using...
ContextI am building my package using Visual Studio (2022). My solution has two projects, the project to be packaged (MyComponent) is referencing to an other project (Core).All package configuration...
View ArticleGet .nuspec file for existing nuget package
Is there a way to get the original .nuspec manifest file for an exiting nuget package?Let's say I have downloaded a nuget package from the nuget gallery and I am curious how the original .nuspec file...
View ArticleNuGet is returning 503 Server Unavailable
Is there a way to load a package from an alternative server when Visual Studio Package Manager (NuGet) is responding with a "The remote server returned an error: (503) Server Unavailable" message?
View ArticleHow to undo nuget package installation in TFS without undoing project added...
I have installed a nuget package to my project that is in TFS but now i want to undo this operation but undoing the operation will undo the edition in the project file but if i do this then other files...
View Articlehow to create nuspec file in specific folder?
I tried to create .nuspec file in a different folder by giving path but it is giving me error Nuget.exe spec ..\MYDEMOFOLDERNuget.exe pack ..\MYDEMOFOLDER\MYPROJECT.csprojpausewant to create...
View ArticleCannot add or update NuGet packages, receiving NuGet V2 feed error
I have recently moved to VS 2019 and now I can not install or update packages through NuGet. I receive the following error - An error occurred while retrieving package metadata for 'jQuery.3.4.1' from...
View Articledot net nuget package version override
I created a class library. The default version was 1.0.0, and then I updated the class and again created the package using this (dotnet pack -p:PackageVersion=1.0.1 -o \packages) command. I realized...
View ArticleIs there package manager console in Rider?
I would like to know updated information about aviability package manager console in Rider. I didn't find any information about this on the Internet but I hope there is a way to enable it. Someone can...
View ArticlePublishing WPF application fails du to unauthorized .NuGet service index...
I want to publish one of my WPF applications (to a folder).The app needs some NuGet packages that I published via Azure Devops. I signed in with Visual Studio with exactly the same account I use also...
View ArticleAvoid a package reference being represented as a dependency
I have been developing some simplistic packages and in my mind there is something I cannot understand completely. It is all related to the question whether or not I can 'wrap' somehow a package...
View ArticleInclude my Nuget README in my Nuget Package
I maintain a few tiny Nuget Packages.I have a Nuget README file in the git repository, and the .nupkg file is auto-built by VS, based on the "Package" config, stored in the .csproj file.Whenever I need...
View ArticleHow to avoid triggering build if there is a local NuGet package in project...
I am new to Azure DevOps, we use Azure DevOps pipelines in our projects. When we have a pull request for a branch that is using a local NuGet package from another project, the build will fail until we...
View ArticleGithub Package: Key not valid for use in specified state
I am unable to use the package published by another user.Process:Added the new package name and source by updating the nuget.configAdded the package source username and password(APIKey)Tried added the...
View Article