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.NET - Distributing a signed (strong-named) library that depends on an...
I have the following requirements for a .NET library that shall be shipped via NuGet: shall be compatible for .NET Framework and .NET Core applicationsshall be signed/strong-named to allow usage in...
View ArticleAutomatic native and managed DLLs extracting from Nuget Package
This is driving me crazy for several months now and I'm still not able to achieve it. My managed libraries are extracted from the Nuget package but not the natives ones.We have a bunch of managed and...
View ArticleDependency Issues with Docusign.Esign.dll's inherit RestSharp Dependency
I am working with a solution in visual studio that has multiple projects in it. One area of the project requires RestSharp 106.10.1, and in another project (that it needs to talk to) we have the...
View ArticleReinstall Nuget Package Manager in Visual Studio 2019
I am facing a problem with my project. The type or namespace name 'System' could not be found (are you missing a using directive or an assembly reference?This has happened before and I solved it by...
View ArticleNuget package error in visual studio 2019
How to correct the error when it indicates "There was an error running the selected code generator.Unable to load service index for source http://ap:nuget.org/v3/index.json in visual studio 2019 .
View ArticleWhy do I need to install the EntityFrameworkCore nuget package when moving my...
Maybe I didn't install the package correctly to begin with, please let me know, but after I moved my project to a new machine, installed .Net Core SDK 3.1 (latest) and cloned my project from Github, I...
View ArticleNuGet - NU5131: References declared in the nuspec file are not being packaged
I'm trying to reference two .dll files in a nupkg. I've added the files as references in the nuspec file: <references><reference file="Project.Modules.ModuleA.dll" /><reference...
View ArticleWant to read data from different Excel worksheets in the same Excel file...
Have used ExcelDataReader NuGET Package.This is the class setting it up - private static DataTable ExcelToDataTable(string fileName) { //open file and returns as Stream FileStream stream =...
View ArticleHow to ignore dependencies .Net Core during NuGet packaging?
I have my own nuget packages located on a disk (local Nuget). i'm trying to not add the same dll multiple times and get in a scenario like the image attachedi have tried the following code during...
View ArticleVisual Studio won't accept UWP version for Nugget package?
This is driving me nuts!I'm trying to install Microsoft.Build. Using Nugget Manager I can successfully install Microsoft.Build.Framework but not Microsoft.Build. I've upgraded to the latest version...
View ArticleHow can I make my managed NuGet package support C++/CLI projects?
I have made a NuGet package that works well when I use it from a C# project. It contains a DLL in the lib/net40 directory, and the DLL gets added as a reference.Now that NuGet supports C++, how do I...
View ArticleRecommended TargetFrameworks for NuGet packages
I am about to create some Nuget packages and I am trying to find any recommendations for setting target frameworks for NuGet packages. Unfortunately I haven't found any good references for this (except...
View ArticleError occurred on restoring nuget package in visual studio "The path is not...
Facing issue while restoring the nuget packages in visual studio and getting the following error, 'The path is not of a legal form'. Below are the configuration details.Visual Studio 2019 -...
View ArticleConfigure an azure devops pipeline to pack and push a UWP library with...
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...
View ArticleNuGet confusion - can you win the game
Env: Powershell 7 on MacosI am trying to install grpc packages:install-Package Grpc.Net.Client It hangs "forever", so I try to installInstall-Package Google.ProtobufThen is comes up...
View ArticleAdding a NuGet Package Source that requires credentials with VS2015
I am attempting to setup a NuGet package source that requires credentials.Here are the instructionsI have the latest version of Visual Studio 2015 with everything up to date. I am aware of how to add a...
View ArticleNuGet Packages that make some transformations on web.config I want the...
I HAVE ENABLED WEB TRANSFORMS WHEN DEBUGGING ASP.NET APPS.Using this reference link: https://www.kongsli.net/2012/01/13/enabling-web-transforms-when-debugging-asp-net-apps/It is working fine.But the...
View Articlenuget package reference blue icon in visual studio 2017
For some reason in my console app, couple of the reference that I installed thru nuget shows the blue nuget icon. I can build my project locally, but not after I deploy my project to cloud. The error...
View ArticleNuget PrivateAssets not hiding dependencies on .Net Framework
I have a netstandard2.0 nugget package that has dependencies:<!-- Nugget Package dependencies --><ItemGroup><PackageReference Include="JetBrains.Annotations" Version="2020.1.0"...
View Article