Limit nuget packages to target version of solution
I have VS solution with approx 50 projects. The application runs in PROD environment and it targets framework NET 8.0. I regularly check for nugets updates to keep my app up-to-date and without...
View ArticleNuGet install-package error (unable to find version that is compatible)
I'm trying to install Xamarin.Forms package, however, the console throws this errorInstall-Package : Unable to find a version of 'Xamarin.Android.Support.Design' that is compatible with...
View ArticleCould not load file or assembly ‘Microsoft.IdentityModel.Abstractions,...
I am developing a C# dll based on .NET framework 4.8.2 which will use Microsoft Graph API to send email through outlook.For this I have added the latest Nuget packages for “Microsoft.Graph” v5.67.0 and...
View ArticleNuget how can i specify packages location?
i have simple folder structure:project1|_ nuget.config|_ packages.configproject2|_ nuget.config|_ packages.configpackages|_ FluentNHibernate.1.2.0.712|_ FluentValidation.3.2.0.0i need to restore...
View ArticleWhat is the EnsureNuGetPackageBuildImports target?
In some of my csproj files I have this but some dont:<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"><PropertyGroup><ErrorText>This project references...
View ArticleHow to find NuGet packages referenced in code but not in project
I have a C# .NET 6 project where I need to find all NuGet packages that are referenced by the C# source but are not directly referenced in the project file. This can happen when the package is a...
View ArticleVisual Studio insists downloading source files from GIT Repo for local...
SetupWe have internal NuGet packages consumed in other solutions, that we would like to package and debug locally in those other solutions, before we push both the code changes to Git and NuGet package...
View ArticleUpdate default nuget packages
I understand how to update a package within a solution but my question is how do you update the default packages. IE: When I create a new solution it's at the latest version already instead of having...
View ArticleCan't install nuget package in VS 2022
When I am going to install a nuget package in Visual Studio Pro 2022 (17.5.4), it shows the following error:Error NU1102Unable to find package Microsoft.NETCore.Platforms with version (>=...
View ArticleWhile installing VS template from a private nuget source, it is giving error...
C:\Users\pradeep.tyagi>dotnet new install GM.MicroService.Template::1.1.2482The following template packages will be installed:GM.MicroService.Template::1.1.2482Warning:...
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 Articleoverwrite nuget packages in feed on visual studio team services
while usingnuget.exe push \\share\Packages\*.nupkg -Source "https://myvsts.pkgs.visualstudio.com/_packaging/tcpcm/nuget/v3/index.json" -ApiKey VSTSi got an Response status code does not indicate...
View ArticleReSharper "Remove Unused References" feature does not remove references added...
How do I get ReSharper’s "Remove Unused References" feature to work on references added through NuGet packages?Hi Everyone. I am using Visual Studio 2015 to work on a multi-project solution in C#. I...
View ArticlePrevent duplicating files in NuGet content and contentFiles folders
My NuGet package needs to deliver some rather large files to build output directory.In an old NuGet model, such files have to be stored in content folder of the .nupkg. While in a new model introduced...
View ArticleError about a file not being there even when its there under the bin folder
I have an ASP.Net website (not ASP.Net application) with the target framework set to .Net Framework 4.8. I recently updated the packages using Nuget. Now, when I Start without Debugging in VS 2022 then...
View ArticleVisual Studio: NU1008 Central Package Management problem
All of a sudden my solution which is 3 or 4 years old...is throwing errors. I was never using this feature. My solution has 10 projects in it, and I had made no code changes, visual studio updates, no...
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 ArticleUnable to find NuGet packages from local repo associated to virtual repo in...
I'm unable to find NuGet packages originally deployed to a local repository in JFrog Artifactory from a virtual repository. The local repo is bound/associated to the virtual repo.For the local repo, a...
View ArticleC# and VB: How to enable specific version dependency for a project auto...
Recently, I've worked on upgrading all of the projects in our main application to SDK style projects. This was done in order to enable the feature to auto generate a NuGet package for each project on...
View ArticleCannot use installed Blazor QuickGrid nuget package
I'm using Visual Studio 2022. My Blazor WebAssembly project uses .NET Core 7. I've installed the Microsoft.AspNetCore.Component.QuickGrid nuget package from the Package Manager and it appears in my...
View ArticleCopying DLLs from transitive nuget dependency that uses non-standard folder...
So I have a package that I'm generating in C#. This package depends on another nuget package (that I don't own), and is meant for C++, so the folder layout is alien.I'm currently handling this by...
View ArticleHow to target both `.net8.0-windows` and `.net8.0` in Azure DevOps Pipeline...
We have a Visual Studio solution which has multiple class library projects. Historically these class libraries were built only to net8.0. Some of the library projects have windows-specific features,...
View Article.NET 4.6 to 4.8 update - package and updated file location under references
I am trying to update a legacy ASP.NET 4.6 app to .NET 4.8. The app contains 2 class library projects as well.I'm now using VS2022 for the updating instead of VS2017/2019 that I was using before.For...
View ArticleVisual Studio: 3rd party SDK not being found when trying to load it via...
I have a 3rd party SDK which was installed via VSIX / NuGet package.Let's call it FoodFight/CoolKids for Windows.I'm working on a VSIX that does a wizard implementation of this SDK as part of its...
View ArticleNative DLL not found in output directory when using NuGet package in Visual...
I have created a NuGet package containing a .NET Core library for Tesseract OCR, which I then added to my C# project via the NuGet Package Manager in Visual Studio.After building the solution, a NuGet...
View ArticleMicrosoft.Direct3D.D3D12 and "MakeAppx.exe pack"
Hello!Would someone help me, please?I develop an DirectX12 application. When I create a MSIX package with the nuget Microsoft.Direct3D.D3D12, MakeAppx.exe pack exists with an error...
View ArticleHow to auto-publish my GitHub branch on NuGet?
I have a GitHub repo that I'd like to automatically compile and publish to NuGet when a commit is pushed. How do I do it?
View ArticleDownload all packages from private NuGet feed
I want to download all packages in all version from my private nuget feed.Thats it. I have no problem in using powershell, bash, package manager what ever.I can't use a placeholder project - that...
View ArticleForce Nuget package to use specific version of sub dependency?
When installing the two Nuget packages Hl7.Fhir.DSTU2 and Hl7.Fhir.R4, we get something like this:The package DSTU2 seems to have issues using Hl7.Fhir.Support.Poco version 3.4.0.If we install DSTU2 on...
View ArticleAdding package reference System.Linq.AsyncEnumerable cause CS0518/CS0656...
When I added the following package reference to my project:<ItemGroup><PackageReference Include="System.Linq.AsyncEnumerable" Version="10.0.0" /></ItemGroup>I got the following...
View Article