Nuget/.NET Core, how to hide dependencies in package [duplicate]
I have the following (simplified) setup using .NET Core 3.1 (same situation in .NET Framework)Project A (a low level Tools library) references the NLog package. The Tools package provides our custom...
View ArticlePackage Microsoft.EntityFrameworkCore.Sqlite 5.0.0-rc.1.20451.13 is not...
I want to update my packages but I got some errors like this:How can I solve this problem?The error is:Error NU1202 Package Microsoft.EntityFrameworkCore.Sqlite5.0.0-rc.1.20451.13 is not compatible...
View ArticleNuget.exe - IS there any way to download nuget package (.nupkg) directly from...
I have created nuget package (.nupkg) and hosted that package directly on one of http servershttp://someserver/location/sub-location/nuget/MyPackage.1.0.0.nupkgSo if i just copy paste this URL in...
View ArticleCopy file from NuGet package to OutDir in a project not working on Azure DevOps
I have an issue on Azure DevOps only!It works fine in Visual Studio 2019, when I right click and Build.It also works fine if I use dotnet build from a CMD, locally.Nuget package looks like...
View ArticleThe EntityFramework package is not installed on project
I am having trouble getting the EF to install on my very simple project called 'Match' (just now learning MVC, better late than never). The general context here is that I created the Model class with...
View ArticleIncluding a Folder in NuGet Package and have it install into project as file...
I am using Visual Studio 2019 and creating NuGet packages successfully with this...
View ArticleVisual Studio - Nuget - Unable to load the service index for source
This is my NuGet.config : <?xml version="1.0" encoding="utf-8"?><configuration><packageSources><add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3"...
View ArticleNuget Build, when it PackageName.Targets and PackageName.props consumed?
Given, a package file called example:<?xml version="1.0"...
View ArticlePackage is not found in the following primary source
I have a build pipeline set up to create Nuget packages and publish them to a feed in artifacts.I was able to use the feed successfully.However when I ran the pipeline again, causing the packages to...
View ArticleDirectory.Build.targets : error MSB4236: The SDK...
I'm trying to build my project with CI but I'm getting the following error:Directory.Build.targets : error MSB4236: The SDK 'Microsoft.Build.CentralPackageVersions/2.0.46' specified could not be...
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 ArticleHow to get rid of "NU3012 Package xunit, author primary signature found a...
I have the following issue that I can't get rid of...NU3012 Package 'xunit*' from source "https://api.nuget.org/v3/index.json": The author primary signature found a chain building issue: Revoked: The...
View ArticleHow to package 2 third-party dll's
I'm reading through the nuget documentation and I don't completely understand how nuget works.I have 2 third party dll's that I have been asked to turn into a nuget package, so that our local...
View ArticleLoading Assemblies from NuGet Packages
Sometimes in my PowerShell scripts, I need access to a specific DLL, using Add-Type -AssemblyName. However, the DLLs I need aren't always on the machine or in the GAC. For instance, I might want a...
View ArticleHow can I obtain the .dll's from a NuGet package?
I need the .dll's for Microsoft.SqlServer.Management.Sdk.Sfc version 15. How can I obtain them?It seems that this is distributed as a "NuGet package". Fair enough, but the computer (B) I need it for...
View ArticleDifferent behavior for packages.config and PackageReference
I develop a C# class library (.NET Framework 4.7.2) that uses the NuGet package Microsoft.Office.Interop.Outlook. After installing the package with the NuGet Package Manager, the produced assembly has...
View ArticleNuGet Package doesn't copy files to packagerefence projects
I have followed all the new "contentFiles" institutions, and Nuget package was created and contentFiles/any/any folders there :[![enter image description here][1]][1]Yet when I install the package on...
View ArticleHow to debug code in NuGet package created by me
I have a NuGet package I created and installed in another solution but now I need to debug the code of the package when called from my new solution.I tried referencing the solution of the package but...
View ArticleAn error occurred while trying to restore packages. Please try again
I am trying to restore the missing nuget packages and it keeps giving me this Error:An error occurred while trying to restore packages. Please try again.Any experience solving this?How can I find out...
View ArticleNuGet returns 'Package integrity checks' on freshly downloaded packages
I've never worked with VS and .NET before and I don't have much programming experience overall either (am a QA by trade, only gotten into test automation recently, which might explain the format of...
View Article