Package source mapping does not work since 17.5.0
I have recently had the problem that all my projects have difficulties with the Nuget packages. Since they seem to be equipped with additional security since version 17.5, I have to reconfigure them....
View ArticleGet the latest version from a NuGet package in csproj file with...
I have a custom NuGet package with a .ruleset file that I want to install and use in my project.To reference this in the .csproj file I have following...
View ArticleError NU1605: Package downgrade when updating Azure.Identity in SDK-style...
I’ve migrated some legacy .NET Framework projects to SDK-style projects and switched to using Central Package Management. When I try to update the Azure.Identity package to version 1.12.0, I get the...
View ArticleSet NuGet package versions of runtime components, to prevent vulnerable...
In order to prevent vulnerable, transitive dependencies, I added guard versions to the Directory.Packages.props file, used for Central Package Management (CPM) in Visual Studio 2022. Transitive pinning...
View ArticleFileNotFoundException: Could not load file or assembly "System.Runtime...
I have been working on a .NET 8 project in Visual Studio for months. Everything was working well until one day out of nowhere, without changing anything in the code/OS/VS the project started throwing...
View ArticleUnable to update Nuget package...
I'm updating the nuget package microsoft.identity.serviceessentials.aspnetcore 1.26.0 tover 1.28.1. however I get the below error message in Package Manager Console.Unable to find package...
View ArticleCould not load file or assembly 'System.Web.Http, Version=5.0.0.0
After installing Microsoft.Aspnet.Webapi.Webhost package to my web api project, I end up with the following exception:Could not load file or assembly 'System.Web.Http, Version=5.0.0.0, Culture=neutral,...
View ArticlePublish legacy symbol nuget packages
I have an empty legacy SDK C# class library project (with new Class1 class and single empty method inside him) and I want to publish it with symbols. I did this in the past for SDK project, but it...
View ArticleMicrosoft.EntityFrameworkCore.Migrations;
I've such a problem.I added migration but this error occurred:Repository:API:using Hospital.Core.Entities; using Microsoft.EntityFrameworkCore;namespace Hospital.Repositories.Data { public class...
View ArticleCreating a NuGet package containing a .NET class library to copy sass files...
I am attempting to create a NuGet package to copy sass files to a consumer project. I am able to see the files inside the consumer project (like in the image below) But they are locked and the file...
View Article"This solution contains packages with vulnerabilities" - How do I determine...
Visual Studio shows me the following warning when I open the solution explorer:When I click the 'Manage NuGet Packages' link and scroll through the nuget packages, I can't see any indication of exactly...
View ArticleMulti-Framework Targeting for NuGet Packages
Background - My Build ScriptingI would like to use the dotnet CLI to create a nuget package that can target the following frameworks: net462, net48, net8.0. My library has no dependencies (i.e. it...
View ArticleIs it possible to use Source link in private on-prem Gitlab instance?
I'm trying to create and push a simple .net library and want to be able to debug it using source link but from the docs is not clear if the source link works only for public repos (like github and...
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 Article"Could not find part of path to System.Runtime.CompilerServices.Unsafe.dll"...
I'm attempting to install some nuget packages into my project and keep getting an error that looks like this:Could not find a part of the path 'C:\<path to my...
View ArticleOwn Nuget Server - The V2 feed at '' returned an unexpected status code '404...
I created my own Nuget Server following the documentation and I got it, but I cannot access the packages from Visual Studio 2019 Community Nuget Package Manager.So, when I do it through a browser I get...
View ArticleModuleInitializeException on Azure Deployment: Missing Dependencies for...
I'm using<PackageReference Include="Microsoft.Identity.Web.Certificate" Version="1.25.3" />in my project. The application runs successfully on my local machine. However, when deployed to any...
View ArticleAddress Standardization and Parsing in .Net Core [closed]
I'm working for a certain project that cleaning and parsing full address in to make it USA standard. I found this library but the problem is not compatible in .net...
View ArticleModuleInitializeException on Azure Deployment: Missing Dependencies for...
I'm using PackageReference Include="Microsoft.Identity.Web.Certificate" Version="1.25.3" in my project. The application runs successfully on my local machine. However, when deployed to any environment...
View ArticleObfuscate a nuget package with Obfuscar
I have a class library project that needs to become a nuget package. I managed to obfuscate the dll, but how do I obfuscate the package I need to publish?I have used "$(Obfuscar)" obfuscar.xml in thge...
View Article