.Net PackageReference, explicitly define version of dependent package
In one of my projects I use AutoFixture.AutoMoq package which depends on Moq package <!-- project1.csproj --> <PackageReference Include="AutoFixture.AutoMoq">...
View ArticleContent Files in a Nuget package that refers another Nuget package
Context I'm currently making multiple nuget packages that depend on each other. Each nuget package contains their own list of content files which should be copied to the output directory of the project...
View ArticleNuGet Client SDK - Connecting to a private NuGet feed through code
I'm using a private NuGet feed through Azure DevOps. To see information about a public NuGet package from code, one simply has to follow the documentation here. In particular: ILogger logger =...
View ArticleNuget command line to on premise devops connection closed by remote host
We have a feed in an on premise devops 2019 instance, running on windows server 2016, which we publish our own nuget packages to. I'm publishing to the devops feed using nuget.exe version 5.5.0.6473...
View ArticleScreenshotting a website that requires a login with Freezer c#
I'm trying to screenshot a website that requires a login using the .NET library freezer: https://github.com/haga-rak/Freezer/wikiUsing below code, I'm able to get a screenshot of any URL I enter public...
View ArticleHow do I remove a nuget package from multiple solutions/projects?
We have a few hundred Visual Studio solutions of varying ages and we have an internally written NuGet package that many of them consume. We want to eliminate this NuGet package and remove it from these...
View ArticleHow to use Persons object in stripe.net NuGet Package 15.3.2 version
currently our account requests API version is 2018-02-06 and we are upgrading to 2020-03-02so As part of Accounts API Argument ChangesNow few fields are managed with Persons objectlatest NuGet packages...
View ArticleHow make NuGet package run commands/logic on install even on linux/mac/windows?
It appears that the old way of running commands (init.ps1) on install is deprecated? https://github.com/NuGet/Home/issues/4318And that is powershell, which won't work on linux. Our .Net projects can be...
View ArticleAspose.Cells NuGet 18.3 Worksheet object seems to to have different API for...
Until now we used the Aspose.Cells dll (.Net c#) version 17.1, now me changed to Aspose.Cells Nuget package 18.3 and converted to .net core and It seems that the Worksheet class doesn't support many...
View ArticleLong path issue occurred while try to install nuget package in Visual Studio...
I have worked on dot net core projects. while trying to install NuGet packages in my project with the help of manage NuGet packages option, I have faced below mentioned error.The specified path, file...
View ArticleHow to disable "transitive package management" for a Visual Studio project
How do I disable "transitive package management"?I wish to do so, so that I can install a package that I "packed" locally and have in a .nupkg file. When I attempt to do so, I get a messaging stating...
View ArticleAbout Nuget Package Manager for VS 2013
I would like to know1. Where the Nuget Package manager installed in c driveWhen try to check the NuGet installed version using PowerShell scriptI am getting old version instead of installed version in...
View ArticleHow to use company-arguments while updating stripe connect account
We are upgrading account requests API version to 2020-03-02 from 2018-02-06So as part of Accounts API Argument Changes we are changing the parametersSo while creating or updating company connect...
View ArticleNuget Spec AspNet vs AspNetCore
I am creating a library that I want to have different behaviour based on the type of project that is dependent on it.Here are the 3 types of projects I want to separate:AspNet (.NET...
View ArticleCannot install firebase for iOS
I am working on a xamarin forms project on android studio. I am having problems installing Firebase messaging for iOS. When I try to install the package, I receive the following error:Error Could not...
View ArticleUnable to Stepinto Nuget library with Symbols loaded
I have my Nuget library uploaded into Azure Devops Artifacts. It also has the Symbols file (.PDB) published to the Azure Devops symbols server. I have added settings in my Visual studio to load symbols...
View ArticleConfigure multiple source in Nuget.config in Linux (RHEL7)
I am trying to configure multiple Nuget source in nuget.config. Nuget.config is added to the root of the project. With same config I can successfully dotnet build my app on my macbook but when I run...
View ArticleMVC bootstrap navbar not working after running NuGet updates
An MVC app broke after we updated all the NuGet packages. After trying everything I created a new MVC app, updated the NuGet packages and the basic navbar...<div class="navbar navbar-inverse...
View ArticleDotnet restore GitHub Packages in Dockerfile
How can I restore nuget packages hosted in GitHub packages within a Dockerfile?When I create a NuGet.config file, I need to set a token there (only a readonly token) to access GitHub Packages, even on...
View ArticleIncluding an unmanaged native library files to nuget output directory
unamanged shared object (.so file) does not copy to the output directory:I have .netstandard 2 project that wraps a c++ library(lets call the project wrap.csproj).That project depends on shared object...
View Article