Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 16 additions & 12 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: MSBuild
name: Build

on: [push]

env:
# Path to the solution file relative to the root of the project.
SOLUTION_FILE_PATH: .
SOLUTION_FILE_PATH: Stealth.sln

# Configuration type to build.
# You can convert this to a build matrix if you need coverage of multiple configuration types.
Expand All @@ -16,17 +16,21 @@ jobs:
runs-on: windows-latest

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7

- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Setup .NET SDK
uses: actions/setup-dotnet@v6
with:
dotnet-version: 8.0.x

- name: Restore NuGet packages
working-directory: ${{env.GITHUB_WORKSPACE}}
run: nuget restore ${{env.SOLUTION_FILE_PATH}}
- name: Restore
working-directory: ${{ env.GITHUB_WORKSPACE }}
run: dotnet restore ${{ env.SOLUTION_FILE_PATH }}

- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
# Add additional options to the MSBuild command line here (like platform or verbosity level).
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}}
working-directory: ${{ env.GITHUB_WORKSPACE }}
run: dotnet build ${{ env.SOLUTION_FILE_PATH }} --configuration ${{ env.BUILD_CONFIGURATION }} --no-restore

- name: Test
working-directory: ${{ env.GITHUB_WORKSPACE }}
run: dotnet test ${{ env.SOLUTION_FILE_PATH }} --configuration ${{ env.BUILD_CONFIGURATION }} --no-build
4 changes: 0 additions & 4 deletions Stealth/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@
<assemblyIdentity name="CommonServiceLocator" publicKeyToken="489b6accfaf20ef0" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.0.6.0" newVersion="2.0.6.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Validation" publicKeyToken="2fc06f0d701809a7" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.5.0.0" newVersion="2.5.0.0" />
Expand Down
5 changes: 0 additions & 5 deletions Stealth/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Windows;
using GalaSoft.MvvmLight.Threading;

namespace Stealth
{
Expand All @@ -8,9 +7,5 @@ namespace Stealth
/// </summary>
public partial class App : Application
{
static App()
{
DispatcherHelper.Initialize();
}
}
}
Loading