Skip to content

Instantly share code, notes, and snippets.

Avatar

Luke Latham guardrex

View GitHub Profile
@guardrex
guardrex / Program.cs
Last active May 29, 2017
Manually updating code blocks without lang idents.
View Program.cs
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using static System.IO.SearchOption;
namespace AddLanguageIdentifiers
{
class Program
@guardrex
guardrex / Program.cs
Last active May 25, 2017
Remove uids from metadata docs (Script 2)
View Program.cs
using System;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using static System.IO.SearchOption;
namespace RemoveDuplicateUids
{
class Program
{
@guardrex
guardrex / Program.cs
Last active May 25, 2017
Remove uids from metadata docs (Script 1)
View Program.cs
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using static System.IO.SearchOption;
namespace RemoveDuplicateUids
{
class Program
@guardrex
guardrex / Program.cs
Last active May 23, 2017
Replace MSDN links
View Program.cs
using System;
using System.Collections.Generic;
using System.IO;
using System.Net;
using System.Text.RegularExpressions;
namespace UpdateMSDNLinks
{
class Program
{
View Program.cs
using System;
using System.Collections.Generic;
using System.IO;
using static System.IO.SearchOption;
namespace RemoveBlankLines
{
class Program
{
static void Main()
@guardrex
guardrex / Program.cs
Last active May 20, 2017
Remove Blank Lines
View Program.cs
using System;
using System.Collections.Generic;
using System.IO;
using static System.IO.SearchOption;
namespace RemoveBlankLines
{
class Program
{
static void Main()
View testselfcontained.csproj
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<AssemblyTitle>Test Self-contained Application</AssemblyTitle>
<TargetFramework>netcoreapp1.1</TargetFramework>
<WarningsAsErrors>true</WarningsAsErrors>
<PreserveCompilationContext>true</PreserveCompilationContext>
<AssemblyName>testselfcontained</AssemblyName>
<OutputType>Exe</OutputType>
<RuntimeIdentifiers>win10-x64</RuntimeIdentifiers>
View csproj-xml-vs-json.md
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <!-- Here is an XML inline comment -->
  <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
  <!--
      Here is a
      multiline
      XML comment
  -->
View Ben-Tells-All-SF.txt
ron_frown
@ben_a_adams I am told you know a thing or two about servicefabric
8:15:47 PM
guardrex
that's what I really want ... a crack at the markup at the very end of the Razor engine processing
8:15:52 PM
ben_a_adams
@guardrex http://stackoverflow.com/questions/14585184/issue-with-closure-variable-capture-in-c-sharp-expression
8:15:59 PM
guardrex
View netstandard-library-and-microsoft-netcore-app-info.txt
So here's the deal on `Microsoft.NETCore.App` and `NETStandard.Library` ...
Microsoft.NETCore.App: A set of .NET API's that are included in the default .NET Core application model.
NETStandard.Library: A set of standard .NET API's that are prescribed to be used and supported together. This includes all low level
API's that all .NET platforms must support.
from @mellinoe: "Use Microsoft.NETCore.App instead of NETStandard.Library [for shared framework publish]."
[See dotnet/cli/pull/1842.] This is the correct nuget package to be using to publish the shared framework."
It is the use of `"type": "platform"` that makes it a shared framework app. On standalone, one might be
You can’t perform that action at this time.