Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Browsing all 3067 articles
Browse latest View live
↧

Nuget package reference (WMPLib) not recognized in code

I try to add the WMPLib nuget package as a package reference to my project, but in the code the classes are not recognized.Here I read that "the issue is due to the new NuGet format reference...

View Article


Image may be NSFW.
Clik here to view.

How to use models from Nuget Package when adding API controller using code...

When adding an API Controller with actions using Entity Framework you select which Model the controller is based on and its DbContext in the following screen:My models are in a nuget package that I...

View Article


How to get rid of Nuget package's Entity Framework error

I have an ASP.NET MVC 5 project. It works fine, but every time I add a view (which successfully gets created) and then when I build solution I get errorThis project references NuGet package(s) that are...

View Article

how to override a dependent assembly

I have a class library ( .net framework 4.7.2) that has a nuget package Microsoft.Azure.DataLake.Store which has a dependent assembly of Newtonsoft.Json (>= 6.0.8)I want to use Newtonsoft.Json...

View Article

Build failed on Xamarin project cloned from Github

I'm super new to Xamarin in general and learning it by following tutorials and articles.I cloned a project (internal project) and tried to build it and run it but it keeps failing. I have spent over 8...

View Article


NuGet package manager disabled in vs code

I want to instal log4net package for my c# console application but NuGet package manager is greyed out when i right click on solution explore .how can i install log4net?

View Article

C# Configuration Driven Object to Object Mapping Library

While developing API to API integrations I've been making these as configuration driven as possible to allow reuse while facilitating different customers specific workflows and mappings that they use...

View Article

Failed to restore nuget package vs 2019

I have started project in dotnet 5 and visual studio 2022 and now try to open it on visual studio 2019 in other pc. But I get error when I want to restore packages.Retrying 'FindPackagesByIdAsync' for...

View Article


Get NuGet package folder in MSBuild

I want to call executable tools like NUnit which I manage via NuGet in MSBuild:<Target Name="Test"><CreateItem Include="$(BuildCompileDirectory)\*.Tests.*dll"><Output...

View Article


How to set max version on nuget packege

I have a project where I don't want to update bootstrap by accidentIn packages.config how can I set a rule that the package must be lower than 4 and greater than 3.1 ?Perhaps min isn't possible but I...

View Article

DLL in NuGet package not appearing in build output folder

We have a NuGet package that was created by ourselves and is hosted on an in-house repo. We've been using it for several years in a .Net Framework 4.x solution. The package contains a .Net4.x assembly...

View Article

Build a image with dotnet core 6 using dockerfile get an error NETSDK1064

I'm tring to build a image with .net core 6, but when command ran to this line :RUN dotnet publish -c release -o /app --no-restoreI got a error:#14 0.629...

View Article

How to restore assemblies from a NuGet package for a specific target...

I'm looking for a way to restore the assemblies for a NuGet package which targets exactly one framework, in this case net45.This is my packages config:<?xml version="1.0"...

View Article


Image may be NSFW.
Clik here to view.

How to adjust or format the column width in output of Package Manager Console

I ran below command in Package Manager Console in Visual Studio:Find-Package analysisservicesThis command gives below output:For several packages whose name is relatively longer than the width of the...

View Article

Why aren't my images showing up in the README.md file on NuGet.org

I have published a NuGet package with a README.md file in it. The README is displayed normally but without images.How NuGet.org shows picturesIn F12 it looks like that:F12 DescriptionI am aware that...

View Article


Cannot add migrations in Entity Framework Core v6.0.7 .NET 6 - could not load...

This project uses Entity Framework Core v6.0.7 and .NET Version 6.When I try to add a migration or update the database from NuGet package manager console, I'm getting the following error:add-migration...

View Article

Image may be NSFW.
Clik here to view.

Specify a Nuget package source in vs code

I want to specify the NuGet package source in vs code since I got follow error :Those packages from a customized NuGet source which is causing this issue. Is there have any way can help me resolve this...

View Article


Enable Nuget packages restores using package.lock.json file without migrating...

I'm wondering if there is a solution to enable Nuget Packages restores using the packages.lock.json file without migrating the project to the project SDK style.My second question is, can I enable this...

View Article

Image may be NSFW.
Clik here to view.

Loading 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 Article

An assembly specified in the application dependencies manifest (...) was not...

I upgraded Microsoft.AspNetCore from 2.0.3 to 2.0.5 and my WebAPI project, although running successfully locally, fails to start in production (IIS). Everything was fine in production until this...

View Article
Browsing all 3067 articles
Browse latest View live


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