Skip to content

Instantly share code, notes, and snippets.

View Phatsuo's full-sized avatar

James Katic Phatsuo

View GitHub Profile
dotnet build -r osx.10.12-x64
dotnet build -r win10-x64
dotnet publish -c release -r osx.10.12-x64
dotnet publish -c release -r win10-x64
robocopy.exe D:\Dev\UpWay2Late\Blog\UpWay2Late.Blog.ConsoleApp\src\UpWay2Late.Blog.ConsoleApp D:\Dev\UpWay2Late\Blog\UpWay2Late.Blog.ConsoleApp\src\UpWay2Late.Blog.ConsoleApp\bin\release\netstandard1.6\osx.10.12-x64\publish appsettings.json /R:1 /W:5
robocopy.exe D:\Dev\UpWay2Late\Blog\UpWay2Late.Blog.ConsoleApp\src\UpWay2Late.Blog.ConsoleApp D:\Dev\UpWay2Late\Blog\UpWay2Late.Blog.ConsoleApp\src\UpWay2Late.Blog.ConsoleApp\bin\release\netstandard1.6\win10-x64\publish appsettings.json /R:1 /W:5
pause
{
"version": "1.0.0-*",
"buildOptions": {
"emitEntryPoint": true
},
"dependencies": {
"NETStandard.Library": "1.6.1-preview1-24530-04",
"Microsoft.NETCore.Runtime.CoreCLR": "1.0.2",
"Microsoft.NETCore.DotNetHostPolicy": "1.0.1",
public static void Main(string[] args)
{
MainAsync(args).GetAwaiter().GetResult();
}
public static async Task MainAsync(string[] args)
{
await RunApplicationAsync(args);
Console.ReadLine();
{
"profiles": {
"UpWay2Late.Blog.ConsoleApp": {
"commandName": "Project",
"commandLineArgs": "goodbye"
}
}
}
public static void Main(string[] args)
{
var config = new ConfigurationBuilder().SetBasePath(Directory.GetCurrentDirectory()).AddJsonFile("appsettings.json").Build();
var world = config["world"];
var commandLineApplication = new CommandLineApplication
{
Name = "UpWay2Late.Blog.ConsoleApp.exe",
Description = "Sample app that can say hello or goodbye!",
FullName = ".NET Core Console App"
public static void Main(string[] args)
{
// BTW, be aware that this will throw an exception if the "appsettings.json" file is not found.
var config = new ConfigurationBuilder().SetBasePath(Directory.GetCurrentDirectory()).AddJsonFile("appsettings.json").Build();
var world = config["world"];
Console.WriteLine($"Hello {world}!");
Console.ReadLine();
}
{
"version": "1.0.0-*",
"buildOptions": {
"emitEntryPoint": true
},
"dependencies": {
"Microsoft.Extensions.Configuration.FileExtensions": "1.0.0",
"Microsoft.Extensions.Configuration.Json": "1.0.0",
"Microsoft.NETCore.App": {
{
"world": "Mars"
}
using System;
namespace UpWay2Late.Blog.ConsoleApp
{
public class Program
{
public static void Main(string[] args)
{
Console.WriteLine("Hello World!");
import * as React from "react";
import { connect } from "react-redux";
import { AuthorizationService, ILoginResponse } from "../../../services/authorizationService";
import { IAction, blockUi } from "../../../actions";
export interface ILoginProps {
dispatch: (action: IAction) => void,
/* other props */