Skip to content

dotnet new updates for MSBuild/csproj - #1649

Merged
mairaw merged 47 commits into
dotnet:masterfrom
guardrex:guardrex/dotnet-new-updates
Mar 7, 2017
Merged

mairaw merged 47 commits into
dotnet:masterfrom
guardrex:guardrex/dotnet-new-updates

Conversation

@guardrex

@guardrex guardrex commented Mar 7, 2017

Copy link
Copy Markdown
Contributor

Fixes #1574

@dnfclas

dnfclas commented Mar 7, 2017

Copy link
Copy Markdown

@guardrex,
Thanks for having already signed the Contribution License Agreement. Your agreement was validated by .NET Foundation. We will now review your pull request.
Thanks,
.NET Foundation Pull Request Bot

@guardrex

guardrex commented Mar 7, 2017

Copy link
Copy Markdown
Contributor Author

Hold merging while I work on #1523 for this PR.

Comment thread docs/core/preview3/deploying/index.md Outdated
> [!WARNING]
> This topic applies to .NET Core Tools RC4. For the .NET Core Tools Preview 2 documentation,
> see the [.NET Core Application Deployment](../../deploying/index.md) topic.
# .NET Core Application Deployment (.NET Core SDK 1.0.0 Tools)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since we don't know the official name of the SDK, please just remove the version from these topics.

---

# Managing dependencies in .NET Core RC4 tooling
# Managing dependencies with .NET Core SDK 1.0.0 tooling

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.NET Core SDK 1.0.0 tooling -> .NET Core SDK


## Name
`dotnet-clean` -- Cleans the output of a project.
`dotnet-clean` - Cleans the output of a project.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: let's standardize on whether we'll show the command name with or without backticks since some commands are using and some are not. Probably without causes less confusion.

@guardrex

guardrex commented Mar 7, 2017

Copy link
Copy Markdown
Contributor Author

@mairaw I'm still working on the commands locally. Once I have that in place, I'll come back and knock those ☝️ out.

@@ -50,7 +48,6 @@ Defines a configuration under which the build was running. If omitted, it defau

