-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update and revamp project structure (#12)
* Update Lib project directory - Rename directory to Lib - Update project file to target .NET 8 and restructure the properties. * Recreate solution file * Re-initialize workspace * Update build workflow * Add prompting for target framework for tasks
- Loading branch information
1 parent
ab65449
commit df6d992
Showing
21 changed files
with
446 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"version": 1, | ||
"isRoot": true, | ||
"tools": { | ||
"gitversion.tool": { | ||
"version": "5.12.0", | ||
"commands": [ | ||
"dotnet-gitversion" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,39 @@ | ||
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow | ||
name: Build | ||
on: | ||
- push | ||
- pull_request | ||
- workflow_dispatch | ||
push: | ||
branches: | ||
- "main" | ||
paths-ignore: | ||
- "README.md" | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-classlib: | ||
name: Build class library | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
framework: [ 'net6.0', 'netstandard2.0' ] | ||
project: [ | ||
"./src/Lib" | ||
] | ||
target-framwork: [ | ||
"net8.0", | ||
"netstandard2.0", | ||
] | ||
env: | ||
DOTNET_NOLOGO: true | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
|
||
- name: Setup dotnet SDK | ||
uses: actions/setup-dotnet@v1 | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: '6.0.x' | ||
- name: Run 'dotnet restore' | ||
run: dotnet restore "SmallsOnline.Subnetting.Lib.sln" | ||
- name: Run 'dotnet publish' | ||
run: dotnet publish "SmallsOnline.Subnetting.Lib.sln" --framework ${{ matrix.framework }} | ||
global-json-file: global.json | ||
|
||
- name: Run 'dotnet build' | ||
run: dotnet build ${{ matrix.project }} --configuration Release --framework ${{ matrix.target-framwork }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"debug.internalConsoleOptions": "neverOpen", | ||
"git.detectSubmodules": false, | ||
"dotnet.defaultSolution": "SmallsOnline.Subnetting.sln", | ||
"dotnet.server.useOmnisharp": true, | ||
"dotnet.server.path": "latest", | ||
"task.quickOpen.history": 0, | ||
"task.autoDetect": "off", | ||
"powershell.startAutomatically": false | ||
} |
Oops, something went wrong.