GitHub Actions: automatically push NuGet package
I'm trying to configure my Github repository in order to automatically have a NuGet package built and pushed to both nuget.org and github.com. So what I want is that each time a commit is made on the...
View Articlenuget with visual studio community
I am starting a new coding job with a new client.The problem I am having is that a lot of issues with namespaces that can not be found or maybe missing directives or an assembly reference. This, I...
View ArticleHow should I publish my projects as NuGet packages considering dependencies...
The problem:I have a toolkit consisting of many packages, the source is just one big solution containing the package sources, unit tests and demos.Each package project needs to be a separate NuGet...
View ArticleHow to get rid of this warning of EF in Visual Studio 2019: A version of...
I just added EntityFramework 6.4.4 to the project with the command:Install-Package EntityFramework -Version:6.4.4And then, I enabled migrations. Since then, every time I execute an EF command, I get...
View ArticleRegex to parse package name and version number from nuget package filenames
I have a directory of nuget packages that I've downloaded from nuget.org. I'm trying to create a regex that will parse out the package name and version number from the filename. It doesn't seem...
View ArticleCan an existing .NET .exe be re-packaged as a .NET tool?
I have seen several articles including Tutorial: Create a .NET tool using the .NET CLI, which explain how to create a console application, package it as a tool, and then install it with the dotnet...
View ArticleHow to make a separate nuget packages folder for each necessary project in...
I have a lot of projects in one solution, for example the structure is as below:Solution "My Projects"Solution Folder #1Project #1Project #2Project #3Solution Folder #2Solution Folder #3Project...
View ArticleCan't update 4 NuGet packages due to error "Could not find a part of the...
I can't update any/all of the following packages in my solution:I get the error:I've tried reinstalling all packages via NuGet console but still get the same error.I'm using VS 2022 64bit v 17.0.4....
View ArticleHow can I fail a .NET build if a project references a NuGet package with...
I can find most vulnerable packages using dotnet list package --vulnerable but to put that in a build step and fail the build would require some text parsing. Is there some easier way, such as a...
View ArticleAfter migrating from .NET Core 2.1 to .NET Core 3.1, publish has a problem
After migrating my project from .NET Core 2.1 to .NET Core 3.1, everything works fine but when publishing the project, Iget this error:System.Runtime.CompilerServices.Unsafe doesn't support...
View ArticleAzure functions publish does not copy all files
When I publish my azure functions to azure not all of my referenced packages are being copied. I thus get an error stating that a specific file (Microsoft.CodeAnalysis.dll) cannot be found.I have made...
View ArticleCommand Line Parser Library - Boolean Parameter
I try to pass a boolean parameter to a console application and process the value with the Command Line Parser Library.[Option('c', "closeWindow", Required = true, HelpText = "Close the window.")]public...
View Articleinstalling itext 7 for the first time and trying out. It looks like a dll is...
I get the error; You must add a reference to assembly 'itext.commons, Version=7.2.1.0, but there is no such file included in the nuget package for iText7.2.1.I found a similar file...
View ArticlePage Break with DinkToPDF
I'm using the DinkToPDFNuGet and I'd like to add a new page break after the first page. Is this possible? I know it would have to be done within the HTML, but providing an element with 100% height does...
View ArticleNuget Package Versioning - Max Integer for Major/Minor/Patch?
Is there an upper limit to the major/minor/patch components of a Nuget package version?For instance, can I create MyPackage.1.99999.99999 and upload to Artifactory or Nuget.org and clients will have no...
View ArticleHow to embed Nuget in WPF Application
I have a WPF Client application project (.Net Framework v4.5.2+). There are no pre-requisites at Client end to use the product. All the external references are stored in a folder and MSI installer...
View ArticleMSBuild and package restore with packages.config
Is it possible to restore packages during the build using MSBuild only if projects are still using packages.config?
View ArticleHow to store data in a class library/NuGet package?
I am currently creating a class library to analyze the syntactic correctness of Italian fiscal codes. I want to include it in a NuGet package and publish it. I have a main static class and a bunch of...
View ArticleCould not load file or assembly 'System.Runtime' after install...
how solve"Could not load file or assembly 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified."that...
View ArticleHow to restore visual studio nuget packages?
I cloned and loaded a visual studio project .net 4.8. I see all these references hereI tried a package restore and I getAll packages are already installed and there is nothing to restore.I tried...
View Article