diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml new file mode 100644 index 0000000..de76d7b --- /dev/null +++ b/.github/workflows/dotnet.yml @@ -0,0 +1,41 @@ +name: .NET + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + + build: + + strategy: + matrix: + configuration: [ Debug, Release ] + + runs-on: windows-latest # For a list of available runner types, refer to https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on + + env: + Solution: src/WpfMessageBox.sln + Configuration: ${{ matrix.configuration }} + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Install .NET Core + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 9.0.x + + - name: Display dotnet version + run: dotnet --version + + - name: Restore nugets + run: dotnet restore $env:Solution + + - name: Build + run: dotnet build --no-restore --configuration $env:Configuration $env:Solution diff --git a/README.md b/README.md index 186bfef..777ba4a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # WpfMessageBox -[![Nuget](https://img.shields.io/nuget/v/wpfmessagebox.svg?logo=nuget)](https://www.nuget.org/packages/WpfMessageBox) [![build:master status](https://img.shields.io/appveyor/ci/Otiel/wpfmessagebox/master.svg?label=build:master&logo=appveyor)](https://ci.appveyor.com/project/Otiel/wpfmessagebox/branch/master) +[![Nuget](https://img.shields.io/nuget/v/wpfmessagebox.svg?logo=nuget)](https://www.nuget.org/packages/WpfMessageBox) [![Workflow status](https://github.com/Otiel/WpfMessageBox/actions/workflows/dotnet.yml/badge.svg?branch=master)](https://github.com/Otiel/WpfMessageBox/actions/workflows/dotnet.yml) ## Description diff --git a/src/WpfMessageBox.sln b/src/WpfMessageBox.sln index 47c4a47..faac044 100644 --- a/src/WpfMessageBox.sln +++ b/src/WpfMessageBox.sln @@ -10,6 +10,14 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Demo", "Demo\Demo.csproj", {28C41280-1D3D-4AF8-B555-EFB939B664B3} = {28C41280-1D3D-4AF8-B555-EFB939B664B3} EndProjectSection EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SolutionItems", "SolutionItems", "{F63C7181-FAA6-4FD2-A326-5E148E4F416A}" + ProjectSection(SolutionItems) = preProject + ..\CHANGELOG.md = ..\CHANGELOG.md + ..\README.md = ..\README.md + ..\.github\workflows\dotnet.yml = ..\.github\workflows\dotnet.yml + global.json = global.json + EndProjectSection +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU