Quantcast
Browsing all 3079 articles
Browse latest View live

Nuget package does not contain dll, only a build folder

I have a large project that needs to use several Nuget packages, but Nuget packages cannot be used on our corporate network. So I have extracted the dlls from all of the packages and linked directly to...

View Article


When should I update NuGet packages for a project?

I understand that NuGet packages update process is not automatic for a good reason (a new version could break your code or cause unforeseen problems), but then it transfers the responsibility of...

View Article


Image may be NSFW.
Clik here to view.

How to hide a local DLL reference in Analyzer Dependencies and only have just...

I have created 2 custom analyzer using template "Analyzer with Code Fix (.NET Standard)" in VS 2019. Each analyzer has different project, and package project as well. Also I have Common project with...

View Article

Create nuget package from a REST Web API Application

I have a REST API web service in ASP.NET CORE 2.0 several projects (layers) in it. However, by larger forces, it can not be used as a service.It was then suggested to create a nuget package for this...

View Article

How to use google lib-phonenumbers in dynamics c# plugin

For validating and formatting phone numbers with a plugin, I'd like to use google's libphonenumber-csharp package. When I download this in the NuGet Package Manager, I first get the error that the...

View Article


how to get all nuget dependencies for offline installation

I two computers, one with internet connection and the other one without.I want to install a Nuget package (Nuget.server) with all its dependencies on the offline computer.Unfortunately it is not...

View Article

How to interpret/handle this dotnet list package --vulnerable result

I have scanned for vulnerable NuGet packages using dotnet list package --vulnerable --include-transitive. I get the following:Project `MyProject` has the following vulnerable packages [net6.0]:...

View Article

Image may be NSFW.
Clik here to view.

Nuget Package Manager: "...is not a valid JSON object"

I setup a Nexus repo recently. I see the expected result if I type the URL into a browser:I've successfully added this nuget server as a source to my VS2022 package manager on one machine. On my other...

View Article


Build NuGet Package automatically including referenced dependencies

I want to run a local/internal NuGet repository. I think I've figured out how to "reuse" existing NuGet packages by including them in a dummy project using NuGet and scanning the package file to grab...

View Article


Creating NuGet package: NU5128 exception - not clear on how to fix

I have a DLL addressing the .NET 4.7.1 library. Probably irrelevant, but it's written in C# and consumes NuGet packages using the "packages.config" pattern, rather than the newer PackageReference...

View Article

dotnet build process always outputting createdump.exe in bin path

Is there a way to run dotnet pack (or any build) without producing createdump.exe in the bin / output folder?dotnet pack -c Release /p:NuspecFile=.\mynugetpackage.nuspecI've also tried splitting into...

View Article

MSBuild -t:pack ProjectReference

I have a C# solution that contains two net472 projects: Foo.csproj, and Bar.csproj.The projects are in classic format (no SDK version).The projects use PackageRefernce as package management.Foo.csproj...

View Article

How to build your own Intellisense XML file

For reasons I'd rather not debate, I wanted to create an Intellisense XML file from the XML output of Doxygen for a NuGet package. After studying all I could find about the format of the file, I...

View Article


console app installed with dotnet tool install --global doesn't pick up...

I have a console app that uses libvips.net as a dependency, the library has some native dependencies that are organized with a subfolder like so:libjpeg-62.dlllibcgig-0.dll...vips-modules-8.12 (a sub...

View Article

Crossplatform nuget for Android and Windows application

I have a set of three dll files. All files are build with .netstandard2.0First file is common for Android and Windows, can run on both.Second and third file consists of the same class, but is platform...

View Article


Conflicts with Nuget Package References

I have observed a strange behaviour of NuGet packages where the same version of NuGet packages (under different projects of a solution) refers different versions of dependent dlls.Please see the images...

View Article

Multiple target framework project: different versions of the same NuGet...

I've put together a .Net 5 for Windows application, using among other things EntityFramework 5.0.13.Now we're trying to run it on a specific server, that doesn't have the .Net 5 framework yet. The nice...

View Article


Git submodules vs Nuget packages

Our team has experimented with git submodules for some core CRUD functionality shared by most of our products. We have also successfully used Nuget packages (self-hosted now) for some common...

View Article

Nuget Packages show Yellow Triangle When Reinstalling or Installing New

I am experiencing an issue that I have never seen before. I opened an old application (I believe it was created with VS 2015) in Visual Studio 2019, and all Nuget packages show yellow triangles. I...

View Article

Enable Migrations does not work in Package Manager Console

I installed EF in my soluton:PM> Install-Package EntityFramework -IncludePrereleaseAfter that, I am trying to execute enable migration command, but it does not work:PM> enable-migrationsError:No...

View Article
Browsing all 3079 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>