Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
31 views

How to copy a dll present in my Nuget package to a subfolder in the consuming project directory?

I have a requirement to create a NuGet package that contains an assembly and this assembly shall be copied in a subfolder of the consuming project *normally it would be copied in the base directory ...
Abhinav Mathur's user avatar
0 votes
0 answers
15 views

How do you get the contents of a nuget package to auto deploy to the output folder of a project that is referencing it

I have a nuget package that I've built and uploaded to our Nuget repository. In it are 2 native dlls. One for 32-bit and one for 64-bit. I'll be referencing them in various projects (net472, net6, ...
Ultratrunks's user avatar
  • 2,564
0 votes
0 answers
43 views

How can I copy plug-in DLLs from a sub folder using NuGet

For a .NET Framework project (SDK style) I'm trying to create a Nuget package including code, documentation and additional plug-ins from a user control. After creating my NuGet package and using it in ...
AxD's user avatar
  • 3,146
2 votes
0 answers
129 views

Could not load file or assembly 'System.Runtime, when creating nuget spec based on the assembly

I have a simple compiled library (compiled with very different TFs) that I want to provide for consumers via nugets. For this purpose I want to use nuget spec -a {libraryPath} command to create nuspec ...
Unnamed's user avatar
  • 180
0 votes
1 answer
224 views

How to build nuget package from nuspec without platform version?

I am trying to build a nuget package only for dependencies consisting of 3rd party packages. If I'd be starting from scratch probably adn empty project with reguired assemblies might be a better idea ...
WSK's user avatar
  • 6,128
0 votes
0 answers
17 views

Why is package manager ignoring the settings in the nuspec file

From my understand the nuspec file this should not be adding anything from the plugins folder, but all the files are still being added. I just want them in the pack, and not added to the project. ...
Ron Bowes II's user avatar
0 votes
1 answer
116 views

Nuget package references and depencies problem

I have c# projects with packages and references in hierarchy like this Project-A package1 package2 Project-B package3 package4 Project-C package5 package6 So project A ...
SourCreamKun's user avatar
6 votes
1 answer
3k views

Nuget Central Package Management - Transitive

We have a huge Visual Studio solution with many projects (SDK style). In order to simplify the update/maintenance we introduced the central package management feature with a Directory.Packages.props ...
Franz Gsell's user avatar
  • 1,565
2 votes
0 answers
178 views

why my nuget package triggers dependency dll downgrade when install?

I have a nuget package that consumed by internal teams. This is the dependency section in the nuspec file <dependencies> <dependency id="Microsoft.IdentityModel.Clients.ActiveDirectory&...
daxu's user avatar
  • 4,024
0 votes
1 answer
857 views

How do i remove dll(s) from Nuget package?

Im using Visual Studio 2022 and created a Nuget Package using this article https://arsenshnurkov.github.io/gentoo-mono-handbook/building-nupkg.htm I run nuget pack and i see the nupg file and upload ...
He-Man's user avatar
  • 29
0 votes
1 answer
175 views

Excluding files from Nuget package

I have a few projects, which could be a console application, Web Application, WebAPI, MVC etc) and a normal Class Library (not Core/.Net 6) which contains Newtonsoft.Json dll (latest version). Each of ...
Computer's user avatar
  • 2,207
1 vote
0 answers
130 views

"Go to definition" doesn't work in Visual studio for resource dictionary items even with debug symbol files or .pdb files packaged within nuget

I have a project named Components which contains a resource dictionary name TestResourceDictionary.xaml . I am able to refer this Components library from my root startup project and access the ...
Rana prathap's user avatar
3 votes
1 answer
659 views

NuGet transitive dependencies and floating notation

According to Microsoft's documentation using floating notation with NuGet PackageReference “resolves to the highest existent version that matches the version description” - NuGet Package Version ...
Techromancer's user avatar
0 votes
0 answers
93 views

Chocolatey configuration listing installed software and checksum files

I am trying to undestand how Chocolatey knows which packages are isntalled locally from an algoritihim perspective. Breaking a similair question down, it says packages are installed by listing %...
morleyc's user avatar
  • 2,391
1 vote
0 answers
199 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
Giorgi Lomtadze's user avatar
0 votes
0 answers
202 views

How to correctly handling nuget dependencies without pollution main project with unnecessary dependencies

Issue: "Could not load file or assembly Razorlight...." during attempting to intaracting with CustomProject instance within the main solution Prerequisites: The main solution consumes ...
AllmanTool's user avatar
  • 1,504
0 votes
2 answers
1k views

ProjectReference is not copied to output as part of parent NuGet package

I have 2 csproj projects: Child.csproj and Parent.csproj. Child.csproj is referenced by Parent.csproj through ProjectReference: <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup&...
vkolesnik's user avatar
  • 379
