Fixes#6523
[Internal Review Topic](https://review.docs.microsoft.com/en-us/aspnet/core/security/app-secrets?view=aspnetcore-1.0&branch=pr-en-us-6528)
Tiny nits in the app secrets update: "or later" and a couple of comma splices.
What I wrote for another version of this was more explicit. I'm concerned that the current version doesn't tell devs exactly why/how `AddUserSecrets` is added, and it doesn't say that if `CreateDefaultBuilder` isn't used that they'll still need to do it manually.
Starting with ...
> \- Add the user secrets configuration source to the `Startup` constructor:
> Add the user secrets configuration source with a call to \[AddUserSecrets](/dotnet/api/microsoft.extensions.configuration.usersecretsconfigurationextensions.addusersecrets) in the `Startup` constructor:
>
> \[!code-csharp\[](app-secrets/samples/1.1/UserSecrets/Startup.cs?name=snippet_StartupConstructor&highlight=5-8)]
> ::: moniker-end
> ::: moniker range=">= aspnetcore-2.0"
> When a project calls \[CreateDefaultBuilder](/dotnet/api/microsoft.aspnetcore.webhost.createdefaultbuilder) to initialize a new instance of the host with preconfigured defaults, \[AddUserSecrets](/dotnet/api/microsoft.extensions.configuration.usersecretsconfigurationextensions.addusersecrets) is called when the \[EnvironmentName](/dotnet/api/microsoft.aspnetcore.hosting.ihostingenvironment.environmentname) is \[Development](/dotnet/api/microsoft.aspnetcore.hosting.environmentname.development):
>
> \[!code-csharp\[](app-secrets/samples/2.1/UserSecrets/Program.cs?name=snippet_CreateWebHostBuilder&highlight=2)]
>
> When `CreateDefaultBuilder` isn't called during host construction, add the user secrets configuration source with a call to \[AddUserSecrets](/dotnet/api/microsoft.extensions.configuration.usersecretsconfigurationextensions.addusersecrets) in the `Startup` constructor:
>
> \[!code-csharp\[](app-secrets/samples/1.1/UserSecrets/Startup.cs?name=snippet_StartupConstructor&highlight=5-8)]
> ::: moniker-end
Snippet the call to `CreateDefaultBuilder` to show it (line 2 is highlighted) ...
```csharp
#region snippet_CreateWebHostBuilder
public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
WebHost.CreateDefaultBuilder(args)
.UseStartup<Startup>();
#endregion
```
... and the sample naming issue remains ("1.1" and "2.1" instead of "1.x" and "2.x").
If anything here looks good, I can mod this branch to make additional updates. Otherwise, nevermind. Just spit-ball'in here.
* Create mvc2.md
Added temp file to house doc requested in #3809
* Initial outline of document
* Added Note for Special Tooling (VS 2017 Preview 3)
Will remove when Preview 3 is updated into Release
* Added Porting Link
* Added Core DI Sample
* added DI Section
* Added Storing Configuration Settings Section
* Adding Custom Settings samples
* part of static content
* static content section
* .net standard section
* Adding Edit in VS 2017 Image
* Samples for Startup
* startup and csproj section
* update image reference
* Updates to Migration Doc
changes per @scottaddie
* Final round of changes
Please review
* Edits
* Fix invalid xref link
* More edits
* More edits
* More edits
* More edits
* More edits
* More edits
* Move Content to different directory
* Update Code Sample Links
* change sample location
* ::
* Update Sample Filenames
* Minor edit
* Remove extra space
* More edits
* Move Static Folder
* update reference to image
* Update mvc2.md
* Minor tweaks
* Changes to sample file
* Change copy for Configuration Section
* Fix code formatting
* Remove extra line feed
* Remove extra line feed
* Fix 3xx/4xx/5xx Status Codes in aspnetcore folder
* Take out locality references in urls:
* change MSDN urls to docs.microsoft if possible
* Update aspnet-core-module.md
* Update iis.md
* Remove localization from external links
* meta data fix
* Revert "meta data fix"
This reverts commit ba36883476.
* meta data fix2
* test
* Update owin-oauth-20-authorization-server.md
* Update api-ref.md
* Update api-ref.md
* test
* test2
* quick test
* quick test
* quick test
* Revert "quick test"
This reverts commit 91b07a3df5.
* Revert "quick test"
This reverts commit e44af19bb4.
* Revert "quick test"
This reverts commit 6872a1921d.
* Removed links to old api site
* Fixed link to H1
* quick fix
* Fixed link to H1
* reverted to match master
* removed random character.
* removed random unix character
* removed random unix character
* removed random UTF character
* removed random UTF character
* removed random UTF character
* removed random UTF character
* removed random UTF character
* removed random UTF character
* Quick fixes
* Update CONTRIBUTING.md
* removed random UTF character
* removed random UTF character
* Update routing.md
* Update validation.md
* Update overview.md
* Update linuxproduction.md
* Update web-publishing-vs.md
* Update sociallogins.md
* Update cors.md
* Update cross-site-scripting.md
* Update overview.md
* Update key-encryption-at-rest.md
* Update adding-model.md
* Update new-field.md
* Update validation.md
* Update first-web-api.md
* Update nano-server.md
* Update your-first-mac-aspnet.md
* Update linuxproduction.md