Skip to content

CLI getting started updates for RC4 - #1507

Merged
mairaw merged 6 commits into
dotnet:masterfrom
mairaw:rc4
Feb 17, 2017
Merged

mairaw merged 6 commits into
dotnet:masterfrom
mairaw:rc4

Conversation

@mairaw

@mairaw mairaw commented Feb 4, 2017

Copy link
Copy Markdown
Contributor

Fixes #1506

Made updates to use the new dotnet new command and updated templates, refer to code snippets in the samples folder, among other things (for example, introduced the concept of using the arguments just in the second example and removed the different namespace name from the last section since I don't think it's common practice to have different namespaces names within the same project.

To be merged only when RC4 is out.

/cc @BlackDwarf

@thesmithee

Copy link
Copy Markdown

@mairaw hold off for a spell. We are talking about the dotnet new errr...new experience and whether it will change.

@mairaw

mairaw commented Feb 5, 2017

Copy link
Copy Markdown
Contributor Author

I'm not merging this until RC4 is out the door. keep me posted @BlackDwarf

@spboyer

spboyer commented Feb 6, 2017

Copy link
Copy Markdown
Contributor

@mairaw are you also updating the step by step as well? There are some needed changes in that too.

@mairaw

mairaw commented Feb 6, 2017

Copy link
Copy Markdown
Contributor Author

@spboyer

spboyer commented Feb 6, 2017

Copy link
Copy Markdown
Contributor

yes, that one. Missed it in the files included. 👍

@mairaw mairaw removed the WIP label Feb 7, 2017
@mairaw

mairaw commented Feb 7, 2017

Copy link
Copy Markdown
Contributor Author

@BlackDwarf looks good? ok to merge?

```

Alternatively, you can also execute [`dotnet build`](../tools/dotnet-build.md) to compile the code without running the build console applications. This results in a `bin/Debug/netcoreapp1.0/Hello.dll` compiled application that can be run with `dotnet bin\Debug\netcoreapp1.0\Hello.dll` on Windows, and `dotnet bin/Debug/netcoreapp1.0/Hello.dll` on other systems. You may specify an additional parameter on the command-line (assuming you are on Windows):
Alternatively, you can also execute [`dotnet build`](../tools/dotnet-build.md) to compile the code without running the build console applications. This results in a *bin/Debug/netcoreapp1.0/Hello.dll* compiled application that can be run with `dotnet bin\Debug\netcoreapp1.0\Hello.dll` on Windows, and `dotnet bin/Debug/netcoreapp1.0/Hello.dll` on other systems. You may specify an additional parameter on the command-line as you'll see later on the topic.

@mairaw mairaw Feb 7, 2017 •

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.

this paragraph seems to be inaccurate since the command is the same for both Windows and non-Windows and I didn't know how to change. @BlackDwarf can you help?

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 the command is the same, however the the / vs \ is the difference. I'm not sure how relevant that paragraph is, I would remove it.

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.

ah completely missed the forward and backslash @spboyer. Thanks!

@stevehoag

Copy link
Copy Markdown
Contributor

LGTM :shipit:

@thesmithee thesmithee left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Added some changes. Now, we need and maybe we should somehow add dotnet publish and dotnet path/to/assembly.dll here to make sure people see it.

To build and run the sample, type the following three commands:

`dotnet restore`
`dotnet build`

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You don't need this one. run will build for you.

`dotnet build`
`dotnet run`

`dotnet restore` installs all the dependencies for this sample into the current directory.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Not true, better would be "restores the dependencies for this sample". They don't really go into the current directory and maybe at this point we don't care where they go?

`dotnet run`

`dotnet restore` installs all the dependencies for this sample into the current directory.
`dotnet build` creates the output assembly (or assemblies).

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Same as the above comment. Don't need this yet.

To build and run the sample, type the following three commands:

`dotnet restore`
`dotnet build`

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

As above.

@mairaw

mairaw commented Feb 9, 2017

Copy link
Copy Markdown
Contributor Author

That was kind of the template we were using for all the samples readme files @BlackDwarf. I've changed all the applicable ones to remove dotnet build and changed the description for dotnet run and dotnet restore, including the C# samples from @BillWagner.

So for each one of them, do you also want to add the alternative dotnet path/to/dll and dotnet publish? That starts to complicate things a bit, no? Path to DLL will depend on the version of the runtime you have installed, so I cannot give users the exact command. Do I need to add the dotnet build step back so I show the two paths: restore/run and restore/build/dotnet dll?

And for dotnet publish, which one would you like to add to the readme? self-contained ones?

Let me know what you think @BlackDwarf.

@thesmithee

Copy link
Copy Markdown

@mairaw I see. That is weird, dotnet build is not needed in that case as run will build your code. Sorry about that, I seem to have misunderstood in my haste what the change is. I was only referring to the getting started document. But since we are already talking about it...do you think that removing dotnet build in this case makes sense especially w.r.t the #1509 issue?

@mairaw

mairaw commented Feb 9, 2017

Copy link
Copy Markdown
Contributor Author

@BlackDwarf the change was only for getting started initially. For that work, I did include new samples to refer them from the getting started topic so they can be tested as well vs. just pasted in the topic. with that, I've just used the template readme file we were using for all other sample which showed dotnet restore, dotnet build, dotnet run. I agree with you that the dotnet build is not needed so I just fixed those across all readmes.

@BillWagner what do you think?

@mairaw

mairaw commented Feb 16, 2017

Copy link
Copy Markdown
Contributor Author

It would be good to get this out with the new syntax for dotnet new. I've added info into the topic about development time, etc. @BlackDwarf any changes you still would like to see?

@mairaw
mairaw merged commit baceb95 into dotnet:master Feb 17, 2017
@mairaw
mairaw deleted the rc4 branch February 17, 2017 18:44
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.

5 participants