1 vote
1 answer
333 views

NuGet spec command ignoring metadata from project properties

I am generating a NuGet package of a library in .NET Standard 2.0 using Visual Studio 2022. I go to Project properties and edit the project information as shown in the pictures. When i use the ...
antoprd's user avatar
  • 393
0 votes
1 answer
152 views

NuGet package dependency version clarification

In a NuGet package, in its .nuspec file, the package dependencies are specified on a per-target framework basis. E.g., in the System.Collections.NonGeneric package, here are its TF dependencies: <...
Brie's user avatar
  • 2,339
1 vote
0 answers
61 views

add dlls as contgent to a nuget package

I need my package to contain some dlls that should be delivered as content and copied to the output folder. The following configuration should do the trick, but when I am consuming the package I get ...
user1472131's user avatar
0 votes
1 answer
208 views

CPack NuGet Warning NU5119 NoDefaultExcludes

I am trying to create a NuGet package using CPack and want to pack files starting with '.'. I couldn't find any CPack variable to pass option NoDefaultExcludes. Also there is no variable to modify ...
Vijay Katoch's user avatar
0 votes
1 answer
605 views

Create NuGet package that when installed copies content to $(OutputPath) regardless of machine

I am trying to get a content file that is included with my NuGet package to be copied to the $(OutputPath) (in my case bin\Debug\netcoreapp3.1 where all the DLLs end up) of a target C# project when ...
Kit's user avatar
  • 21.6k
0 votes
0 answers
97 views

DLL in NuGet private server missing dependencies

I have a .NET Framework 4.6.2 (hence non-SDK) DLL project which my company wants to move in a private NuGet server. This project has some NuGet dependencies handled with PackageReference method and ...
IssamTP's user avatar
  • 2,440
0 votes
0 answers
26 views

powershell script is giving error cannot process argument transformation on parameter for chocolatey install [duplicate]

