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
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 |
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
{ | |
"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", |
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
public static void Main(string[] args) | |
{ | |
MainAsync(args).GetAwaiter().GetResult(); | |
} | |
public static async Task MainAsync(string[] args) | |
{ | |
await RunApplicationAsync(args); | |
Console.ReadLine(); |
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
{ | |
"profiles": { | |
"UpWay2Late.Blog.ConsoleApp": { | |
"commandName": "Project", | |
"commandLineArgs": "goodbye" | |
} | |
} | |
} |
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
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" |
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
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(); | |
} |
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
{ | |
"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": { |
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
{ | |
"world": "Mars" | |
} |
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
using System; | |
namespace UpWay2Late.Blog.ConsoleApp | |
{ | |
public class Program | |
{ | |
public static void Main(string[] args) | |
{ | |
Console.WriteLine("Hello World!"); |
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
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 */ |
NewerOlder