Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
I may be slow to respond.

Nate McMaster natemcmaster

💭
I may be slow to respond.
View GitHub Profile
View README.md

Consider this following example:

An implementation of ALC is setup to load CommonAssembly, Version=2.0.0.0, InformationalVersion=2.0.0-beta.

The host in an app that this on the TPA: CommonAssembly, Version=2.0.0.0, InformationalVersion = 2.0.0-alpha.

// in a test app that depends on CommonAssembly "2.0.0-alpha"
public class HostProgram
{
@natemcmaster
natemcmaster / Program.cs
Last active Aug 29, 2017
CustomCandidateNamingService
View Program.cs
using System;
using Microsoft.EntityFrameworkCore.Scaffolding.Internal;
using Microsoft.Extensions.DependencyInjection;
namespace ConsoleApplication
{
public class Program
{
public static void Main(string[] args)
{
@natemcmaster
natemcmaster / README.md
Created Jun 18, 2016
ASP.NET Core Directories
View README.md

Development-time

src/
  Web/  <-- Microsoft.AspNetCore.Hosting.IHostingEnvironment.ContentRootPath, System.IO.Directory.GetCurrentDirectory()

    project.json
    web.config
    
    wwwroot/ <--  Microsoft.AspNetCore.Hosting.IHostingEnvironment.WebRootPath
      app.js
@natemcmaster
natemcmaster / Program.cs
Created Jun 18, 2016
Saving/reading guid as string
View Program.cs
using System;
using Microsoft.Data.Sqlite;
using static System.Console;
namespace ConsoleApplication
{
public class Program
{
public static void Main(string[] args)
{
@natemcmaster
natemcmaster / preview_vnext.md
Last active Jun 1, 2016
EF design time tools
View preview_vnext.md

How EF design-time tooling will work

Package structure

Microsoft.EntityFrameworkCore.Tools
├── lib
│   ├── netcoreapp1.0
│   |   └── dotnet-ef.dll
|   ├── net451
View preview1.md

Preview 1: How EF design-time tooling works

Package structure

Microsoft.EntityFrameworkCore.Tools
├── lib
│   ├── net451
│   │   └── Microsoft.EntityFrameworkCore.Tools.dll <-- PowerShell OperationExecutor is here
@natemcmaster
natemcmaster / runtime.json
Created May 19, 2016
Microsoft.NETCore.Platforms
View runtime.json
{
"runtimes": {
"base": {},
"any": {
"#import": ["base"]
},
"win": {
"#import": ["any"]
View clear-nuget.cmd
REM npm i -g rimraf
REM https://github.com/isaacs/rimraf
rimraf %USERPROFILE%\.nuget\ %LOCALAPPDATA%\NuGet\v3-cache\ %LOCALAPPDATA%\NuGet\Cache\
View index.html
<html lang="en-US" xmlns="http://www.w3.org/1999/xhtml" xmlns:ns="http://schemas.microsoft.com/appx/2010/manifest" xmlns:ns2="http://schemas.microsoft.com/appx/2013/manifest"><head><title>Windows App Certification Kit - Test Results</title><style type="text/css">
BODY, TH, TD { font-family: Segoe UI; font-size: 10.5pt; color: #2a2a2a; margin: 0 18pt; padding: 0; }
.titleLarge { margin-top: 9pt; font-family: Segoe UI Light; font-size: 25pt; font-weight: normal; }
.titleItem { font-family: Segoe UI Light; font-weight: bold; font-size: 15pt; margin: 0 5pt 0 5pt; }
.overall { font-size: 20pt; font-weight: bold; }
.overall p { margin: 3pt; font-size: 10.5pt; font-weight: normal; }
.ulMessagesOverflow { list-style-type: circle; background-color: #cccccc; border-color: black; height: 150px; overflow-y: scroll;overflow-x: hidden;}
.ulMessagesNoOverflow { list-style-type: circle; background-color: #cccccc; border-color: black;}
ul.ulMessag
@natemcmaster
natemcmaster / NuGet.Config
Last active Mar 7, 2016
no httponly cookies :(
View NuGet.Config
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<!--To inherit the global NuGet package sources remove the <clear/> line below -->
<clear />
<add key="AspNetVNext" value="https://www.myget.org/F/aspnetcidev/api/v3/index.json" />
<add key="api.nuget.org" value="https://api.nuget.org/v3/index.json" />
</packageSources>
</configuration>
You can’t perform that action at this time.