-
Notifications
You must be signed in to change notification settings - Fork 25.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
App Model topic+sample update (#21977)
- Loading branch information
Showing
36 changed files
with
40,153 additions
and
250 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
aspnetcore/mvc/controllers/application-model/sample/global.json
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
aspnetcore/mvc/controllers/application-model/sample/src/AppModelSample/.bowerrc
This file was deleted.
Oops, something went wrong.
93 changes: 3 additions & 90 deletions
93
aspnetcore/mvc/controllers/application-model/sample/src/AppModelSample/AppModelSample.csproj
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,94 +1,7 @@ | ||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" /> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netcoreapp1.0</TargetFramework> | ||
<PreserveCompilationContext>true</PreserveCompilationContext> | ||
<AssemblyName>AppModelSample</AssemblyName> | ||
<OutputType>Exe</OutputType> | ||
<PackageTargetFallback Condition=" '$(TargetFramework)' == 'netcoreapp1.0' ">$(PackageTargetFallback);dotnet5.6;portable-net45+win8</PackageTargetFallback> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Compile Include="**\*.cs" /> | ||
<EmbeddedResource Include="**\*.resx" /> | ||
<EmbeddedResource Include="compiler\resources\**\*" /> | ||
<Content Include="wwwroot;**\*.cshtml;appsettings.json;web.config"> | ||
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory> | ||
</Content> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.NET.Sdk"> | ||
<Version>1.0.0-alpha-20161104-2</Version> | ||
<PrivateAssets>All</PrivateAssets> | ||
</PackageReference> | ||
<PackageReference Include="Microsoft.NET.Sdk.Web"> | ||
<Version>1.0.0-alpha-20161104-2</Version> | ||
<PrivateAssets>All</PrivateAssets> | ||
</PackageReference> | ||
<PackageReference Include="Microsoft.NETCore.App"> | ||
<Version>1.0.1</Version> | ||
</PackageReference> | ||
<PackageReference Include="Microsoft.AspNetCore.Diagnostics"> | ||
<Version>1.0.0</Version> | ||
</PackageReference> | ||
<PackageReference Include="Microsoft.AspNetCore.Mvc"> | ||
<Version>1.0.1</Version> | ||
</PackageReference> | ||
<PackageReference Include="Microsoft.AspNetCore.Routing"> | ||
<Version>1.0.1</Version> | ||
</PackageReference> | ||
<PackageReference Include="Microsoft.AspNetCore.Server.IISIntegration"> | ||
<Version>1.0.0</Version> | ||
</PackageReference> | ||
<PackageReference Include="Microsoft.AspNetCore.Server.Kestrel"> | ||
<Version>1.0.1</Version> | ||
</PackageReference> | ||
<PackageReference Include="Microsoft.AspNetCore.StaticFiles"> | ||
<Version>1.0.0</Version> | ||
</PackageReference> | ||
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables"> | ||
<Version>1.0.0</Version> | ||
</PackageReference> | ||
<PackageReference Include="Microsoft.Extensions.Configuration.Json"> | ||
<Version>1.0.0</Version> | ||
</PackageReference> | ||
<PackageReference Include="Microsoft.Extensions.Logging"> | ||
<Version>1.0.0</Version> | ||
</PackageReference> | ||
<PackageReference Include="Microsoft.Extensions.Logging.Console"> | ||
<Version>1.0.0</Version> | ||
</PackageReference> | ||
<PackageReference Include="Microsoft.Extensions.Logging.Debug"> | ||
<Version>1.0.0</Version> | ||
</PackageReference> | ||
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions"> | ||
<Version>1.0.0</Version> | ||
</PackageReference> | ||
<PackageReference Include="Microsoft.VisualStudio.Web.BrowserLink.Loader"> | ||
<Version>14.0.0</Version> | ||
</PackageReference> | ||
</ItemGroup> | ||
<Project Sdk="Microsoft.NET.Sdk.Web"> | ||
|
||
<ItemGroup> | ||
<DotNetCliToolReference Include="BundlerMinifier.Core"> | ||
<Version>2.2.301</Version> | ||
</DotNetCliToolReference> | ||
</ItemGroup> | ||
|
||
<PropertyGroup Condition=" '$(Configuration)' == 'Release' "> | ||
<DefineConstants>$(DefineConstants);RELEASE</DefineConstants> | ||
<PropertyGroup> | ||
<TargetFramework>netcoreapp3.1</TargetFramework> | ||
</PropertyGroup> | ||
|
||
<Target Name="PrepublishScript" BeforeTargets="Publish" Condition=" '$(IsCrossTargetingBuild)' != 'true' "> | ||
<Exec Command="bower install" /> | ||
<Exec Command="dotnet bundle" /> | ||
</Target> | ||
|
||
<Target Name="PostpublishScript" AfterTargets="Publish" Condition=" '$(IsCrossTargetingBuild)' != 'true' "> | ||
<Exec Command="dotnet publish-iis --publish-folder $(TargetDir) --framework $(TargetFrameworkIdentifier),Version=$(TargetFrameworkVersion)" /> | ||
</Target> | ||
|
||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||
</Project> |
23 changes: 0 additions & 23 deletions
23
aspnetcore/mvc/controllers/application-model/sample/src/AppModelSample/AppModelSample.xproj
This file was deleted.
Oops, something went wrong.
20 changes: 11 additions & 9 deletions
20
aspnetcore/mvc/controllers/application-model/sample/src/AppModelSample/Program.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,26 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using Microsoft.AspNetCore.Hosting; | ||
using Microsoft.Extensions.Configuration; | ||
using Microsoft.Extensions.Hosting; | ||
using Microsoft.Extensions.Logging; | ||
|
||
namespace AppModelSample | ||
{ | ||
public class Program | ||
{ | ||
public static void Main(string[] args) | ||
{ | ||
var host = new WebHostBuilder() | ||
.UseKestrel() | ||
.UseContentRoot(Directory.GetCurrentDirectory()) | ||
.UseIISIntegration() | ||
.UseStartup<Startup>() | ||
.Build(); | ||
|
||
host.Run(); | ||
CreateHostBuilder(args).Build().Run(); | ||
} | ||
|
||
public static IHostBuilder CreateHostBuilder(string[] args) => | ||
Host.CreateDefaultBuilder(args) | ||
.ConfigureWebHostDefaults(webBuilder => | ||
{ | ||
webBuilder.UseStartup<Startup>(); | ||
}); | ||
} | ||
} |
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
9 changes: 9 additions & 0 deletions
9
.../mvc/controllers/application-model/sample/src/AppModelSample/appsettings.Development.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"Logging": { | ||
"LogLevel": { | ||
"Default": "Information", | ||
"Microsoft": "Warning", | ||
"Microsoft.Hosting.Lifetime": "Information" | ||
} | ||
} | ||
} |
10 changes: 5 additions & 5 deletions
10
aspnetcore/mvc/controllers/application-model/sample/src/AppModelSample/appsettings.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
{ | ||
"Logging": { | ||
"IncludeScopes": false, | ||
"LogLevel": { | ||
"Default": "Debug", | ||
"System": "Information", | ||
"Microsoft": "Information" | ||
"Default": "Information", | ||
"Microsoft": "Warning", | ||
"Microsoft.Hosting.Lifetime": "Information" | ||
} | ||
} | ||
}, | ||
"AllowedHosts": "*" | ||
} |
10 changes: 0 additions & 10 deletions
10
aspnetcore/mvc/controllers/application-model/sample/src/AppModelSample/bower.json
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
...e/mvc/controllers/application-model/sample/src/AppModelSample/runtimeconfig.template.json
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
aspnetcore/mvc/controllers/application-model/sample/src/AppModelSample/web.config
This file was deleted.
Oops, something went wrong.
86 changes: 86 additions & 0 deletions
86
...trollers/application-model/sample/src/AppModelSample/wwwroot/css/open-iconic/FONT-LICENSE
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
SIL OPEN FONT LICENSE Version 1.1 | ||
|
||
Copyright (c) 2014 Waybury | ||
|
||
PREAMBLE | ||
The goals of the Open Font License (OFL) are to stimulate worldwide | ||
development of collaborative font projects, to support the font creation | ||
efforts of academic and linguistic communities, and to provide a free and | ||
open framework in which fonts may be shared and improved in partnership | ||
with others. | ||
|
||
The OFL allows the licensed fonts to be used, studied, modified and | ||
redistributed freely as long as they are not sold by themselves. The | ||
fonts, including any derivative works, can be bundled, embedded, | ||
redistributed and/or sold with any software provided that any reserved | ||
names are not used by derivative works. The fonts and derivatives, | ||
however, cannot be released under any other type of license. The | ||
requirement for fonts to remain under this license does not apply | ||
to any document created using the fonts or their derivatives. | ||
|
||
DEFINITIONS | ||
"Font Software" refers to the set of files released by the Copyright | ||
Holder(s) under this license and clearly marked as such. This may | ||
include source files, build scripts and documentation. | ||
|
||
"Reserved Font Name" refers to any names specified as such after the | ||
copyright statement(s). | ||
|
||
"Original Version" refers to the collection of Font Software components as | ||
distributed by the Copyright Holder(s). | ||
|
||
"Modified Version" refers to any derivative made by adding to, deleting, | ||
or substituting -- in part or in whole -- any of the components of the | ||
Original Version, by changing formats or by porting the Font Software to a | ||
new environment. | ||
|
||
"Author" refers to any designer, engineer, programmer, technical | ||
writer or other person who contributed to the Font Software. | ||
|
||
PERMISSION & CONDITIONS | ||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of the Font Software, to use, study, copy, merge, embed, modify, | ||
redistribute, and sell modified and unmodified copies of the Font | ||
Software, subject to the following conditions: | ||
|
||
1) Neither the Font Software nor any of its individual components, | ||
in Original or Modified Versions, may be sold by itself. | ||
|
||
2) Original or Modified Versions of the Font Software may be bundled, | ||
redistributed and/or sold with any software, provided that each copy | ||
contains the above copyright notice and this license. These can be | ||
included either as stand-alone text files, human-readable headers or | ||
in the appropriate machine-readable metadata fields within text or | ||
binary files as long as those fields can be easily viewed by the user. | ||
|
||
3) No Modified Version of the Font Software may use the Reserved Font | ||
Name(s) unless explicit written permission is granted by the corresponding | ||
Copyright Holder. This restriction only applies to the primary font name as | ||
presented to the users. | ||
|
||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font | ||
Software shall not be used to promote, endorse or advertise any | ||
Modified Version, except to acknowledge the contribution(s) of the | ||
Copyright Holder(s) and the Author(s) or with their explicit written | ||
permission. | ||
|
||
5) The Font Software, modified or unmodified, in part or in whole, | ||
must be distributed entirely under this license, and must not be | ||
distributed under any other license. The requirement for fonts to | ||
remain under this license does not apply to any document created | ||
using the Font Software. | ||
|
||
TERMINATION | ||
This license becomes null and void if any of the above conditions are | ||
not met. | ||
|
||
DISCLAIMER | ||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT | ||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE | ||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | ||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL | ||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM | ||
OTHER DEALINGS IN THE FONT SOFTWARE. |
Oops, something went wrong.