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
7 changes: 0 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ jobs:
runs-on: windows-latest
outputs:
version: ${{ steps.version.outputs.version }}
env:
SNK_BASE64: ${{ secrets.SNK_BASE64 }}
steps:
- uses: actions/checkout@v7

Expand All @@ -43,11 +41,6 @@ jobs:
if (-not (Select-String -Path 'CHANGELOG.txt' -SimpleMatch "SourceControlSwitcher - v$version" -Quiet)) { throw "CHANGELOG.txt has no section for v$version" }
"version=$version" >> $env:GITHUB_OUTPUT

- name: Restore strong-name key
if: env.SNK_BASE64 != ''
shell: pwsh
run: '[IO.File]::WriteAllBytes("$PWD/Key.snk", [Convert]::FromBase64String($env:SNK_BASE64))'

- name: Build
run: msbuild SourceControlSwitcher.slnx -restore -p:Configuration=Release -p:DeployExtension=false -v:minimal

Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

development/
dist/*
Key.snk


# User-specific files
Expand Down
3 changes: 2 additions & 1 deletion BUILD.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ Open SourceControlSwitcher.slnx and build (Ctrl+Shift+B), or from a Developer Co

The VSIX is written to target\Release\SourceControlSwitcher.vsix.

Key.snk (the strong-name key) is not in the repository: a local one is generated on the first build.
Key.snk is the strong-name key of the assembly. It is committed on purpose, as Microsoft recommends for
open-source projects: a strong name provides identity, not security.

Tests
-----
Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ SourceControlSwitcher - v1.2.0
VisualHG, VSHG, HgSccPackage (Mercurial support).
* Solution migrated to .slnx; unit tests added.
* Icon redrawn from the vector logo; Getting Started link in the extension details.
* Extension description localized in Italian, French and German (shown in Manage Extensions). Builds, tests and releases now run
* Extension description localized in Italian, French and German (shown in Manage Extensions).
* The strong-name key (Key.snk) is now in the repository, so every build has the same assembly identity. Builds, tests and releases now run
on GitHub Actions (CI on every push and pull request; tag vX.Y.Z publishes to the Marketplace).

SourceControlSwitcher - v1.1.2
Expand Down
Binary file added Key.snk
Binary file not shown.
4 changes: 0 additions & 4 deletions SourceControlSwitcher/SourceControlSwitcher.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,4 @@
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Import Project="$(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets" Condition="'$(VSToolsPath)' != ''" />
<!-- Key.snk is not committed: generate a local one when missing, wherever the project is built from. -->
<Target Name="EnsureStrongNameKey" BeforeTargets="BeforeBuild" Condition="!Exists('$(MSBuildProjectDirectory)\..\Key.snk')">
<Exec Command="&quot;$(TargetFrameworkSDKToolsDirectory)sn.exe&quot; -k &quot;$(MSBuildProjectDirectory)\..\Key.snk&quot;" />
</Target>
</Project>
Loading