Repository navigation
CLI getting started updates for RC4 - #1507
Conversation
|
@mairaw hold off for a spell. We are talking about the |
|
I'm not merging this until RC4 is out the door. keep me posted @BlackDwarf |
|
@mairaw are you also updating the step by step as well? There are some needed changes in that too. |
|
which one @spboyer? this one is included in this PR: https://docs.microsoft.com/en-us/dotnet/articles/core/preview3/tutorials/using-with-xplat-cli-msbuild |
|
yes, that one. Missed it in the files included. 👍 |
|
@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. |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
@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.
There was a problem hiding this comment.
ah completely missed the forward and backslash @spboyer. Thanks!
|
LGTM |
thesmithee
left a comment
There was a problem hiding this comment.
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` |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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). |
There was a problem hiding this comment.
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` |
|
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 And for dotnet publish, which one would you like to add to the readme? self-contained ones? Let me know what you think @BlackDwarf. |
|
@mairaw I see. That is weird, |
|
@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? |
|
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? |
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