diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 630e1c489..70bf6f99f 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -64,8 +64,22 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - - name: Autobuild - uses: github/codeql-action/autobuild@v3 + #- name: Autobuild + # uses: github/codeql-action/autobuild@v3 + + # Note that direct use of `github/codeql-action/autobuild@v3` is not recommended. Try to use `dotnet build` or `msbuild` instead. + + - name: Setup NuGet + uses: NuGet/setup-nuget@v2 + + - name: Add MSBuild to PATH + uses: microsoft/setup-msbuild@v2 + + - name: Restore NuGet packages + run: nuget restore OpenKh.sln + + - name: Build solution (MSBuild) + run: msbuild OpenKh.sln /m /t:Build /p:Configuration=Release /p:Platform="Any CPU" # â„šī¸ Command-line programs to run using the OS shell. # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun diff --git a/OpenKh.Command.IdxImg/EpicGamesAssets.cs b/OpenKh.Command.IdxImg/EpicGamesAssets.cs index f566798c0..642fbb8ff 100644 --- a/OpenKh.Command.IdxImg/EpicGamesAssets.cs +++ b/OpenKh.Command.IdxImg/EpicGamesAssets.cs @@ -138,7 +138,7 @@ protected int OnExecute(CommandLineApplication app) var map = new ConcurrentDictionary(); var patcher = new PatcherProcessor(); - foreach (var mod_name in enabled.Reverse()) + foreach (var mod_name in enabled.AsEnumerable().Reverse()) { var mod_folder = Path.Combine(ModsFolder, mod_name); var metadata = File.OpenRead(Path.Combine(mod_folder, "mod.yml")).Using(Metadata.Read); diff --git a/OpenKh.Tools.Kh2MsetMotionEditor/Usecases/SearchForKh2AssetFileUsecase.cs b/OpenKh.Tools.Kh2MsetMotionEditor/Usecases/SearchForKh2AssetFileUsecase.cs index 86e9f7753..3b4627b8d 100644 --- a/OpenKh.Tools.Kh2MsetMotionEditor/Usecases/SearchForKh2AssetFileUsecase.cs +++ b/OpenKh.Tools.Kh2MsetMotionEditor/Usecases/SearchForKh2AssetFileUsecase.cs @@ -73,6 +73,7 @@ string[] SplitToPathNodes(string path) => string.Join( Path.DirectorySeparatorChar, SplitToPathNodes(Path.GetDirectoryName(loadFrom)!) + .AsEnumerable() .Reverse() .Skip(numRelativeDepth - 1) .Reverse()