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,591
questions
0
votes
0
answers
32
views
Two projects reference same package but in different version creating runtime problem
I'm trying to solve problem of two projects that try to use same package (Microsoft.Graph) but each uses different version of it. (See diagram below).
Orchestrator is an Azure Function that references ...
-1
votes
0
answers
22
views
How do I handle the Microsoft.NETCore.Targets is now deprecated warning in NuGet Package Manager?
See:
How do I know if it is safe to simply remove this Microsoft.NETCore.Targets package from my project?
It is a console application, configured to target .NET Framework 4.6.2. And its primary ...
-2
votes
0
answers
32
views
Why it is still verifyingthe SSL even if i ignore this [closed]
We encountered an issue while attempting to convert the .cs file to the .NET 6 framework. When we tried to upgrade the .NET framework, it resulted in the removal of assemblies from the project, and ...
0
votes
0
answers
30
views
nuGet package installation error - Visual Studio [closed]
Visual Studio - nuGet package installation error
So I am very new to Dot Net and we have a project folder (web site folder) which has a couple of .aspx and .aspx.cs files and a web.config file (that ...
0
votes
0
answers
32
views
Unable to create new webapi project
I am creating my first ASP.NET Core Web API project using .NET Core, but when I create my project in PowerShell using command
dotnet new webapi -n FirstProject
The template "ASP.NET Core Web API&...
0
votes
0
answers
17
views
Is it possible to use GeneratePathProperty from nuget package installed in a dependant project?
I've a c# solution with 2 projects in .net framework 4.8: ProjectA and ProjectB.
ProjectA has installed a nuget package, called NugetPackageInternal package that exports a contentFile: ...
0
votes
1
answer
39
views
Nuget Package cannot resolve dependencies. How to add all the dependent libraries into a single nuget package?
I have a project structure like this-
I have created a NuGet package with Project A but when I use this Nuget 'Project A.nupkg', I get an error - Cannot find dependencies 'Project C.dll'.
Project A....
0
votes
0
answers
20
views
NuGet CLI list does not show any packages but add & delete work just fine
I have this annoying problem where when I try to list NuGet packages they don't appear. The command I use is:
nuget list packageid:%NUPKG% -Source "C:\Program Files (x86)\Microsoft SDKs\...
1
vote
1
answer
34
views
WinUI3 Error: System.EntryPointNotFoundException with Version 17.6.0 of Visual Studio
I have encountered the following error when I try to run my WinUI3 project.
System.EntryPointNotFoundException: 'Unable to find an entry point named 'XamlCheckProcessRequirements' in DLL 'Microsoft.ui....
0
votes
0
answers
15
views
Transitive dependent DLL is not found during runtime
I have a csproj A, in which I added a dependency for D.dll. I have taken a dependency on A in project B with normal project reference not the dll type reference.
When I run the unit tests of B then it ...
0
votes
0
answers
16
views
How to verify Package Signature when using Nuget.Packaging on .Net Framework
I am consuming Nuget.Packaging library from a component targeting .Net Framework 4.7.1. I notice that the methods that works on .Net 6/7 do not work the same way. I can see that I can open the ...
0
votes
0
answers
32
views
How can I resolve a compatibility issue between OpenTelemetry packages in an ASP.NET Core project? [closed]
I am developing a custom application with OpenTelemetry using ASP.NET Core. I am following the OpenTelemetry documentation. In my MVC project, I have added the following packages with their latest ...
0
votes
1
answer
110
views
Azure function. 'Could not load type 'Microsoft.Azure.WebJobs.ParameterBindingData' from assembly 'Microsoft.Azure.WebJobs, Version=3.0.34.0'
I'm trying to run an Azure Function v4 from Visual Studio, I know the function is correct because it works correctly in other computers from the same repo. I already removed and Clone the solution but ...
1
vote
1
answer
60
views
error: Package 'Microsoft.Azure.WebJobs.Extensions' is incompatible with 'all' frameworks in project '
Following this MS doc/article, created .NET 6 Console App in Visual Studio 2022.
No Modifications has done yet.
While linking the given NuGet Package, I'm getting this error: Package 'Microsoft.Azure....
0
votes
0
answers
29
views
I have a Blazor server side app. After updating Visual studio from 2019 to 2022, I get a problem just on a specific nuget package. Why?
I have a Blazor server-side app (.Net 6). This app was working without problem until now. I have updated my Visual studio to V2022. After cleaning, rebuilding and publishing the project (to local ...
0
votes
0
answers
20
views
How to prevent unit test libraries download when a production build is made using c# and dotnet cli?
In another languages, when a build for production is performed, there are configurations to avoid libraries or dependencies not related to the build like: unit test, code coverage, etc
nodes js
npm ...
-3
votes
0
answers
16
views
NltkNet Package Reference Error: The type or namespace name 'NltkNet' could not be found (are you missing a using directive or an assembly reference?) [duplicate]
I am trying to use NltkNet package in my C# project but i am facing this error "The type or namespace name 'NltkNet' could not be found (are you missing a using directive or an assembly reference?...
0
votes
1
answer
35
views
NuGet dependency for local projects
I have a .net 6 solution with a huge number of projects, every project will be publish as a NuGet package to be used by other teams.
Some of the projects depends from others project of the solution.
I’...
0
votes
0
answers
29
views
unresolved external symbol _CreateCoreWebView2EnvironmentWithOptions
My project was successfully built in visual studio 2019. Now I was asked to build in visual studio 2022.
For this project, I need webview2 libraries;
I installed webview2 and windows implementation ...
0
votes
0
answers
15
views
Target file of nuget package doesn't proceed .dll file
We changed our Azure pipeline from (legacy) csproj pack to nuget pack. In the process, it seems that a .dll which is located at the root folder of my project isn't copied despite it being mentioned in ...
0
votes
1
answer
26
views
NUnit.3.13.3.nupkg doesn't exist. Unable to neither install a nuget package nor launch a project on ubuntu
I have a fresh Monogame mgdesktopgl project, try to launch it or install a package via Rider — and get an error:
`/usr/lib/dotnet/sdk/6.0.116/NuGet.targets(130,5): error : The local source '/path/to/...
0
votes
0
answers
8
views
Can not add content to nuget package
I created a blazor component library; when the project was created, it included scaffolded.cs and.js files with the names exampleJsInterop.
I also made a blazor app to test the component library by ...
0
votes
0
answers
19
views
Why isn't NuGet manager showing for one SLN in Visual Studio 2022?
This just happened with one of my SLN's which is made up of several projects.
In Visual Studio 2022 (C# .NET) I'm getting a bunch of MSB4018 Errors and all of my NuGet dependencies have warning icons. ...
0
votes
0
answers
30
views
Azure Pipeline not using private project nugget packages (artifacts)
I am trying to run a pipeline that will produce an artifact ([...].Models) for my private project's artifact/package feed.
It relies on another artifact ([...].Interfaces) that I have successfully ...
0
votes
0
answers
37
views
Publish nuGet package as single file
I am not sure if I am rightly thinking or not, but I was trying to create a nuget package which can be published as a single file, so that dependent nuget libraries must be bundled in single nuget ...
0
votes
0
answers
14
views
Creating a nuget package copying files to the root of the target project
I'm currently working on creating a NuGet package that requires certain files to be copied during installation. However, I'm facing some issues with the copying process. Firstly, the files are being ...
0
votes
0
answers
20
views
error : Invalid project-package combination for Tokenizer 2.0.0. DotnetToolReference project style can only contain references of the DotnetTooltype
I have a ASP.NET 4.8 webapplication and want to maintain CICD using github actions workflow. I am trying to add tokenization task for replace the variable as per the environment secrets after build ...
0
votes
1
answer
79
views
Cannot use installed Blazor QuickGrid nuget package
I'm using Visual Studio 2022. My Blazor WebAssembly project uses .NET Core 7. I've installed the Microsoft.AspNetCore.Component.QuickGrid nuget package from the Package Manager and it appears in my ...
0
votes
1
answer
56
views
In C# is it possible to use packages that depend on .NET 4.5.2 in newer .NET 7?
I am pretty new to C# and .NET and am trying to use a package that depends on .NET 4.6.2 in newer .NET 7 solution. I know it may be obvious but is this possible? I have searched and cannot even find ...
2
votes
2
answers
122
views
Why does Visual Studio change app.config if a NuGet package is added?
After adding a deliberate NuGet package to a .NET Framework project (version 4.8 in my case) typically two types of files change: packages.config and csproj file.
But sometimes also the app.config ...
0
votes
0
answers
41
views
Google's ML Kit bindings for Xamarin.iOS
I have used Xamarin.Google.MLKit.FaceDetection NuGet package for the Xamarin.Android but I couldn't find the counterpart NuGet package for the Xamarin.iOS.
I know this repository (...
0
votes
0
answers
28
views
How to add packageSourceMapping targeting pattern and version in NuGet.Config
In an C# based project, I am using preview packages are are hosting on a nuget.cloudsmith.io not nuget.org. The production packages are hosted on nuget.org.
I want to define rules in my Nuget.config ...
0
votes
0
answers
23
views
Retrieve Nuget Package Metadata from IFormFile or MemoryStream
I have an API I am creating that retrieves an IFormFile that is a Nuget package. I need to retrieve the 'BuildVersion-X.X.X.X' value from the metadata. All the research I have found so far is just ...
0
votes
0
answers
11
views
ADO Release pipeline -> How to make pipeline to restore the artifact added to it?
I have a release pipeline with an artifact added to it. Also I have below tasks, my problem is I don't know how to include that artifact while NuGet Restore such that my pipeline will run on the ...
0
votes
0
answers
30
views
Getting Assembly Errors With SignalR
I getting this error and I don't know what the issue is. The project is using framework net48;net6.0 and we have NewtonSoft 13 installed.
0
votes
0
answers
49
views
What is the update/patch policy on vulnerable Microsoft.AspNetCore package versions?
I have some quite old library code using Microsoft.AspNetCore 2.2.0, which has vulnerability CVE-2019-0548. The library is compiled for targets Netstandard 2.0 and NET 6.0, consumed by NET Framework 4....
0
votes
1
answer
71
views
How to reference System.Windows.Interactivity.dll from a nuget package in ResourceDictionary
I was trying to replace Blend with nuget package Microsoft.Xaml.Behaviors.Wpf so to continue using System.Windows.Interactivity.dll.
Here is the solution I tried.
How to add System.Windows....
0
votes
1
answer
33
views
MSBuild Build Artefacts references
The ask is simple. When msbuild generates the dll/exe for a project, does it store any reference to the NuGet packages in the generated artefacts?
I have an application that refers to, for example, ...
1
vote
1
answer
46
views
Different NuGet Package used in Visual Studio "stopped mode" than in debug mode
I identified a strange behaviour of Visual Studio.
I have an App that has the same NuGet package (but different versions) in its dependency graph.
The graph looks like this:
The "cousing ...
0
votes
1
answer
28
views
dotnet pack reads an empty VCTargetsPath
I am building a Nuget package with Azure Pipelines.
The pipeline is run by a self hosted agent.
It works perfectly for pure .NET and .NET framework projects, but I get an error with a (VS2022) ...
0
votes
0
answers
10
views
Restore all nugets and their dependencies to a flat folder
I have a c# project, I need to be able to restore all its nugets (and all their dependencies) to a folder and then load dynamically (using reflection) one DLL.
This single DLL might depend on other ...
0
votes
0
answers
17
views
The inline constraint resolver of type 'DefaultInlineConstraintResolver' was unable to resolve the following inline constraint: 'objectType'
I have an Optimizely 11.20 solution with controllers that use inline route constraints like this:
`[Route(" {market:market}/{type:objectType}/{county?}/{municipality?}/{city?}/{mainDistrict?}/{...
0
votes
0
answers
38
views
.Net XML PackageReference with constraint
From time to time, some packages need to be updated to fix vulnerabilities raised by alerts.
As an example:
package name: "Contoso", affected versions: >=3.0.0 and <3.1.3, patched ...
0
votes
0
answers
3
views
how to find respected project related for global library
How to find the reference or root of the project related to library-> location C:\Users\user1.nuget\packages.. from where it is installed or consumed?
Searched on all solutions by manage package ...
1
vote
1
answer
65
views
Unable to load the service index from source
I want to download a System.Data.SqlClient in Visual Studio and then I download it from Manage NuGet Packages for Solution (right-click on the Solution Explorer). When I try to browse that, it looks ...
0
votes
0
answers
12
views
Azure Pipeline fails when * in version of package config
When building in VS with config
<PackageReference Include="<PackageName>" Version="*" />
Does works fine.
When building using a Azue Devops Pipeline.
This fails
<...
0
votes
1
answer
295
views
Can't install nuget package in VS 2022
When I am going to install a nuget package in Visual Studio Pro 2022 (17.5.4), it shows the following error:
Error NU1102
Unable to find package Microsoft.NETCore.Platforms with version (>= 5.0.0)
...
0
votes
1
answer
69
views
How to solve System.IO.FileNotFoundException for Cefsharp
I am building a web scraping app using Cefsharp.Offscreen. I use Visual Studio 22 and net framework 6 or 7. I have installed Cefsharp.Offscreen, Cefsharp.WinForms, Cefsharp.Common, cef.redist.x64 and ...
0
votes
0
answers
67
views
Getting an error on Nuget Pack when updating to latest Uno Platform
I'm updating my library to the latest Uno version. When executing a nuget pack command, I get the following:
NU1012: Some included files are included under TFMs which are missing a platform version: ...
0
votes
0
answers
13
views
Including files from NuGet into my project
I have a NuGet wrapping a Razor Library (RCL), with .NET 7, that has images under wwwroot and SCSS files on a root folder called Scss. I am referencing this NuGet from my Blazor Webassembly 7. I can ...