Skip to content
Advertisement

Tag: .net-core

How to use `PublishSingleFile` option for `dotnet` and macOS?

I use dotnet on macOS and want to build an application for Linux. To achive this, I use the following commands: According to this article, the dotnet command should support a command-line flag to pack the application into a single executable: My question is two-fold: Why is there no PublishSingleFile option for dotnet on macOS? Why does dotnet both create

While trying to retrieve the AccesToken using HttpClient I am getting an error

While trying to retrieve the Acces Token from a windows server using HttpClient I am getting an error: “GSSAPI operation failed with error – An invalid status code was supplied (SPNEGO cannot find mechanisms to negotiate).” system.ComponentModel.win32Exception is throwing as GSSAPI operation failed with error – An invalid status code was supplied (SPNEGO cannot find mechanisms to negotiate) The above

Add SpecFlow tests to .NET Core project in VSCode

I’ve created a .NET Core project and I’m using VSCode on Linux. I installed SpecFlow with dotnet add package SpecFlow but I don’t think there is IDE integration yet. Can I use the SpecFlow nuget package from the command line to create a test? Answer SpecFlow 3.0 will have .NET Core support. A preview is currently available. See blog post:

How to create a navigation menu in dotnet application?

I have created a console application which have a menu that allow me to navigate between the menu items. I handle the navigation logic in this method: here the full class. Now on windows all works well, but when I run this application on my linux with systemd I get: Unhandled Exception: System.InvalidOperationException: Cannot read key when either application does

Advertisement