Questions tagged [nuget-package]
NuGet is a Visual Studio extension that makes it easy to install and update open source libraries and tools in Visual Studio.
3,338
questions
0
votes
0
answers
6
views
Control nuspec include/exclude with MSBuild pack target
I have the following project file:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
</PropertyGroup>
<...
0
votes
0
answers
10
views
MT0136: Cannot find the assembly in Xamarin.ios build time
I created an added a nuget package to my xamarin.ios project. but im getting the following build error
warning MT0136: Cannot find the assembly 'MeasureLrngth,
Version=1.0.8179.36735, Culture=neutral,...
0
votes
1
answer
19
views
Nuget : Additional computed target framework(s)
In nuget.org, when you check any package there are 2 types of framework.
What is the difference between Compatible target framework and additional computed target framework?
0
votes
0
answers
23
views
Azure feed: nuget package is not found
I have 2 solutions (2 .NET Core projects), the first one represents just the models and some simple services for public use, like email service, etc.
It's uploaded to Azure as nuget package and there ...
0
votes
0
answers
16
views
Add NuGet package That's not available from NuGet to GitLab (From Visual Studio)
We have a build pipeline for a SharePoint Provider Hosted App using GitLab...we've just moved from DevOps ...however one of the packages is not available on NuGet so the build is failing......
0
votes
0
answers
54
views
Can't install NuGet packages
I get this error message while installing NuGet packages:
Install-Package : Unable to load the service index for source https://nuget.telerik.com/v3/index.json.
Response status code does not ...
1
vote
1
answer
31
views
How to create a Nuget Package in ADO Pipeline
Using the Classic DevOps, I am trying to create a NuGet package out of one of our code libraries.
I am Using NuGet version 5.9.1
I am able to do a NuGet restore of the 'Newtonsoft.Json.13.0.1.nupkg' ...
0
votes
0
answers
27
views
Error CS0234 The type or namespace name 'CSharp' does not exist in the namespace 'Microsoft.CodeAnalysis'
I was about to try to make runtime scripting in UI in Unity and after adding all Microsoft.CodeAnalysis and Roslyn.Compilers packages my code still isn't compiling, saying "Error CS0234 The ...
-1
votes
1
answer
23
views
Can't use WpfAnimatedGif nuget package [duplicate]
I'm trying to make a WPF project that use nuget package of "WpfAnimatedGif" (https://github.com/XamlAnimatedGif/WpfAnimatedGif) in order to make a window background gif.
But for some reason, ...
0
votes
0
answers
22
views
Generate Packages.Props for solution ( central management of NuGet package versions within your solution )
Does any utility exist, which generates packages.props from the list of installed NuGet packages for that solution.
Is the only option to add manually these references ?
<Project>
<...
0
votes
1
answer
30
views
How to avoid nuget conflict reference?
I have a project A that references NuGet Newtonsoft Json version 11 and I have another project B that references NuGet Newtonsoft Json 13 and also project B. Since project B references a lesser ...
0
votes
0
answers
22
views
"Found conflicts between different versions of the same dependent assembly." error even with PackageReference replacement
I've switched to PackageReference as the source for "System.ValueTuple". It builds and runs fine. However, I still receive this warning message below which I can't seem to get rid of or ...
0
votes
0
answers
21
views
Compile and run .NET codebase without downloading remote dependencies(DLLs), But can use via network
We have a codebase with dependencies that are hosted in secured remote repository. Generally, when we do "dotnet restore", All the dependencies gets downloaded to local and then the code ...
0
votes
0
answers
44
views
Can I use the DLLs included in the nuget package
I used Nuget package explorer to pack some third party DLLs into one package and published to my nuget server, many of my projects need refer to those third party DLLs and I don't want to add DLL ...
1
vote
0
answers
18
views
ASP.NET Core MVC : loading nupkg file and use it at run time
I have an ASP.NET Core MVC project, and I want to load a file of type .nupkg at runtime, with a different version every time, and use the code from the loaded file.
The nuget file exists in a ...
0
votes
0
answers
30
views
How can I get Nuget Package's target framework
Is there a way in C# to get the target .NET-framework of a Nuget package located on a Nexus (3.38.1-01 version) repository without downloading it ?
Can't achieve anything yet and don't have any leads.....
0
votes
0
answers
20
views
Winscp NuGet Package not working in SSIS Script Task [duplicate]
I created a Script Task in my SSIS package and addded the WinSCP nuget package to the script. However when i build the task i get the following error,
This project references NuGet package(s) that ...
1
vote
1
answer
50
views
The type 'Nullable<>' is defined in an assembly that is not referenced
I created a Class Library and NuGet package in order to share code to access our API. (This is my first time trying any of this). The Class Library was created using .NetStandard. I used the "...
0
votes
0
answers
10
views
NuGet package for distributing consistent theme for Blazor WASM
In an organization, multiple Blazor WASM projects will be using the same CSS library and company theme, say Bulma (https://bulma.io/) or others.
My intention is to have one NuGet package that will:
...
0
votes
1
answer
8
views
Consume specific SDK dlls in Nuget package
I'm compiling my code with net6.0.
One of my depends projects, compiled with netstandard2.0, is using a Nuget package with DLLs for netstandard2.0 and net5.0 (and also netstandard1.1 and net45).
In ...
0
votes
1
answer
33
views
Cannot uninstall entityframework package from mvc project
While trying to uninstall Entityframework in Package Manager Console by typing uninstall-package Entityframework, following error is showing up:
uninstall-package : Unable to uninstall '...
0
votes
1
answer
15
views
Embedding debugging symbols in nuget does not work
I am making a Nuget package and would like the devs that use it to be able to step through it during debug.
I've heard of "symbol packages" but from the little I know it seems complicated, ...
0
votes
1
answer
15
views
Visual Studio Nuget packages
Am trying to get nuget packages into my visual studio project.
NuGet Package manager is not package source of 'nuget.org'... just show Ms VS offline packages. Is there any setting?
0
votes
0
answers
23
views
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 ...
0
votes
0
answers
13
views
Nuget Package issues
New to using nuget and packages, my csproj file for a project has it looking for the package at
..\..\..\..\Packages\Portable.BouncyCastle.1.8.10\lib\net40\BouncyCastle.Crypto.dll
Which is correct I ...
0
votes
0
answers
31
views
Can someone explain the use of Autofindviews nuget in Xamarin Android?
What is the use of Autofindviews nuget in Xamarin.Android project?
I have seen few references saying it creates autogenerated code of layout files.
Is that nuget still in use. if so, is it compatible ...
0
votes
1
answer
33
views
System.IO.ports works in Unity but not in build
I threw together a little application in Unity which needs to access a serial port. Since Unity does not include System.IO.Ports I installed the NugetPackage with NugetForUnity. Everything works fine ...
0
votes
0
answers
37
views
Compile error after adding .net6 nuget packages to .net6 project
I have Visual Studio 2022 version 17.1.6, .net Sdk version 6.0.202, moreover I have several other .net versions installed including core 3.1.0, 3.1.22, 3.1.24, I reparired the installation of all of ...
0
votes
1
answer
13
views
Automatically update .nupec file with dependencies
I've created a nuget package that is used by another project.
My package references Microsoft.Identity.Web version 1.23.1. When I pull this package into the project where I want to you use it, I don't ...
0
votes
1
answer
38
views
How to make my nuget package able to "step in"?
Im releasing a nuget package and I'd like that whoever is using it could step into it as if it was his own code.
In order to do that, in the RELEASE configuration (which is the one I use for ...
-1
votes
1
answer
59
views
Read values from Excel Text Box using C# - Nuget Package
I have an existing excel file, from which I am trying to read data and store it in the DB. But there are few Text Boxes and Check Boxes, where I need to get data from these as well. Is anyone aware of ...
1
vote
0
answers
18
views
Is there any way to use .net 5.0 nuget package with .net 4.5.1?
I've made a custom nuget package from .net 5.0 standard library. Is there any possible solution to Install this nuget with .net framework 4.5.1? This is the error message.
enter image description here
0
votes
0
answers
23
views
Exclude folder from NuGet package
We have an assembly that currently holds .net code that is used by other assemblies but also typescript & vuejs components that are being used by other assemblies.
For the common .net code, we ...
0
votes
1
answer
40
views
grab UserSecrets from a NuGet package
I've written a C# class library for my company to use internally, and it uses DotNet UserSecrets to allow each developer to have their own credentials set without needing to worry about accidentally ...
1
vote
1
answer
29
views
Nuget Package is causing API Validation Errors
I have a project that is separated into three layers:
An API, which sends MediatR queries and commands to the application layer.
A class library of application logic that uses fluent validation.
A ...
1
vote
0
answers
75
views
Conflictcs between versions of "System.Numerics.Vectors" within Xamarin Forms 5 .NET6.0 Android Project
I'm building a Xamarin Forms 5 app including an Android Project using VS 2022 Preview
All NuGet packages are up-to-date.
The project references another project which is using the NuGet Package ...
0
votes
0
answers
44
views
NuGet.config configuration in such away that it would create the packages directory if they do Not exists
Here is info about our technical development environment :
-Microsoft Visual Studio Enterprise 2019
-.Net Core 3.1
-DevExpress v21.2.6 platform
PostgreSQL 14.2, compiled by Visual C++ build 1914, 64-...
0
votes
0
answers
4
views
Command for mass convert to PackageReferenence
is there command to convert packages.config to PackagesReferenence? Without running Visual Studio or any other IDE. I was searcing on Google but I wasn't found any CLI utility.
0
votes
0
answers
23
views
ASP.NET Core Web API - How to resolve Detected package version outside of dependency constraint
In my ASP.NET Core-6 Web API, as I tried to install:
Install-Package AutoMapper.Extensions.Microsoft.DependencyInjection -Version 11.0.0
through the Nugget package, I got this error:
Detected ...
0
votes
0
answers
20
views
Add the appsettings file to the nuget package [duplicate]
I have a multitarget netsdk project with the following project format:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net5.0;netstandard2.0;...
0
votes
1
answer
63
views
Version mismatch in Nuget Package
I was trying to create a gis application when i installed a nuget package, it showed the following error,
Error The 'Esri.ArcGISRuntime.WPF' nuget package cannot be used to target 'net6.0-...
0
votes
0
answers
39
views
Failed to install from NuGet package manager - VS 2017
After installing vs 2022 and uninstalling it (because it doesn't support ODT - oracle developer tools).
Going back to the previous version (2017 or 2019) causes the NuGet package manager fails to ...
0
votes
0
answers
68
views
Why the NuGet doesn't copy some dlls as in packages.config
I have a problem where I want to copy Google.Authenticator.dll nuget from C:\ProjectX\packages into C:\ProjectX\project.Web\Bin.
Here what I done so far:
cleared the nuget cache
update the nuget ...
0
votes
1
answer
58
views
.NET NuGet Package Validation does not show any output on breaking changes
I have a .NET project that creates a nuget package and I wanted to add PackageValidation as described here:
https://docs.microsoft.com/en-us/dotnet/fundamentals/package-validation/overview
I have ...
0
votes
0
answers
66
views
.NET Core 6 microsoft.data.sqlclient 4.1.0 in runtimes\win\lib\netcoreapp3.1
I'm upgrading my application from .NET Core 3.1 to 6.0 and in the process moving the sqlclient from 2.0.0 to 4.1.0
I was expecting 4.1.0 version be in runtimes\win\lib\net6.0?
From the debugger ...
0
votes
0
answers
27
views
Nuget Package Manager installed, but I am unable to access it
In Visual Studio, I am unable to access my Nuget Package Manager even though it is listed as installed. I don't have the option anywhere. Screenshots below. I am currently in VS as administrator and I ...
0
votes
0
answers
28
views
Weird issue using WebBrowser Control & Telegram Nuget Package
I'm using the Telegram.bot package from nuget and getting the last message as a string from the client. I want then to set it as the attribute of a textbox on a webpage with the control WebBrowser. I'...
0
votes
1
answer
30
views
Cannot use nuget package within the project
Hi I have created a nuget package for my xamarin.iOS project. I have included the DLL which is generated from my Xamarin binding project. This is my .nuspec file
<?xml version="1.0"?>
&...
0
votes
0
answers
46
views
Getting 'forbidden' pushing a nuget package in github
Much like this thread: Publishing and Consuming GitHub Package Repository with NuGet: Unable to load the service index error
I have the csproj correct, the nuget.config correct (same as in that thread,...
1
vote
1
answer
64
views
What is the difference between PackageReference Update and PackageReference Include?
<PackageReference Update="Microsoft.NETCore.App" Version="2.1.22" />
<PackageReference Include="Platform.Core" Version="1.8.0" />
What is the ...