Skip to content

Update xplat tutorial re: community feedback #719

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 30, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions docs/core/tutorials/using-with-xplat-cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ public static void Main(string[] args)
var generator = new FibonacciGenerator();
foreach (var digit in generator.Generate(15))
{
Console.WriteLine(digit);
WriteLine(digit);
}
}
```
Expand Down Expand Up @@ -567,7 +567,7 @@ The whole project structure should look like this:
|__project.json
|__/test
|__NewTypesTests
|__TypesTests.cs
|__PetTests.cs
|__project.json
|__global.json
```
Expand All @@ -591,10 +591,10 @@ There are two new things to make sure you have in your test project:
"dependencies": {
"Microsoft.NETCore.App": {
"type":"platform",
"version": "1.0.0-rc2-3002702"
"version": "1.0.0"
},
"xunit":"2.1.0",
"dotnet-test-xunit": "1.0.0-rc2-build10015",
"xunit":"2.2.0-beta2-build3300",
"dotnet-test-xunit": "2.2.0-preview2-build1029",
"NewTypes": "1.0.0"
},
"frameworks": {
Expand Down Expand Up @@ -661,5 +661,3 @@ SUMMARY: Total: 1 targets, Passed: 1, Failed: 0.
Hopefully this guide has helped you learn how to create a .NET Core console app, from the basics all the way up to a multi-project system with unit tests. The next step is to create awesome console apps of your own!

If a more advanced example of a console app interests you, check out the next tutorial: [Using the CLI tools to write console apps: An advanced step-by-step guide](cli-console-app-tutorial-advanced.md).


4 changes: 2 additions & 2 deletions samples/core-projects/console-apps/FibonacciBetter/Program.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using static System.Console;
using Fibonacci;

namespace ConsoleApplication
Expand All @@ -10,7 +10,7 @@ public static void Main(string[] args)
var generator = new FibonacciGenerator();
foreach (var digit in generator.Generate(15))
{
Console.WriteLine(digit);
WriteLine(digit);
}
}
}
Expand Down