Skip to content

Instantly share code, notes, and snippets.

@aelij
aelij / Startup.cs
Created Jan 7, 2016
Hosting ASP.NET 5 in a .csproj without DNX
View Startup.cs
using System.Linq;
using System.Reflection;
using AspNetNoDnx.Runtime;
using Microsoft.AspNet.Builder;
using Microsoft.AspNet.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.PlatformAbstractions;
View InstallNetFx461.ps1
#Requires -Version 3.0
<#
.DESCRIPTION
Install .Net Framework 4.6.1
#>
[CmdletBinding()]
Param(
@aelij
aelij / AwaitExtensions2.cs
Last active May 3, 2019
Improved TaskAwaiters for Silverlight that provide better stack traces for exceptions
View AwaitExtensions2.cs
using System;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using System.Threading;
using System.Threading.Tasks;
namespace MyApp
{
/// <summary>
/// Replaces Microsoft.Bcl.Async extensions and provides more detailed stack traces
You can’t perform that action at this time.