- ensure current project runs/compiles
- Add template.json to project in same directory as sln in folder .template.config
- for example, Web\web.sln will have a new directory Web.template.config\template.json
- From PS - dotnet new --install "C:\jobs\PATH TO FOLDER CONTAINING .template.config"
- i.e. dotnet new -- install "c:\jobs\web" -- since .template.config exists in c:\jobs\web
- run -- dotnet new starterWeb4 -n NAMESPACE_NEWPROJECT
- make sure to run in directory where you'd like it created
This file contains 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 Microsoft.AspNetCore.Components; | |
using System; | |
using System.Threading.Tasks; | |
using Microsoft.Extensions.Configuration; | |
using Microsoft.AspNetCore.Components.Web; | |
using Microsoft.AspNetCore.SignalR.Client; | |
namespace UI | |
{ | |
public partial class DisplayResults : IDisposable |
This file contains 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; | |
using System.Data.Common; | |
using System.Data.SqlClient; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using Microsoft.Extensions.Diagnostics.HealthChecks; | |
namespace YOUR_NAMESPACE_HERE | |
{ | |
public class SqlExamineResultHealthCheck : IHealthCheck |
This file contains 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; | |
using System.Collections.Generic; | |
using System.Data.SqlClient; | |
using System.Linq; | |
using System.Threading.Tasks; | |
namespace Utilities.Sql | |
{ | |
public class HistoryTableUtilities | |
{ |
This file contains 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
#https://github.com/Microsoft/mssql-scripter | |
#step 1 run this script to pull out all data to a local directory | |
#step 2 run result files through GenerateScripts application to strip out date time for system controlled fields | |
#step 3 save / reinsert using standard script | |
mssql-scripter -S localhost -d databaseName -P PASSWORD --data-only --include-objects dbo.TableName > './001 - TableName.sql' |
This file contains 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 { Alert, Checkbox, FormGroup } from 'react-bootstrap'; | |
import Dropzone from 'react-dropzone'; | |
import * as _ from 'lodash'; | |
// tslint:disable-next-line:typedef | |
public static dropZoneFileInput(field) { | |
const files = field.input.value; | |
return ( | |
<div> |
This file contains 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.Collections.Generic; | |
using AutoMapper; | |
using Microsoft.AspNetCore.Mvc; | |
namespace Web.Utilities | |
{ | |
/// <summary> | |
/// Check the response of a http requests | |
/// </summary> | |
public class HttpResponseChecking |
This file contains 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 Newtonsoft.Json; | |
namespace Web.DataTransferObjects.Utilities | |
{ | |
/// <summary> | |
/// Azure signing key structure | |
/// </summary> | |
public class AzureSigningKey | |
{ | |
/// <summary> |
This file contains 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; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using Docker.DotNet; | |
using Docker.DotNet.Models; | |
using Microsoft.WindowsAzure.Storage; | |
using Microsoft.WindowsAzure.Storage.Blob; |
This file contains 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
# EditorConfig is awesome:http://EditorConfig.org | |
# top-most EditorConfig file | |
root = true | |
# don't use tabs for indentation. | |
[*] | |
indent_style = space | |
# (Please don't specify an indent_size here; that has too many unintended consequences.) |
NewerOlder