<?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
-->
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
<configSchema> | |
<sectionSchema name="system.webServer/httpPlatform"> | |
<attribute name="processPath" type="string" expanded="true"/> | |
<attribute name="arguments" type="string" expanded="true" defaultValue=""/> | |
<attribute name="startupTimeLimit" type="uint" defaultValue="10" validationType="integerRange" validationParameter="0,3600"/> <!-- in seconds --> | |
<attribute name="startupRetryCount" type="uint" defaultValue="10" validationType="integerRange" validationParameter="0,100"/> | |
<attribute name="rapidFailsPerMinute" type="uint" defaultValue="10" validationType="integerRange" validationParameter="0,100"/> | |
<attribute name="requestTimeout" type="timeSpan" defaultValue="00:02:00" validationType="timeSpanRange" validationParameter="0,2592000,60"/> | |
<attribute name="stdoutLogEnabled" type="bool" defaultValue="false" /> | |
<attribute name="stdoutLogFile" type="string" defaultValue="httpplatform-stdout" expanded="true"/> |
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.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using Microsoft.AspNetCore.Mvc.Razor; | |
using Microsoft.AspNetCore.Mvc.Razor.Directives; | |
using Microsoft.AspNetCore.Razor; | |
using Microsoft.AspNetCore.Razor.Chunks; | |
using Microsoft.AspNetCore.Razor.CodeGenerators; | |
using Microsoft.AspNetCore.Razor.Parser; | |
using Microsoft.AspNetCore.Razor.CodeGenerators.Visitors; |
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
/* | |
The purpose of this pattern is to consolidate all application | |
configuration into just ONE file and configure the app based | |
on the server/dev environment where it finds itself. It removes | |
the need for environment variables and/or JSON config files on | |
individual machines. | |
*/ | |
using System; | |
using Microsoft.AspNetCore.Builder; | |
using Microsoft.AspNetCore.Mvc; |
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": "0.1.0", | |
"command": "cmd", | |
"isShellCommand": true, | |
"showOutput": "silent", | |
"args": [ | |
"/c" | |
], | |
"tasks": [ | |
{ |
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
/* | |
This version of the minifier runs by minifying the markup prior to the | |
Razor engine performing any work on the file. It still runs at compile-time | |
as the other one does and is vastly simpler to implement. | |
*/ | |
using System.IO; | |
using Microsoft.AspNetCore.Mvc.Razor; | |
using Microsoft.AspNetCore.Mvc.Razor.Directives; | |
using Microsoft.AspNetCore.Razor; | |
using Microsoft.AspNetCore.Razor.CodeGenerators; |
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
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 |
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
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 |
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
<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> |
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; | |
using System.Collections.Generic; | |
using System.IO; | |
using static System.IO.SearchOption; | |
namespace RemoveBlankLines | |
{ | |
class Program | |
{ | |
static void Main() |
OlderNewer