Unable to find package NETStandard.Library
I tried to add a new Class library(.Net Standard) in Visual studio 2019. But I get this error message:Unable to find package NETStandard.Library. No packages exist withthis id in source(s): Microsoft...
View ArticleAre two instances of `Microsoft.EntityFrameworkCore.Designer` required to use...
I am building an ASP.NET Core 7 application in Visual Studio 2022. When installing Microsoft.EntityFrameworkCore.Tools package, a copy of the Microsoft.EntityFrameworkCore.Design is installed as well...
View ArticleHow can i set the specific minimum version for Project References in a Nuget...
I have two solutions:Solution AProject "A.Application" (0.0.1-alpha3)Project "A.Domain" (0.0.1-alpha2)Project "A.Infrastructure" (0.0.1-alpha2)A.Application references A.Domain and A.Infrastructure as...
View ArticleHow can I reference a nuget package that contains a dependency on static code...
On a library I'm working on, which is deployed as a nuget package, I want to include Microsoft.VisualStudio.Threading so I can use AsyncEventHandlers.However, the package depends on...
View ArticleCreate .nuspec file for UWP class library
I created a class library project for UWP apps. I want to create a nuget package.I created .nupkg file with a .nuspec file which is file section down below.After i add the package from Nuget Package...
View ArticleCould not load file or assembly 'Azure.Core, Version=1.0.2.0,...
Describe the bugWe are implementing some changes in our Web load test and performance testing project (in Visual Studio) to enable webtests to fetch passwords from an encrypted SQL DB by using master...
View ArticleNuGet packages version resolution
Can I use two different versions of a NuGet package (let's take ProtoBuf for example), in my class library project and in my Visual Studio main project that references it?I mean, what happens when the...
View ArticleCould not find file 'bin\Antlr3.Runtime.pdb' Error when creating deployment...
I'm getting the following error when tried to create deployment package."Copying file bin\Antlr3.Runtime.pdb to obj\Release\AspnetCompileMerge\Source\bin\Antlr3.Runtime.pdb failed. Could not find file...
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 ArticleDoing a local NuGet package installation but getting the error - Unable to...
I'm trying to do an offline NuGet package installation by following the answer by Samuel Jack here:Text1. Add the files to a folder called LocalPackages next to solution2. Create a file called...
View ArticleNuget package version mismatch on self created package
I'm trying to figure out why i get the wrong version number when using the --version flag.I've found other answers for setting versions, and they worked somewhat, as seen here:Then installing the nuget...
View ArticleCreating a NuGet package out of two projects, ends up with missing references
I have a MailService package that uses Azure queues. I have put the queue related logic in a separate project. I'm using this in my pipeline to create a package that has both projects: - task:...
View ArticleHow can I make my managed NuGet package support C++/CLI projects?
I have made a NuGet package that works well when I use it from a C# project. It contains a DLL in the lib/net40 directory, and the DLL gets added as a reference.Now that NuGet supports C++, how do I...
View ArticleWhy don't nuget packages install to the packages subfolder
I have a solution with many projects that use many packages. Generally, packages have installed to the "packages" subfolder under the solution. But now I've noticed that a recently installed package...
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 and C++ PDB
I am creating my own C++ nuget package for a static library that i compile (with /Zi). I added the .pdb of the library to the nuget package, alongside the .lib, but i can't include it while building...
View ArticleHow do I see if a symbol package has been published for a given Nuget package?
I want to use a debugger to step through the code of an open-source, public Nuget package that my project references. My understanding is that if the package publishes a symbol package I should be able...
View ArticleCPack to create Nuget package
CPack: Create packageCPack Verbose: Package files to: /home/testsystem//build/_CPack_Packages/Linux/NuGet/MyModule.Linux.x86_64.nupkgAttempting to build package from 'CPack.NuGet.nuspec'.Cannot create...
View ArticleFlaky "dotnet restore" fails randomly in Azure Pipeline
We use Azure pipelines to build a .NET6 project. Recently, we switched build agents (and organisation) for our pipelines. We've seemingly adjusted for this, but our pipelines fail about 20-70% (seems...
View ArticleHow to perform action on custom nuget install/uninstall?
I have built a nuget which installs .editorconfig file in project on build and it works fine with the following in the props file:<ItemGroup><EditorConfigFilesToCopy...
View Article