Manually setup a NuGet package
I wanted to use Window.Forms, in particular charts within .Net 5.Therefore, I manually downloaded "system.windows.forms.datavisualization.1.0.0-prerelease.20110.1.nupkg" from the NuGet website, which...
View ArticleFody - System.Security.SecurityException: Invalid assembly public key
I just tried adding a Fody NuGet package to my C# project and now anytime I try to build I get the following error.error MSB4018: The "ResolveAssemblyReference" task failed unexpectedly.error MSB4018:...
View ArticleInstall nuget windows forms package for using chart in .Net 5
Using vs 2019, I locally installed the NuGet package "system.windows.forms.datavisualization.1.0.0-prerelease.20110.1.nupkg" from Microsoft to use the Windows Forms chart function under .NET 5.The...
View ArticleCrossFirebasePushNotification.Current.RegisterForPushNotifications();...
to do push notifications in my Xamarin Forms App, I am using the CrossGeeks FirebasePushNotification Plugin. My android setup is working alright, but for the iOS app, when I try to run the app, the...
View ArticleSystem.Data.SqlClient Package is installed but isnt recognized as a Using...
Like the title says, I've installed both the System and Microsoft .Data.SqlClient SQL packages, and my code only recognizes the Microsoft one, but it doesn't recognize the using System.Data.SqlClient;...
View ArticleNuGet Package manager stuck on "Retrieving information..." on VS 2013
Using VS 2013 with NuGet Package Manager installed, I can view all Installed packages, but when I pick Updates or Online, I get an endless busy indicator showing "Retrieving information..."I've...
View Articledotnet restore with private nuget server fails in docker-compose
The dotnet restore step is failing only from docker-compose, and only when I use a private nuget server in addition to the public server. It seems to be looking on my private server for public...
View ArticleInclude my Nuget README in my Nuget Package
I maintain a few tiny Nuget Packages.I have a Nuget README file in the git repository, and the .nupkg file is auto-built by VS, based on the "Package" config, stored in the .csproj file.Whenever I need...
View ArticleHow to include tags in NuGet package using CLI only
I want to add Tags for a nuget package.I do NOT want to use a separate .nuspec file (maintenance), I'm only using the csproj for packing.I've tried setting it using nuget pack -Properties Tags=demo but...
View ArticleIs it safe and fine if we add .Net Core packages inside asp.net projects
I am working on developing a remote event receiver for a SharePoint online site, and the remote event receiver is mainly an Asp.NET Web service project.. but to be able to integrate it with Azure Key...
View ArticleWhy can't I add my NuGet package to my app in Visual Studio?
I'm using Visual Studio for Mac on macOS Big Sur (11.2.3) to try to create a cross-platform NuGet package encapsulating common logic to be added to some Xamarin.Forms mobile apps.I begin by creating a...
View ArticleEntityFramework.Core.Tools nuget package installation error: "The process...
While installing the package Microsoft.EntityFrameworkCore.Tools for using EF in my project using Nuget, I'm persistently running into the below error. Notice I didn't get any error while installing...
View ArticleGithub Actions: Push nuget xamarin.forms package
I'm trying to configure a GitHub action that builds my multi-target Xamarin.Forms plugin and pushes the package to GitHub and NuGet. Pushing the package to GitHub and NuGet shouldn't be much of a...
View ArticleProblem with scaffolding in VisualStudio 2019 ASP.Net Core 5.0
When I try to scaffold the files for Identity in ASP.Net I get an error message.I have seen the answers to previous questions like this. And all my packages are up to date. I don't know what I'm doing...
View ArticleMicrosoft.SqlServer.Types exception on my dev machine
In my team, a dev recently updated our project to use EF6.All my colleagues can run the projet whitout problems, but in my machine, I'm getting the error:"Spatial types and functions are not available...
View ArticleNuGet PackageManager.InstallPackageAsync() throws NullReferenceException
I'm working on a plug-in management system built on top of Nuget similar to Chocolatey, PowerShell Gallery etc.I want to use the newer V3 libraries rather then the deprecated V2 Nuget.Core library used...
View ArticleNeed to copy the content files in nuspec to the output directory
I have a nuget package published that contains exe, other libraries and content files. The content files are templates that help in create the final output based on the template(s). Unfortunately, when...
View ArticleNuGet package problems while building DirectX Graphics Samples
I've encountered NuGet problems while building DirectX-Graphics-SamplesThe error occurs with many projects, here is an example:NuGet Package restore failed for project D3D12Multithreading: Unable to...
View ArticleDocker-compose build issue because off local package
I have a micro service project developed in .NET5.I'm trying to build a docker compose file. Each time, the compiler give me the issue back that the Play.Common package can not be found.The package is...
View ArticleMSBuild props file does not get evaluated when imported by a nuget package,...
I have created a number of nuget packages with msbuild targets that help me take care of common boilerplate in my .NET projects. Here I am working on a simple .props file which is aimed to make the...
View Article