Skip to content
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
14 changes: 9 additions & 5 deletions samples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,19 @@ We will eventually have a CI system in place to build these projects.
To create a sample:

1. File an [issue](https://github.com/dotnet/core-docs/issues) or add a comment to an existing one that you are working on it.
2. For each set of samples that demonstrates a concept, add a project.json with your dependencies and target coreclr:
2. For each set of samples that demonstrates a concept, add a project.json with your dependencies and target coreclr. Additionally,
add a run command specifying the sample folder so people using VSCode or Visual Studio can run the sample directly:

```javascript
```json
{
"dependencies": {
"System.Runtime":"4.0.0-rc1-*",
"System.Linq":"4.0.0-rc1-*",
"System.Console": "4.0.0-beta-*"
"System.Runtime":"4.0.0-*",
"System.Linq":"4.0.0-*",
"System.Console": "4.0.0-*"
},
"commands": {
"run" : "<SAMPLE FOLDER>"
},
"frameworks": {
"dnxcore50":{}
}
Expand Down
3 changes: 3 additions & 0 deletions samples/linq/csharp/aggregate/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
"System.Linq":"4.0.0-rc1-*",
"System.Console": "4.0.0-beta-*"
},
"commands": {
"run": "aggregate"
},
"frameworks": {
"dnxcore50":{}
}
Expand Down
3 changes: 3 additions & 0 deletions samples/linq/csharp/restriction/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
"System.Linq": "4.0.0-rc1-*",
"System.Console": "4.0.0-beta-*"
},
"commands": {
"run": "restriction"
},
"frameworks": {
"dnxcore50": {}
}
Expand Down