diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..50f6407 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,24 @@ +# This workflow will build a .NET project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net + +name: .NET + +on: + push: + pull_request: + +jobs: + build: + + runs-on: windows-latest + + steps: + - uses: actions/checkout@v4 + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 9.0.x + - name: Install .NET MAUI + run: dotnet workload install maui-windows + - name: Build + run: dotnet build src diff --git a/src/SentenceStudio/MauiProgram.cs b/src/SentenceStudio/MauiProgram.cs index ffd8c09..e8067a4 100755 --- a/src/SentenceStudio/MauiProgram.cs +++ b/src/SentenceStudio/MauiProgram.cs @@ -32,6 +32,7 @@ using Fonts; using SentenceStudio.Pages.Writing; using SentenceStudio.Pages.Warmup; +using System.Reflection; diff --git a/src/SentenceStudio/Pages/HowDoYouSay/HowDoYouSayPageModel.cs b/src/SentenceStudio/Pages/HowDoYouSay/HowDoYouSayPageModel.cs index bc683ea..13b440b 100755 --- a/src/SentenceStudio/Pages/HowDoYouSay/HowDoYouSayPageModel.cs +++ b/src/SentenceStudio/Pages/HowDoYouSay/HowDoYouSayPageModel.cs @@ -11,7 +11,6 @@ using CommunityToolkit.Maui.Media; using SentenceStudio.Data; using Plugin.Maui.Audio; -using AVFoundation; namespace SentenceStudio.Pages.HowDoYouSay; diff --git a/src/SentenceStudio/SentenceStudio.csproj b/src/SentenceStudio/SentenceStudio.csproj index 6bbba27..313aa63 100755 --- a/src/SentenceStudio/SentenceStudio.csproj +++ b/src/SentenceStudio/SentenceStudio.csproj @@ -1,7 +1,7 @@  - net9.0-android;net9.0-ios;net9.0-maccatalyst + $(TargetFrameworks);net9.0-windows10.0.19041.0