Skip to content

Commit

Permalink
changesw
Browse files Browse the repository at this point in the history
  • Loading branch information
ThijSlim committed Nov 1, 2023
1 parent 4abe685 commit 925f922
Show file tree
Hide file tree
Showing 8 changed files with 78 additions and 80 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: .NET 7 Build Pipeline

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
runs-on: windows-latest # or ubuntu-latest or macos-latest

steps:
- uses: actions/checkout@v3 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it

- name: Setup .NET 7 SDK
uses: actions/setup-dotnet@v2
with:
dotnet-version: 7.0.x # Specify the .NET version

- name: Restore dependencies
run: dotnet restore

- name: Build
run: dotnet build --no-restore -c Release

- name: Run tests
run: dotnet test --no-build -c Release --verbosity normal

- name: Publish
run: dotnet publish -c Release -o ./publish

- name: Deploy
# To do

# This step archives the published application to be used in a release or deployment job
- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: published-app
path: ./publish
35 changes: 0 additions & 35 deletions .vscode/launch.json

This file was deleted.

41 changes: 0 additions & 41 deletions .vscode/tasks.json

This file was deleted.

16 changes: 13 additions & 3 deletions Demos/1-Code-Completion.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

2. Tab to complete extra planes in List

# Completion 2 (New Property)
# Completion 2 (New Property in a different file)

1. Select `Plane.cs`

Expand All @@ -14,8 +14,18 @@

4. Tab to complete `ImageUrl` in all `Plane` objects

# Completion 3 (Consistency of Style)
# Completion 3 (New Method)

1. Select `PlaneController.cs`

2. Logger log `""` -> `string.Empty`
2. Type [HttpPut]

# Completion 4 (Consistency of Style)

1. Select `PlaneController.cs`

2. Inside `Get()` type `_logger` ...

3. Change content with `---`

4. Type `_logger` ... in `Post()`
13 changes: 13 additions & 0 deletions Demos/2-Comments-To-Code.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Comments to Code

## Sample 1 (Method Get Planes by Year)

1. Select `PlaneController.cs`

2. Type `// Method to get planes by year`

## Sample 2 (New Property in a different file)

1. Select `Plane.cs`

# Some CoPilot Features in the IDE
6 changes: 6 additions & 0 deletions Demos/3-CoPilot-Chat.md → Demos/3-GitHub-CoPilot-Chat.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## Installing CoPilot Chat

It's BETA for everyone

- Extension

## Question 1:

1. Select `PlaneController.cs`
Expand Down
4 changes: 4 additions & 0 deletions Demos/4-Setup-GitHub-CoPilot.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Go to github.com/CoPilot

## Installing CoPilot Chat

2 changes: 1 addition & 1 deletion WrightBrothersApi/Controllers/PlaneControler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public PlanesController(ILogger<PlanesController> logger)
Name = "Wright Flyer II",
Year = 1904,
Description = "A refinement of the original Flyer with better performance."
}
},
};

[HttpGet]
Expand Down

0 comments on commit 925f922

Please sign in to comment.