Skip to content

Commit

Permalink
build: Update to .NET 8
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewBabbitt97 committed Nov 25, 2023
1 parent 2b4d0c9 commit 58b11b8
Show file tree
Hide file tree
Showing 31 changed files with 315 additions and 1,316 deletions.
1,150 changes: 29 additions & 1,121 deletions .editorconfig

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ body:
- type: input
attributes:
label: Version number
description: Please specify the version number of the application you are using.
description: Please specify the version number of the software you are using.
validations:
required: false
- type: textarea
Expand All @@ -60,6 +60,6 @@ body:
Links? References? Anything that will give us more context about the issue you are encountering!
Tip: You can attatch images or log files by clicking this area to highlight it and then dragging files in.
Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in.
validations:
required: false
17 changes: 13 additions & 4 deletions .github/ISSUE_TEMPLATE/design_proposal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ body:
- type: textarea
attributes:
label: Risks / unknowns
description: How might people misinterpret/misuse this? How might implementing it restrict us from other enhancements in the future? Also list any other perf/security/corectness concerns.
description: How might others misinterpret/misuse this? How might implementing it restrict us from other enhancements in the future? Also list any perf/security/correctness concerns.
validations:
required: true
- type: textarea
Expand All @@ -39,12 +39,21 @@ body:
description: |
Give brief examples of possible developer and user experiences.
Don't be deeply concerned with how it will be implemented yet. Your examples could even be from other technology stacks or applications.
Don't be deeply concerned with how it would be implemented yet. Your examples could even be from other technology stacks or applications.
validations:
required: true
- type: textarea
attributes:
label: Detailed design
description: Detail the design here.
description: |
It's often best not to fill this out until you get basic consensus about the above. When you do, consider adding an implementation proposal with the following headings:
Detailed design
Drawbacks
Considered alternatives
Open questions
References
If there's one clear design you have consensus on, you could do that directly in a PR.
validations:
required: true
required: false
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ body:
- type: checkboxes
attributes:
label: Is there an existing issue for this?
description: Please search to see if an issue already exists for the bug you encountered.
description: Please search to see if an issue already exists for the feature you are requesting. ([issues](https://github.com/AndrewBabbitt97/BlazorDesktop/issues)).
options:
- label: I have searched the existing issues
required: true
Expand All @@ -26,6 +26,6 @@ body:
- type: textarea
attributes:
label: Additional context
description: Add any other context or screenshots about the feature here.
description: Add any other context or screenshots about the feature request here.
validations:
required: true
required: false
71 changes: 71 additions & 0 deletions .github/changelog.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{
"categories": [
{
"title": "## 🚀 Features",
"labels": [
"feat"
]
},
{
"title": "## 🪲 Bug Fixes",
"labels": [
"fix"
]
},
{
"title": "## 📄 Documentation",
"labels": [
"docs"
]
},
{
"title": "## 🚅 Performance Improvements",
"labels": [
"perf"
]
},
{
"title": "## 🧪 Tests",
"labels": [
"test"
]
},
{
"title": "## 📦 Builds",
"labels": [
"build"
]
},
{
"title": "## ♾️ Continuous Integrations",
"labels": [
"ci"
]
},
{
"title": "## ❌ Reverts",
"labels": [
"revert"
]
},
{
"title": "## ✔️ Other Changes",
"labels": [
"style",
"refactor",
"chore"
]
}
],
"label_extractor": [
{
"pattern": "^(feat|fix|docs|perf|test|build|ci|revert|style|refactor|chore){1}(\\([\\w\\-\\.]+\\))?(!)?: ([\\w ])+([\\s\\S]*)",
"target": "$1"
}
],
"template": "${{CHANGELOG}}",
"pr_template": "- ${{TITLE}}",
"empty_template": "- No Changes",
"max_tags_to_fetch": 1000,
"max_back_track_time_days": 1000
}
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ updates:
directory: "/"
schedule:
interval: "daily"
commit-message:
prefix: ci

- package-ecosystem: "nuget"
directory: "/"
schedule:
interval: "daily"
commit-message:
prefix: build
8 changes: 4 additions & 4 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

<!-- Thank you for submitting a pull request to our repo. -->

<!-- Please run through this checklist below to ensure a smooth review and merge process for your PR.
Replace the space in the square brackets with an x to check them. -->
<!-- If this is your first PR in this repo, please run through the checklist
below to ensure a smooth review and merge process for your PR. -->

- [ ] You've read the [Contributor Guide](https://github.com/AndrewBabbitt97/BlazorDesktop/blob/main/CONTRIBUTING.md) and [Code of Conduct](https://github.com/AndrewBabbitt97/BlazorDesktop/blob/main/CODE_OF_CONDUCT.md).
- [ ] You've included unit or integration tests for your change, where applicable.
Expand All @@ -14,10 +14,10 @@ Replace the space in the square brackets with an x to check them. -->

## Summary of the changes

{Summary} (Less than 80 characters)
{Summary}

## Description

{Detail}

Fixes #{issue number}
Fixes #{bug number}
9 changes: 7 additions & 2 deletions .github/workflows/build-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,14 @@ jobs:
uses: actions/checkout@v4

- name: Set up .NET
uses: actions/setup-dotnet@v3
uses: zyactions/dotnet-setup@v1
with:
dotnet-version: "7.0.x"
global-json-file: src/global.json

- name: Restore .NET dependencies
uses: zyactions/dotnet-restore@v1
with:
working-directory: src/

- name: Build solution
run: dotnet build src/
17 changes: 10 additions & 7 deletions .github/workflows/lint-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,16 @@ jobs:
uses: actions/checkout@v4

- name: Set up .NET
uses: actions/setup-dotnet@v3
uses: zyactions/dotnet-setup@v1
with:
dotnet-version: "7.0.x"
global-json-file: src/global.json

- name: Run linters
uses: wearerequired/lint-action@v2
- name: Restore .NET dependencies
uses: zyactions/dotnet-restore@v1
with:
continue_on_error: false
dotnet_format: true
dotnet_format_dir: src/
working-directory: src/

- name: Lint solution
uses: zyactions/dotnet-lint@v1
with:
working-directory: src/
2 changes: 1 addition & 1 deletion .github/workflows/lint-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
lint-pr:
name: Lint PR
runs-on: ubuntu-latest

steps:
- uses: amannn/action-semantic-pull-request@v5
env:
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/scan-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
language: [ 'csharp' ]

steps:
- name: Checkout repository
- name: Check out Git repository
uses: actions/checkout@v4

- name: Initialize CodeQL
Expand All @@ -35,9 +35,14 @@ jobs:
languages: ${{ matrix.language }}

- name: Set up .NET
uses: actions/setup-dotnet@v3
uses: zyactions/dotnet-setup@v1
with:
dotnet-version: "7.0.x"
global-json-file: src/global.json

- name: Restore .NET dependencies
uses: zyactions/dotnet-restore@v1
with:
working-directory: src/

- name: Build solution
run: dotnet build src/
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/test-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,14 @@ jobs:
uses: actions/checkout@v4

- name: Set up .NET
uses: actions/setup-dotnet@v3
uses: zyactions/dotnet-setup@v1
with:
dotnet-version: "7.0.x"
global-json-file: src/global.json

- name: Restore .NET dependencies
uses: zyactions/dotnet-restore@v1
with:
working-directory: src/

- name: Test solution
run: dotnet test src/
58 changes: 44 additions & 14 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
##
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
## Get latest from `dotnet new gitignore`

# dotenv files
.env

# User-specific files
*.rsuser
Expand Down Expand Up @@ -57,7 +60,7 @@ dlldata.c
# Benchmark Results
BenchmarkDotNet.Artifacts/

# .NET Core
# .NET
project.lock.json
project.fragment.lock.json
artifacts/
Expand Down Expand Up @@ -93,6 +96,7 @@ StyleCopReport.xml
*.tmp_proj
*_wpftmp.csproj
*.log
*.tlog
*.vspscc
*.vssscc
.builds
Expand Down Expand Up @@ -296,6 +300,17 @@ node_modules/
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
*.vbw

# Visual Studio 6 auto-generated project file (contains which files were open etc.)
*.vbp

# Visual Studio 6 workspace and project file (working project files containing files to include in project)
*.dsw
*.dsp

# Visual Studio 6 technical files
*.ncb
*.aps

# Visual Studio LightSwitch build output
**/*.HTMLClient/GeneratedArtifacts
**/*.DesktopClient/GeneratedArtifacts
Expand Down Expand Up @@ -352,6 +367,9 @@ ASALocalRun/
# Local History for Visual Studio
.localhistory/

# Visual Studio History (VSHistory) files
.vshistory/

# BeatPulse healthcheck temp database
healthchecksdb

Expand All @@ -364,6 +382,28 @@ MigrationBackup/
# Fody - auto-generated XML schema
FodyWeavers.xsd

# VS Code files for those working on multiple tools
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
*.code-workspace

# Local History for Visual Studio Code
.history/

# Windows Installer files from build outputs
*.cab
*.msi
*.msix
*.msm
*.msp

# JetBrains Rider
*.sln.iml
.idea

##
## Visual studio for Mac
##
Expand Down Expand Up @@ -440,15 +480,5 @@ $RECYCLE.BIN/
# Windows shortcuts
*.lnk

# JetBrains Rider
.idea/
*.sln.iml

##
## Visual Studio Code
##
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
# Vim temporary swap files
*.swp
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ All types of contributions are encouraged and valued. See the [Table of Contents

- [Code of Conduct](#code-of-conduct)
- [I Have a Question](#i-have-a-question)
- [I Want To Contribute](#i-want-to-contribute)
- [I Want To Contribute](#i-want-to-contribute)
- [Reporting Bugs](#reporting-bugs)
- [Suggesting Enhancements](#suggesting-enhancements)
- [Your First Code Contribution](#your-first-code-contribution)
Expand Down Expand Up @@ -68,7 +68,7 @@ A good bug report shouldn't leave others needing to chase you up for more inform

#### How Do I Submit a Good Bug Report?

> You must never report security related issues, vulnerabilities or bugs to the issue tracker, or elsewhere in public. Instead sensitive bugs must be sent by email to <[email protected]>.
> You must never report security related issues, vulnerabilities or bugs including sensitive information to the issue tracker, or elsewhere in public. Instead sensitive bugs must be sent by email to <[email protected]>.
We use GitHub issues to track bugs and errors. If you run into an issue with the project:

Expand Down
Loading

0 comments on commit 58b11b8

Please sign in to comment.