function deployapp(){ Param ( [Parameter(Mandatory=$true)] [string] $dest_api, [Parameter(Mandatory=$true)] [string] $a_api, [Parameter(Mandatory=$...
MD. Ashfaqur Rahman Tahashin's user avatar
0 votes
1 answer
601 views

Local Nuget Package Creation for console

Could any team help me for creating local nuget package file that can be utilize in to different all project if application belong to web application or console application ?How can we convey any ...
AMIT GUPTA's user avatar
11 votes
0 answers
806 views

Way to mark Nuget-Package als Deprecated in a local repository

I´ve seen that there is a way to mark packages as deprecated on nuget.org (https://devblogs.microsoft.com/nuget/deprecating-packages-on-nuget-org/). Unfortunally I don't push my packages to nuget.org ...
she's user avatar
  • 131
0 votes
1 answer
128 views

No files appear from Nuget package when imported

We are looking to use Nuget to share code between repos. I have created a Nuget package which contains all of the source code in a specified sub directory. In 7Zip I can explore it and see all of the ...
Stefan's user avatar
  • 3,859
2 votes
1 answer
1k views

NuGet Build Not Adding RepositoryUrl Property

I'm having trouble setting the RepositoryUrl tag within my NuGet package. It just doesn't seem to be reflected in the built output and the documentation for where exactly it should go is extremely ...
Gerard Wilkinson's user avatar
0 votes
1 answer
1k views

nuget not installing file in project\bin directory

Working in VS 2019 .NET framework 4.8 For my C# class library project, I ran nuget spec to create a nuspec file for the dll and its dependencies: <?xml version="1.0" encoding="utf-8&...
user avatar
0 votes
1 answer
253 views

How to create my own custom nuget package for System.Data.SQLite to correctly include the interop dlls?

I want to create my own custom package for System.Data.SQLite. I have the all the dll's I need but I'm unsure how to structure it and create the nuspec for it. Current folder structure of the dll's is ...
TMStackO's user avatar
  • 363
0 votes
0 answers
83 views

Create variables for common path in nuget

I want to provide variables for common path in hint path in .cspoj after installing nuget package. Example: After installing myNuget package in cs poject, few deliverables are added to project ...
Kalyani Reddy's user avatar
3 votes
1 answer
827 views

How to create a nuget package from DLLs after obfuscating them

Hi I have a class Library project I built it DLLs and I apply obfuscation on the DLLs using a software, after that I got new obfuscated DLLs. so now my question is how can I create nuget package just ...
XDev's user avatar
  • 155
0 votes
1 answer
990 views

Restore nuget package in different folder

We have some projects (Plugins) which use in several projects, the output of these projects will copy to the specific folder in the target projects (Plugins folder). We pack project with Visual studio ...
Mahdi Farhani's user avatar
1 vote
1 answer
988 views

Nuget Build, when it PackageName.Targets and PackageName.props consumed?

Given, a package file called example: <?xml version="1.0" encoding="utf-8"?> <package> <metadata> <id>example</id> <version>$...
Gregory William Bryant's user avatar
2 votes
0 answers
466 views

nuget package .pp not transform to .cs file

I am creating a NuGet package and I need to include some cs files and hope their namespace can auto transform to the target project's namespace. So I found the document said that I need to use .pp and ...
Nicky Liu's user avatar
  • 157
1 vote
1 answer
2k views

Nuget resource change from https to http

I try to upload a NuGet package but a receive this error: An error was encountered when fetching 'PUT http://nuget_domain/api/v2/package/'. The request will now be retried. But in the https://...
CarlosS's user avatar
  • 181
0 votes
0 answers
137 views

Difference in the way nuget and direct reference to dll works

I am all new into the .Net world and still trying to get a hang of it. I have a .Net core 2.1 project and I am trying to reference Microsoft.Identity.Client.Extensions and Microsoft.Identity.Client ...
hitesh's user avatar
  • 55
0 votes
1 answer
1k views

Importing content-only package to DotNet Core 3.1 project in Visual Studio 16.6

I have defined and created a content-only package to share JSON schemas between different projects. I packaged it using nuget.exe, and could successfully add it to .Net Framework 4.6 library project. ...
GKalnytskyi's user avatar
2 votes
1 answer
461 views

CPack NuGet native library

I struggle to create a NuGet package from a native C++ library. For now, I have the following setup: include(GNUInstallDirs) file(RELATIVE_PATH relDir ${CMAKE_CURRENT_BINARY_DIR}/${...
loics2's user avatar
  • 646
7 votes
2 answers
2k views

NuGet dependencies - getting NU5128 warning when targetFramework is specified

I have a project targeted to .NET Framework 4. I am using nuget.exe (version 5.6.0.6591) to create the NuGet package. The project itself has no other references than Microsoft.CSharp and System ...
David Hrbek's user avatar
1 vote
1 answer
2k views

How to package a single EXE with NuGet

I have a large EXE that my project needs, but I don't want to commit large EXEs into Git. So, seems to me a viable option is to pull it in through NuGet. Easy enough, I created a .nuspec file with ...
Mike Christensen's user avatar
0 votes
1 answer
439 views

Nuget Package Compatibility and Upgrades

My company has internal components that we deliver via internal NuGet. Now i want to make a Version 5.X of these components which will be breaking a lot from the 4.X versions. However now if my ...
Otterprinz's user avatar
0 votes
1 answer
1k views

NuGet package not installing in .NET Framework

I have created .net standard library project and I have created nuget package for this library, Now I need to install this package in both application .Net Core and .Net Framework4.5. Working fine in ....
Sivakumar's user avatar
  • 365
0 votes
1 answer
2k views

Embedded into NuGet package icon doesn't appear in VS

I generate a nuget package using my nuspec file below: <?xml version="1.0" encoding="utf-8"?> <package > <metadata> <id>CommonLib</id> <version>1.2.3</...
Tiger Galo's user avatar
0 votes
1 answer
461 views

Configure an azure devops pipeline to pack and push a UWP library with components

I am trying to 'publish' (build, nuget pack and push) a UWP library project to a private azure artifact feed using azure pipelines. I am using the classic editor in pipelines, with the following ...
Ron's user avatar
  • 3
0 votes
1 answer
531 views

Nuget packing not including dependncies in right way

I have a C# library, let say "Utilities" that uses Log4net as dependency, I am using .net framwork 4.6.1, I finished developeing this library and do a nuget pack Utilities.projcs and then push this ...
Mostafa Hassan's user avatar
-1 votes
1 answer
210 views

Nuget Spec AspNet vs AspNetCore

I am creating a library that I want to have different behaviour based on the type of project that is dependent on it. Here are the 3 types of projects I want to separate: AspNet (.NET Framework) ...
Linvi's user avatar
  • 2,087
2 votes
1 answer
6k views

Targeting multiple .NET Framework versions in a nuspec file

I have a Visual Studio solution with multiple projects. There is one single csproj for every version of .NET Framework (+ .NET Core) I want to support, and I want to keep it that way. They all ...
Helena's user avatar
  • 1,067
0 votes
1 answer
813 views

error with push nuget package to azure devops artifact repository

I have a ClassLibrary App and i want to create nuget package from it and push to my azure devops artifact repository Now I am create nuspec file for my project from "nuget.exe spec myApp.csproj' and ...
arash's user avatar
  • 61
1 vote
0 answers
52 views

Cannot reference my nuget package namespace

Repro I have created my FIRST nuget package. Package project targets net standard 2.0. It is built and published by azure pipeline: ... - task: VSBuild@1 ... - task: VSTest@2 ... - task: ...
zolty13's user avatar
  • 2,181

1
2 3 4 5