Skip to content

Instantly share code, notes, and snippets.

@karthik20522
Created November 11, 2019 19:07
Show Gist options
  • Save karthik20522/7282e02e8b42ee4d004758ca4d2c14de to your computer and use it in GitHub Desktop.
Save karthik20522/7282e02e8b42ee4d004758ca4d2c14de to your computer and use it in GitHub Desktop.
# Create application
mkdir dnsvc
cd dnsvc
dotnet new console
# Program.cs
using System;
using System.Threading;
namespace dnsvc
{
class Program
{
static void Main(string[] args)
{
//do something
Console.ReadLine();
}
}
}
# Restore dependencies
dotnet restore
# Publish to a local bin sub directory
dotnet publish --configuration Release --output bin
# Run local to verify all is good
dotnet ./bin/dnsvc.dll
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment