Could not install package '--'. You are trying to install this package into a...
I created this package, I need it in a project but couldn't install it, this error appears:Could not install package 'Mshwf.NiceLinq 1.0.9'. You are trying to install this package into a project that...
View ArticleDevelopment issues across multiple nuget in microservices
Currently we have a microservices architecture with nuget package manager. When a developer fixes a code in one project and checks in, it increments a build for the project. The problem arises when...
View ArticleHave a NuGet package version which am unable to push to Azure Devops...
1)Feed is new2)4 versions of the same package name exists, unable to push the 5th version and so on. Tried the 999 version with no success as it was never pushed before.3)queried and checked the json...
View Article.Net Standard 2.0 class library nuget packge not showing for .Net5 project in...
I have a class .net standard 2.0 class library which I have added as a reference in .Net5 console application. I can add this class library as a reference as a project and dll both. Now I created a...
View ArticleIncorporating %USERNAME% Variable in PowerShell PS1 Script For Creating Nuget...
nuget pack C:\Users\%USERNAME%\Source\Repos\Common\Common\Common.nuspec -OutputDirectory D:\NugetFeedThe above code is what is in my nugetpack.ps1 file. It works perfectly when I directly enter my...
View ArticlePublishing a NuGet package to an organization feed from yaml pipeline
Having trouble publishing a NuGet package from a yaml pipeline, restore/build/pack all works ok it's just the pushing that is failing and it seems to be related to the Push generating a bad url for the...
View ArticleCan NUGET packages that deliver .cs source only, be consumed from "SDK-style"...
This Stackoverflow response talks about using the contentFiles option to deliver source via a Nuget package: https://stackoverflow.com/a/52885223/8679778But contentFiles I think don't work with...
View ArticleNuget not installing packages
GoalMy goal is to simply install a package via NuGet Package Manager.I decided to delete Visual Studio 2019 and re-install it. Hoping it'll solve my issue. Then, I created a new project - tried...
View Articlewhere does Nuget download packages when PackageReference is enabled
In visual studio 2017 i have enabled PackageReference so that package reference will be stored in csproj file instead of package.config fileI have added these 2 line in csproj file to enable...
View ArticleUnable to install Microsoft.AspNet.WebApi.Cors from NuGet Package manager
I'm using Visual studio 2019 and asp.net web api application. I've installed NuGet Package manager with version 5.11. When I'm trying to install webapi cors I'm getting the following error:Error...
View ArticleHow to ignore dependencies for .NET Core during NuGet packaging?
I have my own NuGet packages located on a disk (local Nuget). I'm trying to not add the same DLL multiple times and get in a scenario like the image attachedI have tried the following code during...
View ArticleNo accessible constructors were found for the type...
I have a C# code and build is successful in Visual Studio 2019. There are no build errors but getting an exception when i run my application like below:...
View ArticleNuget Package Source is not prompting for credentials
I've added a NuGet Source. It needs credentials but when I'm installing a package using install-package packageName nothing happens. I tried the same steps on other PC and it works. I'm using Visual...
View ArticleC# NuGet package error in Azure DevOps with image
I'm creating a NuGet package to distribute in my organization. Following a post online, the pipeline is working. In Azure DevOps I created the Artifacts, the pipeline buils the NuGet package and push...
View ArticleHow to Embedded and add a reference to a dll from .targets file?
I'm creating NuGet packages and embedding files via targets file as follow;<ItemGroup><ReferencePath Condition="'%(ReferencePath.NuGetPackageId)' == 'packageName' AND '%(Extension)' ==...
View Article'nuget' is not recognized but other nuget commands working
I am trying to create a nuget package using http://docs.nuget.org/docs/creating-packages/creating-and-publishing-a-package#From_a_convention_based_working_directoryas a reference.My Package Manger...
View ArticleCould not load file or assembly 'Microsoft.Extensions.Options,...
After adding some nuget packages, my asp.net core app has stopped working and started to generate this error once deployed to Amazon windows server [Works OK on my dev machine (as always :-)].Visual...
View ArticleExcluding classes from Nuget package
A project I'm working on is currently using 2 entities projects and it's written over .Net Standard 2.0 framework:Contract.csprojContract.Internal.csprojThe first is configured to be exposed for...
View ArticleAzure Dev Ops Publish Nuget Package add additional packages issue
I am new to dev ops pipelines and building nuget packages, however I have a C# repo in Azure Dev Ops,which has a pipeline which restores, builds, packs and then pushed the nuget package to the...
View ArticleDuplicate BondCodegen items were included
I have updated some Nuget Packages (through nuget package manager) for some projects in my .sln file based on dotnet framework 4.7.2But I am getting the following error:Duplicate BondCodegen items were...
View Article