diff --git a/samples/README.md b/samples/README.md index dc54e945be0bb..94f6dddd48a05 100644 --- a/samples/README.md +++ b/samples/README.md @@ -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" : "" + }, "frameworks": { "dnxcore50":{} } diff --git a/samples/linq/csharp/aggregate/project.json b/samples/linq/csharp/aggregate/project.json index 42cb12e309d55..d1eac45713e14 100644 --- a/samples/linq/csharp/aggregate/project.json +++ b/samples/linq/csharp/aggregate/project.json @@ -4,6 +4,9 @@ "System.Linq":"4.0.0-rc1-*", "System.Console": "4.0.0-beta-*" }, + "commands": { + "run": "aggregate" + }, "frameworks": { "dnxcore50":{} } diff --git a/samples/linq/csharp/restriction/project.json b/samples/linq/csharp/restriction/project.json index 2536a34711e7d..fb9bf44451c2c 100644 --- a/samples/linq/csharp/restriction/project.json +++ b/samples/linq/csharp/restriction/project.json @@ -4,6 +4,9 @@ "System.Linq": "4.0.0-rc1-*", "System.Console": "4.0.0-beta-*" }, + "commands": { + "run": "restriction" + }, "frameworks": { "dnxcore50": {} }