Created
November 11, 2019 19:07
-
-
Save karthik20522/7282e02e8b42ee4d004758ca4d2c14de to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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