diff --git a/aspnetcore/client-side/using-gulp.md b/aspnetcore/client-side/using-gulp.md index 8583ad79f9..9f78e7ee74 100644 --- a/aspnetcore/client-side/using-gulp.md +++ b/aspnetcore/client-side/using-gulp.md @@ -80,7 +80,7 @@ gulp.task("min:css", () => { }); gulp.task("min", gulp.series(["min:js", "min:css"])); - + // A 'default' task is required by Gulp v4 gulp.task("default", gulp.series(["min"])); ``` @@ -121,56 +121,56 @@ If you haven't already created a new Web app, create a new ASP.NET Web Applicati ```javascript /// "use strict"; - + const gulp = require("gulp"), rimraf = require("rimraf"), concat = require("gulp-concat"), cssmin = require("gulp-cssmin"), uglify = require("gulp-uglify"); - + const paths = { webroot: "./wwwroot/" }; - + paths.js = paths.webroot + "js/**/*.js"; paths.minJs = paths.webroot + "js/**/*.min.js"; paths.css = paths.webroot + "css/**/*.css"; paths.minCss = paths.webroot + "css/**/*.min.css"; paths.concatJsDest = paths.webroot + "js/site.min.js"; paths.concatCssDest = paths.webroot + "css/site.min.css"; - + gulp.task("clean:js", done => rimraf(paths.concatJsDest, done)); gulp.task("clean:css", done => rimraf(paths.concatCssDest, done)); gulp.task("clean", gulp.series(["clean:js", "clean:css"])); - gulp.task("min:js", () => { - return gulp.src([paths.js, "!" + paths.minJs], { base: "." }) - .pipe(concat(paths.concatJsDest)) - .pipe(uglify()) - .pipe(gulp.dest(".")); - }); + gulp.task("min:js", () => { + return gulp.src([paths.js, "!" + paths.minJs], { base: "." }) + .pipe(concat(paths.concatJsDest)) + .pipe(uglify()) + .pipe(gulp.dest(".")); + }); - gulp.task("min:css", () => { - return gulp.src([paths.css, "!" + paths.minCss]) - .pipe(concat(paths.concatCssDest)) - .pipe(cssmin()) - .pipe(gulp.dest(".")); - }); + gulp.task("min:css", () => { + return gulp.src([paths.css, "!" + paths.minCss]) + .pipe(concat(paths.concatCssDest)) + .pipe(cssmin()) + .pipe(gulp.dest(".")); + }); - gulp.task("min", gulp.series(["min:js", "min:css"])); - - // A 'default' task is required by Gulp v4 - gulp.task("default", gulp.series(["min"])); + gulp.task("min", gulp.series(["min:js", "min:css"])); + + // A 'default' task is required by Gulp v4 + gulp.task("default", gulp.series(["min"])); ``` 3. In **Solution Explorer**, right-click *gulpfile.js*, and select **Task Runner Explorer**. - + ![Open Task Runner Explorer from Solution Explorer](using-gulp/_static/02-SolutionExplorer-TaskRunnerExplorer.png) - + **Task Runner Explorer** shows the list of Gulp tasks. (You might have to click the **Refresh** button that appears to the left of the project name.) - + ![Task Runner Explorer](using-gulp/_static/03-TaskRunnerExplorer.png) - + > [!IMPORTANT] > The **Task Runner Explorer** context menu item appears only if *gulpfile.js* is in the root project directory. @@ -202,7 +202,7 @@ To define a new Gulp task, modify *gulpfile.js*. 1. Add the following JavaScript to the end of *gulpfile.js*: - ```javascript + ```javascript gulp.task('first', done => { console.log('first task! <-----'); done(); // signal completion @@ -227,22 +227,22 @@ When you run multiple tasks, the tasks run concurrently by default. However, if 1. To define a series of tasks to run in order, replace the `first` task that you added above in *gulpfile.js* with the following: - ```javascript - gulp.task('series:first', done => { - console.log('first task! <-----'); - done(); // signal completion - }); - gulp.task('series:second', done => { - console.log('second task! <-----'); + ```javascript + gulp.task('series:first', done => { + console.log('first task! <-----'); done(); // signal completion - }); + }); + gulp.task('series:second', done => { + console.log('second task! <-----'); + done(); // signal completion + }); - gulp.task('series', gulp.series(['series:first', 'series:second']), () => { }); + gulp.task('series', gulp.series(['series:first', 'series:second']), () => { }); - // A 'default' task is required by Gulp v4 - gulp.task('default', gulp.series('series')); + // A 'default' task is required by Gulp v4 + gulp.task('default', gulp.series('series')); ``` - + You now have three tasks: `series:first`, `series:second`, and `series`. The `series:second` task includes a second parameter which specifies an array of tasks to be run and completed before the `series:second` task will run. As specified in the code above, only the `series:first` task must be completed before the `series:second` task will run. 2. Save *gulpfile.js*. diff --git a/aspnetcore/data/ef-mvc/update-related-data.md b/aspnetcore/data/ef-mvc/update-related-data.md index e3f03e12f0..ba81b51085 100644 --- a/aspnetcore/data/ef-mvc/update-related-data.md +++ b/aspnetcore/data/ef-mvc/update-related-data.md @@ -139,7 +139,7 @@ The code does the following: instructorToUpdate, "", i => i.FirstMidName, i => i.LastName, i => i.HireDate, i => i.OfficeAssignment)) - ``` + ``` - If the office location is blank, sets the Instructor.OfficeAssignment property to null so that the related row in the OfficeAssignment table will be deleted. diff --git a/aspnetcore/data/ef-rp/read-related-data.md b/aspnetcore/data/ef-rp/read-related-data.md index 80d76eb52c..50053bf2e0 100644 --- a/aspnetcore/data/ef-rp/read-related-data.md +++ b/aspnetcore/data/ef-rp/read-related-data.md @@ -194,11 +194,11 @@ The preceding markup makes the following changes: * Updates the `page` directive from `@page` to `@page "{id:int?}"`. `"{id:int?}"` is a route template. The route template changes integer query strings in the URL to route data. For example, clicking on the **Select** link for an instructor with only the `@page` directive produces a URL like the following: - `http://localhost:1234/Instructors?id=2` + `http://localhost:1234/Instructors?id=2` - When the page directive is `@page "{id:int?}"`, the previous URL is: + When the page directive is `@page "{id:int?}"`, the previous URL is: - `http://localhost:1234/Instructors/2` + `http://localhost:1234/Instructors/2` * Page title is **Instructors**. * Added an **Office** column that displays `item.OfficeAssignment.Location` only if `item.OfficeAssignment` isn't null. Because this is a one-to-zero-or-one relationship, there might not be a related OfficeAssignment entity. diff --git a/aspnetcore/mvc/views/working-with-forms.md b/aspnetcore/mvc/views/working-with-forms.md index 8471ece220..7e37de4dea 100644 --- a/aspnetcore/mvc/views/working-with-forms.md +++ b/aspnetcore/mvc/views/working-with-forms.md @@ -209,9 +209,9 @@ The following table shows some common [data annotations](/dotnet/api/microsoft.a |[Url]|type="url"| |[HiddenInput]|type="hidden"| |[Phone]|type="tel"| -|[DataType(DataType.Password)]| type="password"| -|[DataType(DataType.Date)]| type="date"| -|[DataType(DataType.Time)]| type="time"| +|[DataType(DataType.Password)]|type="password"| +|[DataType(DataType.Date)]|type="date"| +|[DataType(DataType.Time)]|type="time"| Sample: diff --git a/aspnetcore/security/authorization/secure-data/samples/final2/README.md b/aspnetcore/security/authorization/secure-data/samples/final2/README.md index b54ca6cfb6..4e1a836e94 100644 --- a/aspnetcore/security/authorization/secure-data/samples/final2/README.md +++ b/aspnetcore/security/authorization/secure-data/samples/final2/README.md @@ -6,6 +6,6 @@ * Update the database: - `dotnet ef database update` + `dotnet ef database update` * Enable HTTPS in the project diff --git a/aspnetcore/security/enforcing-ssl.md b/aspnetcore/security/enforcing-ssl.md index 4aaa97c931..ffd50d8059 100644 --- a/aspnetcore/security/enforcing-ssl.md +++ b/aspnetcore/security/enforcing-ssl.md @@ -207,7 +207,7 @@ Uncheck the **Configure for HTTPS** check box. ![New ASP.NET Core Web Application dialog showing the Configure for HTTPS check box unselected.](enforcing-ssl/_static/out.png) -# [.NET Core CLI](#tab/netcore-cli) +# [.NET Core CLI](#tab/netcore-cli) Use the `--no-https` option. For example