Defines verbosity to use for the invocation of the `dotnet clean` command. The verbosity levels are standard [MSBuild verbosity levels](https://msdn.microsoft.com/en-us/library/ms164311.aspx).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mairaw

mairaw commented Mar 7, 2017

Copy link
Copy Markdown
Contributor

@guardrex no worries. I just wanted you to have some feedback as you go on. Thanks so much!

@guardrex

guardrex commented Mar 7, 2017

Copy link
Copy Markdown
Contributor Author

Fixes #1523

@guardrex

guardrex commented Mar 7, 2017 •

Copy link
Copy Markdown
Contributor Author

Well ... that worked. I thought I was going to bring the Net down with that. 😄

There are a couple of warnings ... let me see if I can fix those real quick. I don't see the source of the other six warnings shown in the build report.

Notes

  • Split the help -h|--help out on the commands to their own line, and I also pulled it from the full command shown. If you type -h|--help, the command and other attributes have no effect. It just spits out the help info; therefore, it seemed like it should be its own line for each command.
  • I missed one RC4 warning that slipped by me on the tools/dotnet-install-script.md doc. I'll leave it so that I don't hold you up on merging.
  • Lowercase attribute values won ... lowercase was used more often than uppercase by authors, so I made everything lowercase (e.g., PROJECT 👉 project).
  • Switches are updated, but I didn't really try to sequence them much better than the way they are. I only did that on a few docs.
  • I see a lot of grammar/style opportunities in these. I could only scratch the surface on this pass.

@mairaw If you want to merge first then give me a list of updates for later, I'll fix those up on a new branch after you're done and PR the new updates to master later tonight or in the morning -- whatever works best for you.

@guardrex guardrex removed the WIP label Mar 7, 2017

@mairaw mairaw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall, it looks great! Thanks for going over those. I'll make the small fixes tonight. Also, I kind of prefer the arguments in all caps because it's easy to distinguish them from the options and the options arguments are also usually all caps. Thank you!

Comment thread docs/core/preview3/tools/dotnet-pack.md Outdated

`--verbosity <LEVEL>`

Set the verbosity level of the command. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic].

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like how you describe them here (I'd just change to start with Sets). We could try to standardize on other topics. We could either use an include file for this and other common options such as --help so they all look the same. Let's discuss it tomorrow.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know. I have an issue opened on their repo to review those strings too. 😄


Configuration to use when publishing. The default value is `Debug`.

`-v|--verbosity`

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing the argument here

* Creates a NuGet package of your code.
* [dotnet-migrate](dotnet-migrate.md)
* Migrates a valid Preview 2 project to a RC4 project.
* Migrates a valid Preview 2 project to a .NET Core SDK 1.0.0 project.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's confirm that's the correct version name of the SDK. @leecow @BlackDwarf?

```

3. Initialize the directory with a `dotnet new -t Xunittest` command. This assumes Xunit, but you can also use MS Test by replacing `Xunittest` with `Mstest`.
3. Initialize the directory with a `dotnet new xunit` command. This assumes Xunit, but you can also use MS Test by replacing `xunit` with `mstest`.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Xunit -> xUnit

@@ -38,7 +38,7 @@ Let's get started with a simple "Hello World" program on .NET Core:

2. Initialize a C# project:
* Open the Integrated Terminal from VS Code by typing <kbd>CTRL</kbd>+<kbd>`</kbd> (backtick).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This backtick is causing formatting issues. I think it needs to be escaped \

## Prerequisites

To begin, you must install the [.NET Core SDK 1.0.3 - (build 004769 or later)](https://dot.net/core). There is no need to uninstall a previous version of the .NET Core SDK, as it supports side-by-side installations.
To begin, you must install the [.NET Core SDK 1.0.3 - (build 004769 or later)](https://dot.net/core). There is no need to uninstall a previous version of the .NET Core SDK, as it supports side-by-side installations.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we probably need to review this version

@mairaw
mairaw merged commit abd4ead into dotnet:master Mar 7, 2017
@guardrex
guardrex deleted the guardrex/dotnet-new-updates branch March 7, 2017 13:41
BillWagner added a commit that referenced this pull request Mar 7, 2017
* Updated publishing getting started

* Converted project.json to MSBuild

* Updated csproj files to default.

* Revised VSCode topic for MSBuild-based projects

* Tutorials revised for *.csproj projects (#1488)

* Converted some project.json projects

* Replaced csproj project file.

* Updated publishing getting started

* Converted project.json to MSBuild

* Updated csproj files to default.

* Revised VSCode topic for MSBuild-based projects

* Tutorials revised for *.csproj projects (#1488)

* Remove project-json.md (#1520)

* remove doc

* changed to redirect per feedback

* updates, remove from toc

* Updated library examples for csproj.

* Revised xml doc comments topic for csproj

* Addressed comments, fixed some other issues.

* Converted samples to csproj.

* Modified build-related information.

* Addressed comments

* Changed relative URLs to absolute

* Changed links from github to docs

* Update fsharp/tutorials/getting-started-command-line (#1521)

* Updated publishing getting started

* Converted project.json to MSBuild

* Updated csproj files to default.

* Revised VSCode topic for MSBuild-based projects

* Tutorials revised for *.csproj projects (#1488)

* fsharp update to 004769

* fixing --

* undoing --

* address feedback

* addressed nits

* remove global.json add dotnet sln

* add directory output

* add dash to command line in code.

* fixing feedback

* change ms.date

* Update mstest tutorial for csproj (#1531)

* Remove project-json.md (#1520)

* remove doc

* changed to redirect per feedback

* updates, remove from toc

* Update testingng with MSTest for csproj

This topic now mirrors the unit testing with dotnet test and xunit.

* update topic for multiple platforms

This meant updating the index file, the TOC, and adding redirection due
to the file name change.

* Add the meta tag to redirect LiveFyre comments.

* Update per feedback

* Final review and proofread

* Update per feedback on PR #1538

* respond to feedback.

* fixed product name

* Revised out parameter modifier for C# 7

* Corrected bad code example links.

* Fixed one more broken link.

* Fixed alert.

* C# 7 revision of throw

* Corrected code dropout in Lambda Expressions topic.

* Fixed bad code snippet end tag

* project migration from project.json to csproj

* Revised for csproj migration

* Replaced incorrect version of csproj file

* Additional topic added

* Samples ported to MSBuild

* Fix typo

* bringing changes back

* Update pattern matching to fix a couple small issues (#1612)

* Update pattern matching to fix a couple small issues

1. Update feature name for pattern matching (issue #1479)
2. Update description of match expressions to explain that match
expressions in the wrong order generate a compiler error (Issue #1585)

* fix build issues.

Directory move because the solution directory isn’t needed.

* missed one set of build errors.

* update to the 1.1 meta package.

* temporarily disable enable_incremental_build (#1643)

* Addressed review comments

* Incorporated review comments

* removing test protocol doc (#1615)

* uses raw version of sampleQuotes.txt in link (#1652)

This makes it easier to `wget` the file.

* dotnet new updates for MSBuild/csproj (#1649)

* Update index.md

* Update index.md

* Update dependencies.md

* Update index.md

* Update dependencies.md

* Update dotnet.md

* Update index.md

* Update dependencies.md

* Update using-with-xplat-cli-msbuild-folders.md

* Update getting-started-command-line.md

* Update with-visual-studio-code.md

* Update attributes.md

* Update console-teleprompter.md

* Update console-webapiclient.md

* Update attributes.md

* Update inheritance.md

* Update string-interpolation.md

* Update working-with-linq.md

* Update working-with-linq.md

* Update dotnet-migrate.md

* Update using-with-xplat-cli-msbuild-folders.md

* Update using-with-xplat-cli-msbuild-folders.md

* Update dotnet-new.md

* Update dotnet-add-package.md

* Update dotnet-add-reference.md

* Update dotnet-build.md

* Update dotnet-add-reference.md

* Update dotnet-add-package.md

* Update dotnet-clean.md

* Update dotnet-build.md

* Update dotnet-clean.md

* Update dotnet-install-script.md

* Update dotnet-build.md

* Update dotnet-build.md

* Update dotnet-install-script.md

* Update dotnet-list-reference.md

* Update dotnet-msbuild.md

* Update dotnet-new.md

* Update dotnet-nuget-delete.md

* Update dotnet-nuget-locals.md

* Update dotnet-msbuild.md

* dotnet command updates

* Update broken xref

* Update dotnet-pack.md

* Update dotnet-publish.md

* Update using-with-xplat-cli-msbuild-folders.md

* Update with-visual-studio-code.md

* 💥 removing preview3 folder (#1650)

* test redirection with document id

removing dotnet-new from preview3

* 💥 removing preview3 folder

* removed warnings and RC4 mentions

fixing build issues

fixing more build issues

* addressed feedback

more fixes

* rebase and fixes

* fixes

* cleanup

* fix broken link

* Migration and build, publish & run fixes (#1592)

* Migration and build, publish & run fixes

This adds the migraiton document into a migration folder under the
Preview 3 folder. The migration document covers the migration from
project.json to csproj using the automated tools, points to the old DNX
migration for those people that still use that and offers some advice on
getting from pre-RC4 csproj to RC4 (and thus RTW) csproj formats.

The change also adds some content to the dotnet build, dotnet run and
dotnet publish documents to make sure that their differences are clearly
outlined.

Fixes #1512, #1509, #1515

* Fixing broken links

* Responding to PR feedback

* Responding to PR feedback.

* Resolving build breaks

* Fixing build breaks...again.

* some updates

* fixed toc entry

* addressed feedback + fixes

* more fixes

* few more fixes

* removing preview3 links

* Update getting started on macos (#1560)

* update getting started for csproj build system.

Updates all the application code,
the text in the MD file,
and the updated VS Code debugging settings.

* Update for new VS code extension behavior.

* respond to feedback.

* remove version specific notes on the SDK.

* Update the docker getting started topic. (#1503)

* Update the docker getting started topic.

* fix build errors

And update Docker build instructions

* update instructions to use dotnet add package

* Update Unit Testing with XUnit (#1487)

* Remove project-json.md (#1520)

* remove doc

* changed to redirect per feedback

* updates, remove from toc

* run dotnet migrate

* build and run tests

* move projects to the correct updated location

* Update project files and code.

* fix a file name.

* mis-typed the region name.

* proofread and update.

This is ready for review and mergning.

* update instructions to use the new CLI command.

* use updated commands

the older commands still work, but it’s better to standardize on the
new names.

* remove note about .NET Core 1.0

* update for correct xUnit branding.

* small fixes (#1655)

* Documented C# when keyword (#1647)

* documented when keyword

* Incorporated review comments

* Switch statement revised for C# 7 (#1640)

* Switch statement revised for C# 7

* Fixed bad links

* Changed 'switch expression' to 'match expression'

* Addressed review comments.

* Added code snippet tags.

* modified code

* update dotnet-install script topic (#1618)

* update dotnet-install script

* fixed word dropout

* Changes to dotnet new (#1637)

* changes to dotnet new

* removed current dir from the summary

* a few more edits

* fix two broken links. (#1657)

* fix two broken links.

* fix more bad links.

* removing RC4 from the menu

* more fixes
@guardrex guardrex self-assigned this Mar 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants