diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json index 967a14f..1e1b32e 100644 --- a/.config/dotnet-tools.json +++ b/.config/dotnet-tools.json @@ -3,10 +3,10 @@ "isRoot": true, "tools": { "cake.tool": { - "version": "1.1.0", + "version": "3.1.0", "commands": [ "dotnet-cake" ] } } -} \ No newline at end of file +} diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 174ec7b..9e1ec9d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,10 +19,10 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ windows-2019 ] + os: [ windows-2022 ] steps: - - name: Checkout the repository + - name: Checkout the repository uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 - name: Fetch all tags and branches run: git fetch --prune --unshallow diff --git a/README.md b/README.md index 244641a..48fefb7 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ Double clicking on a node in the tree will jump to the corresponding code implem ## Contributing -Cake.7zip follows the [Contributor Covenant][contrib-covenant] Code of Conduct. +Mediatr-vs follows the [Contributor Covenant][contrib-covenant] Code of Conduct. We accept Pull Requests. diff --git a/build.cake b/build.cake index 6f11dc7..2842829 100644 --- a/build.cake +++ b/build.cake @@ -28,22 +28,22 @@ Setup(ctx => { Verbose($"Updating version of {vsix.FullPath}"); XmlPoke( - vsix, - "/x:PackageManifest/x:Metadata/x:Identity/@Version", + vsix, + "/x:PackageManifest/x:Metadata/x:Identity/@Version", $"{gitVersion.MajorMinorPatch}.{gitVersion.PreReleaseNumber}", // TODO: differentiate between CI-builds and Releases - new XmlPokeSettings + new XmlPokeSettings { - Namespaces = new Dictionary + Namespaces = new Dictionary { { "x", "http://schemas.microsoft.com/developer/vsx-schema/2011" } } } ); } - - // TODO: source.extension.cs is generated from the vsixmanifest - if we modify the vsixmanifest, we should ensure + + // TODO: source.extension.cs is generated from the vsixmanifest - if we modify the vsixmanifest, we should ensure // that source.extension.cs is updated, too. - + version = gitVersion.SemVer; Information($"Building version {gitVersion.SemVer}."); } @@ -52,11 +52,11 @@ Setup(ctx => Information("Local build."); var vsix = GetFiles("./src/**/*.vsixmanifest").First(); version = XmlPeek( - vsix, - "/x:PackageManifest/x:Metadata/x:Identity/@Version", - new XmlPeekSettings + vsix, + "/x:PackageManifest/x:Metadata/x:Identity/@Version", + new XmlPeekSettings { - Namespaces = new Dictionary + Namespaces = new Dictionary { { "x", "http://schemas.microsoft.com/developer/vsx-schema/2011" } } @@ -96,7 +96,7 @@ Task("Build") MSBuild(solutionPath, settings => settings.SetPlatformTarget(PlatformTarget.MSIL) .SetMSBuildPlatform(MSBuildPlatform.x86) - .UseToolVersion(MSBuildToolVersion.VS2019) + .UseToolVersion(MSBuildToolVersion.VS2022) .SetVerbosity(Verbosity.Quiet) .WithTarget("Build") .SetConfiguration(configuration)); @@ -134,11 +134,11 @@ Task("PublishToOpenGallery") System.Net.Http.HttpMethod.Post, url) { - Content = content + Content = content }; var response = client.Send(request); - if(response.IsSuccessStatusCode) + if(response.IsSuccessStatusCode) { Information($"Uploaded {fileName}"); } @@ -147,7 +147,7 @@ Task("PublishToOpenGallery") Warning($"Error uploading vsix. Status:{response.StatusCode} - {response.ReasonPhrase}"); Verbose(response.Content.ReadAsStringAsync().GetAwaiter().GetResult()); } - + } }); @@ -155,4 +155,4 @@ Task("Default") .IsDependentOn("Build") .IsDependentOn("PublishToOpenGallery"); -RunTarget(target); \ No newline at end of file +RunTarget(target);