You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* update self-contained builds to build on ubuntu
We use that runtime on the CI build server.
* whitespace change to force a build
* whitespace changes.
* update for CI Build
* Ready for a CI build test.
* Move LINQ samples.
* update references to LINQ samples.
* move the getting started with Core on Mac OS tutorial
* move the console-linq sample and references.
* move the console teleprompter sample
* move the console webapiclient sample.
* move the weather microservice sample.
* move the delegates-and-events sample.
* move the event samples.
* move the expression trees sample.
* mv the indexers samples.
* move the iterators sample
* move the unit testing sample.
* mv the console apps core sample
* update console-apps links
* move the migration samples.
* move new-library back under core.
And fix links
* Update contributing to match sample locations
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+8-12
Original file line number
Diff line number
Diff line change
@@ -110,25 +110,21 @@ All samples should be complete applications or libraries. Where the sample creat
110
110
it should include unit tests or an application that lets readers run the code.
111
111
112
112
The samples are organized in directories that match the directories under
113
-
docs in this repo:
113
+
docs in this repo.
114
114
115
-
-`getting-started` contains getting started samples.
115
+
-`core` contains .NET Core samples. These are referenced by topics under `/docs/core`.
116
116
117
-
*Each top-level section of our documentation contains a "getting-started" or "tutorials" section. These topics and their associated samples represent the first look(s) at a topic area. If your sample's goal is to help beginners get started with the platform or the technology, place your sample under `samples/getting-started`. There should be a directory that matches the section for your tutorial (such as `samples/getting-started/csharp`), but if not, simply create a new folder.
117
+
*The `core` directory contains samples that highlight .NET Core. The purpose of your sample should be to teach developers something about .NET Core. This includes the framework packaging, the new tooling, or the cross-platform experience. Our CI buid server builds these samples on multiple supported platforms. Therefore, every sample must be configured to build on Linux, Mac, and Windows.
118
118
119
-
-`core-projects` contains .NET Core samples. These are referenced by topics under `/docs/core`.
119
+
-`csharp` contains C# language samples. These are referenced by topics under `docs/csharp`.
120
120
121
-
* The `core-projects` directory contains samples that highlight .NET Core. The purpose of your sample should be to teach developers something about .NET Core. This includes the framework packaging, the new tooling, or the cross-platform experience.
121
+
* The `csharp` directory contains samples where the purpose is to explain the C# language. While these samples will use frameworks and libraries, their focus is on the C# language. Our CI buid server builds these samples on multiple supported platforms. Therefore, every sample must be configured to build on Linux, Mac, and Windows.
122
122
123
-
-`csharp-language` contains C# language samples. These are referenced by topics under `docs/csharp`.
123
+
-`framework` contains .NET Framework samples. These are referenced by topics under many different locations in the documentation. However, what is significant about these samples is that they buid only on Windows where the .NET framework, and Visual Studio are installed.
124
124
125
-
* The `csharp-language` directory contains samples where the purpose is to explain the C# language. While these samples will use frameworks and libraries, their focus is on the C# language.
125
+
* The `framework` directory contains samples that highlight .NET with platform dependencies. These may include migration samples, platform specific samples, or other samples that require the framework or the Windows based tools. Our CI buid server builds these samples on Windows only. Do not place any samples here that should be checked for cross-platform builds.
126
126
127
-
-`linq` contains all the 101 LINQ samples that were originally created when LINQ was developed. These don't have topics associated with them yet.
128
-
129
-
* The `linq` directory contains samples that are specific to understanding the concepts and implementation behind Language Integrated Query (LINQ). These samples should be focused on the language support and library methods that are specific to LINQ. Other samples my use the LINQ libraries, but unless they are focused on explaining LINQ concepts, they should be in one of the other directories.
130
-
131
-
We will expand these directories as the core-docs repository adds new content.
127
+
We will expand these directories as the core-docs repository adds new content. For example, we will add Xamarin directories, like `xamarin-ios` and `xamarin-android` directories.
132
128
133
129
Sample code may fit more than one of these areas. In those cases, place the sample so it matches
134
130
the topics you are covering in your documents. Ask yourself what readers will learn from reading
Copy file name to clipboardExpand all lines: docs/core/tutorials/using-with-xplat-cli.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ Before you begin, ensure you have the [latest .NET Core CLI tooling](https://www
24
24
25
25
## Hello, Console App!
26
26
27
-
First, navigate to or create a new folder with a name you like. "Hello" is the name chosen for the sample code, which can be found [here](https://github.com/dotnet/core-docs/tree/master/samples/core-projects/console-apps/Hello).
27
+
First, navigate to or create a new folder with a name you like. "Hello" is the name chosen for the sample code, which can be found [here](https://github.com/dotnet/core-docs/tree/master/samples/core/console-apps/Hello).
28
28
29
29
Open up a command prompt and type the following:
30
30
@@ -99,7 +99,7 @@ Let's try compiling a self-contained application instead of a portable applicati
99
99
100
100
You need to make some changes to your `project.json`
101
101
file to direct the tools to build a self-contained application. You can see these in the
The first change is to remove the `"type": "platform"` element from all dependencies.
@@ -258,7 +258,7 @@ Now the fun part: making the new file do something!
258
258
259
259
### Example: A Fibonacci Sequence Generator
260
260
261
-
Let's say you want to build off of the previous [Fibonacci example](https://github.com/dotnet/core-docs/tree/master/samples/core-projects/console-apps/Fibonacci) by caching some Fibonacci values and add some recursive flair. Your code for a [better Fibonacci example](https://github.com/dotnet/core-docs/tree/master/samples/core-projects/console-apps/FibonacciBetter) might look something like this:
261
+
Let's say you want to build off of the previous [Fibonacci example](https://github.com/dotnet/core-docs/tree/master/samples/core/console-apps/Fibonacci) by caching some Fibonacci values and add some recursive flair. Your code for a [better Fibonacci example](https://github.com/dotnet/core-docs/tree/master/samples/core/console-apps/FibonacciBetter) might look something like this:
262
262
263
263
```csharp
264
264
usingSystem;
@@ -373,7 +373,7 @@ Say you wanted to introduce some new types to do work on. You can do this by ad
373
373
|__project.json
374
374
```
375
375
376
-
This works great when the size of your project is relatively small. However, if you have a larger app with many different data types and potentially multiple layers, you may wish to organize things logically. This is where folders come into play. You can either follow along with [the NewTypes sample project](https://github.com/dotnet/core-docs/tree/master/samples/core-projects/console-apps/NewTypes) that this guide covers, or create your own files and folders.
376
+
This works great when the size of your project is relatively small. However, if you have a larger app with many different data types and potentially multiple layers, you may wish to organize things logically. This is where folders come into play. You can either follow along with [the NewTypes sample project](https://github.com/dotnet/core-docs/tree/master/samples/core/console-apps/NewTypes) that this guide covers, or create your own files and folders.
377
377
378
378
To begin, create a new folder under the root of your project. `/Model` is chosen here.
379
379
@@ -552,7 +552,7 @@ You'll probably be wanting to test your projects at some point. Here's a good w
552
552
553
553
### Example: Extending the NewTypes project
554
554
555
-
Now that the project system is in place, you can create your test project and start writing tests! From here on out, this guide will use and extend [the sample Types project](https://github.com/dotnet/core-docs/tree/master/samples/core-projects/console-apps/NewTypes). Additionally, it will use the [Xunit](https://xunit.github.io/) test framework. Feel free to follow along or create your own multi-project system with tests.
555
+
Now that the project system is in place, you can create your test project and start writing tests! From here on out, this guide will use and extend [the sample Types project](https://github.com/dotnet/core-docs/tree/master/samples/core/console-apps/NewTypes). Additionally, it will use the [Xunit](https://xunit.github.io/) test framework. Feel free to follow along or create your own multi-project system with tests.
556
556
557
557
558
558
The whole project structure should look like this:
filefromtheGitHubrepositoryforthis [sample](https://github.com/dotnet/core-docs/tree/master/samples/getting-started/csharp/console-teleprompter) into your project directory.
filefromtheGitHubrepositoryforthis [sample](https://github.com/dotnet/core-docs/tree/master/samples/csharp/csharp/console-tconsole-teleprompter) into your project directory.
Copy file name to clipboardExpand all lines: docs/csharp/tutorials/microservices.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ Along the way, you'll also see some C# language features:
32
32
* How to process incoming HTTP Requests and generate the HTTP Response
33
33
* How to work with nullable value types
34
34
35
-
You can retrieve the code from our [GitHub repository.](https://github.com/dotnet/core-docs/tree/master/samples/getting-started/csharp/WeatherMicroservice)
35
+
You can retrieve the code from our [GitHub repository.](https://github.com/dotnet/core-docs/tree/master/samples/csharp/getting-started/WeatherMicroservice)
0 commit comments