Giter VIP home page Giter VIP logo

consoleworkerfs's Introduction

ConsoleWorkerfs

Console App as a Background Worker

This console application is designed to support long-running tasks operating in the background. Developed using F# and targeting .NET 8, it provides an easy-to-manage and execute solution for specific background processes.

How To Run

To run the application, navigate to the project's root directory and execute the following command in your terminal:

$ dotnet run

Ensure you have the .NET 8 SDK installed on your machine. This command compiles and runs the application directly from the source code, which is ideal for development and testing purposes.

How To Build

To build a self-contained executable suitable for deployment, run the following command:

$ dotnet publish -c Release -r win-x64 --self-contained true -p:PublishDir=.\publish

This command creates a self-contained executable, reducing its size and making it easier to distribute. Before running this command, verify that your environment is set up with .NET 8 SDK.

Creating a Shortcut for Windows Console Host

In Windows 11, where Windows Terminal is the default terminal application, creating a shortcut to launch the application via Windows Console Host can be particularly beneficial. This approach ensures compatibility and provides a more controlled environment for applications that may require specific console behaviors not supported by Windows Terminal.

To easily launch the application from anywhere using the Windows Console Host, create a shortcut with the following settings:

  • Link: %windir%\System32\conhost.exe cmd.exe /c .\publish\ConsoleWorkerfs.exe & pause
  • Working Folder: Leave this empty or specify the path to your application's working directory.

This shortcut method is especially useful for running the application in environments where the newer terminal features of Windows Terminal are not required or where the traditional console host's behavior is preferred. It offers a straightforward way to maintain the use of traditional console applications within the modern Windows 11 operating system.

reference

dfederm / GenericHostConsoleApp

consoleworkerfs's People

Contributors

callmekohei avatar

Stargazers

Darran Hayes avatar Daniel Blendea avatar Jeremy Abbott avatar  avatar Andrii Chebukin avatar

Watchers

James Cloos avatar  avatar

Forkers

delneg

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.