Skip to content

Commit 47bbe45

Browse files
committed
Standardization 2.0
1 parent 5e88a6c commit 47bbe45

15 files changed

+126
-106
lines changed

.gitattributes

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/workflows/publish.yml

Lines changed: 29 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,44 @@ name: Publish to VS Marketplace
22

33
on:
44
workflow_dispatch:
5-
push:
6-
tags:
7-
- "release/**"
85

96
jobs:
107
publish:
118
runs-on: windows-latest
129
steps:
1310
- name: Checkout
14-
uses: actions/checkout@v3
15-
16-
- name: Download artifact
11+
uses: actions/checkout@v4
12+
13+
- name: 1. Download artifact
1714
id: download-artifact
1815
uses: dawidd6/action-download-artifact@v2
1916
with:
20-
github_token: ${{secrets.GH_TOKEN}}
17+
github_token: ${{ secrets.GH_SECRET }}
2118
workflow: release_build_and_deploy.yml
2219
workflow_conclusion: success
23-
24-
- name: Publish Release to Marketplace
25-
uses: CalvinAllen/action-vs-marketplace-publish@v1
20+
21+
- name: 2. Parse Artifact Manifest
22+
id: artifact_manifest
23+
uses: ActionsTools/read-json-action@main
24+
with:
25+
file_path: ./artifact/CodingWithCalvin.BreakpointNotifier.info
26+
27+
- name: 3. Create Tag & Release
28+
uses: ncipollo/[email protected]
2629
with:
27-
marketplace-pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
28-
publish-manifest-path: ./src/extension.manifest.json
29-
vsix-path: ./artifact/CodingWithCalvin.BreakpointNotifier.Vsix.vsix
30+
artifacts: ./artifact/CodingWithCalvin.BreakpointNotifier.vsix
31+
generateReleaseNotes: true
32+
makeLatest: true
33+
token: ${{ secrets.GH_SECRET }}
34+
commit: ${{ steps.artifact_manifest.outputs.sha }}
35+
tag: ${{ steps.artifact_manifest.outputs.version }}
36+
37+
- name: 4. Publish Release to Marketplace
38+
if: success()
39+
uses: CodingWithCalvin/GHA-VSMarketplacePublisher@v1
40+
with:
41+
marketplace-pat: ${{ secrets.VS_PAT }}
42+
publish-manifest-path: ./resources/extension.manifest.json
43+
vsix-path: ./artifact/CodingWithCalvin.BreakpointNotifier.vsix
44+
45+
Lines changed: 38 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,46 @@
1-
name: "Build and Deploy"
2-
1+
name: 'Build and Deploy'
2+
33
on:
44
workflow_dispatch:
5+
pull_request:
6+
types: [opened, reopened]
57
push:
6-
branches:
8+
branches:
79
- main
810
tags-ignore:
9-
- "release/**"
10-
11+
- 'v[0-9]+.[0-9]+.[0-9]+.[0-9]+'
12+
1113
jobs:
12-
Release-Build-and-Deploy:
14+
Release-Build-and-Deploy:
1315
runs-on: windows-latest
14-
16+
1517
steps:
16-
- uses: actions/checkout@v3
17-
- uses: microsoft/[email protected]
18-
19-
- name: 1. Versioning Release
20-
uses: CalvinAllen/action-vs-vsix-versioner@v1
21-
with:
22-
extension-manifest-file: "./src/CodingWithCalvin.BreakpointNotifier.Vsix/source.extension.vsixmanifest"
23-
extension-source-file: "./src/CodingWithCalvin.BreakpointNotifier.Vsix/source.extension.cs"
24-
25-
- name: 2. Bootstrapping NuGet Installer
26-
uses: nuget/[email protected]
27-
28-
- name: 3. Restoring Packages
29-
run: nuget restore ./src/CodingWithCalvin.BreakpointNotifier.sln
30-
31-
- name: 4. Building Project
32-
run: msbuild './src/CodingWithCalvin.BreakpointNotifier.Vsix/CodingWithCalvin.BreakpointNotifier.Vsix.csproj' /p:configuration='Release' /p:platform='x64'
33-
34-
- name: 5. Publishing Build Artifact
35-
uses: actions/upload-artifact@v3
36-
with:
37-
path: "./src/CodingWithCalvin.BreakpointNotifier.Vsix/bin/x64/Release/CodingWithCalvin.BreakpointNotifier.Vsix.vsix"
18+
- uses: actions/checkout@v4
19+
- uses: microsoft/setup-msbuild@v2
20+
- uses: nuget/setup-nuget@v2
21+
22+
- name: 1. Versioning Release
23+
id: step-version
24+
uses: CodingWithCalvin/GHA-VSVsixVersioner@v1
25+
with:
26+
extension-manifest-file: 'src/CodingWithCalvin.BreakpointNotifier/source.extension.vsixmanifest'
27+
extension-source-file: 'src/CodingWithCalvin.BreakpointNotifier/source.extension.cs'
28+
29+
- name: 2. Restoring Packages
30+
run: nuget restore src/CodingWithCalvin.BreakpointNotifier.sln
31+
32+
- name: 3. Building Project
33+
run: msbuild 'src/CodingWithCalvin.BreakpointNotifier/CodingWithCalvin.BreakpointNotifier.csproj' /p:configuration='Release' /p:platform='x64' /p:DeployExtension=False
34+
35+
- name: 4. Create Information File
36+
uses: jsdaniell/[email protected]
37+
with:
38+
name: 'src/CodingWithCalvin.BreakpointNotifier/bin/x64/Release/CodingWithCalvin.BreakpointNotifier.info'
39+
json: '{"sha":"${{ github.sha }}", "version":"${{ steps.step-version.outputs.version }}"}'
40+
41+
- name: 5. Publishing Build Artifact
42+
uses: actions/upload-artifact@v4
43+
with:
44+
path: |
45+
src/CodingWithCalvin.BreakpointNotifier/bin/x64/Release/CodingWithCalvin.BreakpointNotifier.info
46+
src/CodingWithCalvin.BreakpointNotifier/bin/x64/Release/CodingWithCalvin.BreakpointNotifier.vsix

LICENSE.txt renamed to LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019 Calvin A. Allen
3+
Copyright (c) 2024 Coding with Calvin
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
21+
SOFTWARE.

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
# Breakpoint Notifier -- 2022+ Edition
1+
# Breakpoint Notifier
22

3-
A Visual Studio (2022 and up) extension that monitors debugging events, and when a breakpoint is hit, raises a messagebox to the screen. This will (should) cause Visual Studio to pop to the front (perhaps taking over focus) if you were waiting for a breakpoint to get hit during a long running process and decided to bide your time by watching YouTube videos.
3+
A Visual Studio extension that monitors debugging events, and when a breakpoint is hit, raises a messagebox to the screen. This will (should) cause Visual Studio to pop to the front (perhaps taking over focus) if you were waiting for a breakpoint to get hit during a long running process and decided to bide your time by watching YouTube videos.
44

55
## License
66

7-
[![License - MIT](https://img.shields.io/github/license/calvinallen/BreakpointNotifier?style=for-the-badge)](https://img.shields.io/github/license/calvinallen/BreakpointNotifier?style=for-the-badge)
7+
[![License - MIT](https://img.shields.io/github/license/codingwithcalvin/VS-BreakpointNotifier?style=for-the-badge)](https://img.shields.io/github/license/codingwithcalvin/vs-BreakpointNotifier?style=for-the-badge)
88

99
## Build Status
1010

11-
![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/CalvinAllen/BreakpointNotifier/release_build_and_deploy.yml?style=for-the-badge)
11+
![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/codingwithcalvin/VS-BreakpointNotifier/release_build_and_deploy.yml?style=for-the-badge)
1212

1313
## Marketplace Status
1414

15-
[![Marketplace Installations](https://img.shields.io/visual-studio-marketplace/i/coding-with-calvin.BreakpointNotifier?style=for-the-badge)](https://img.shields.io/visual-studio-marketplace/i/coding-with-calvin.BreakpointNotifier?style=for-the-badge) [![Marketplace Downloads](https://img.shields.io/visual-studio-marketplace/d/coding-with-calvin.BreakpointNotifier?style=for-the-badge)](https://img.shields.io/visual-studio-marketplace/d/coding-with-calvin.BreakpointNotifier?style=for-the-badge)
16-
[![Marketplace Version](https://img.shields.io/visual-studio-marketplace/v/coding-with-calvin.BreakpointNotifier?style=for-the-badge)](https://img.shields.io/visual-studio-marketplace/v/coding-with-calvin.BreakpointNotifier?style=for-the-badge) [![Marketplace Rating](https://img.shields.io/visual-studio-marketplace/r/coding-with-calvin.BreakpointNotifier?style=for-the-badge)](https://img.shields.io/visual-studio-marketplace/r/coding-with-calvin.BreakpointNotifier?style=for-the-badge)
15+
[![Marketplace Installations](https://img.shields.io/visual-studio-marketplace/i/codingwithcalvin.VS-BreakpointNotifier?style=for-the-badge)](https://img.shields.io/visual-studio-marketplace/i/codingwithcalvin.VS-BreakpointNotifier?style=for-the-badge) [![Marketplace Downloads](https://img.shields.io/visual-studio-marketplace/d/codingwithcalvin.VS-BreakpointNotifier?style=for-the-badge)](https://img.shields.io/visual-studio-marketplace/d/codingwithcalvin.VS-BreakpointNotifier?style=for-the-badge)
16+
[![Marketplace Version](https://img.shields.io/visual-studio-marketplace/v/codingwithcalvin.VS-BreakpointNotifier?style=for-the-badge)](https://img.shields.io/visual-studio-marketplace/v/codingwithcalvin.VS-BreakpointNotifier?style=for-the-badge) [![Marketplace Rating](https://img.shields.io/visual-studio-marketplace/r/codingwithcalvin.VS-BreakpointNotifier?style=for-the-badge)](https://img.shields.io/visual-studio-marketplace/r/codingwithcalvin.VS-BreakpointNotifier?style=for-the-badge)
1717

1818
## Contribute
1919

resources/extension.manifest.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"$schema": "http://json.schemastore.org/vsix-publish",
3+
"categories": [
4+
"coding",
5+
"other",
6+
"programming languages"
7+
],
8+
"identity": {
9+
"internalName": "VS-BreakpointNotifier"
10+
},
11+
"overview": "../README.md",
12+
"publisher": "coding-with-calvin"
13+
}

src/CodingWithCalvin.BreakpointNotifier.Vsix/Resources/logo.png renamed to resources/logo.png

File renamed without changes.

src/CodingWithCalvin.BreakpointNotifier.sln

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,15 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 17
44
VisualStudioVersion = 17.5.33516.290
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CodingWithCalvin.BreakpointNotifier.Vsix", "CodingWithCalvin.BreakpointNotifier.Vsix\CodingWithCalvin.BreakpointNotifier.Vsix.csproj", "{66C238AD-8111-4579-A40C-48859AB61F25}"
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CodingWithCalvin.BreakpointNotifier", "CodingWithCalvin.BreakpointNotifier\CodingWithCalvin.BreakpointNotifier.csproj", "{66C238AD-8111-4579-A40C-48859AB61F25}"
7+
EndProject
8+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{3FAD129A-E7A4-4A75-B797-BC6724A1253A}"
9+
ProjectSection(SolutionItems) = preProject
10+
..\resources\extension.manifest.json = ..\resources\extension.manifest.json
11+
..\.github\workflows\publish.yml = ..\.github\workflows\publish.yml
12+
..\README.md = ..\README.md
13+
..\.github\workflows\release_build_and_deploy.yml = ..\.github\workflows\release_build_and_deploy.yml
14+
EndProjectSection
715
EndProject
816
Global
917
GlobalSection(SolutionConfigurationPlatforms) = preSolution

src/CodingWithCalvin.BreakpointNotifier.Vsix/BreakpointNotifierPackage.cs renamed to src/CodingWithCalvin.BreakpointNotifier/BreakpointNotifierPackage.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,18 @@
55
using Microsoft.VisualStudio.Shell.Interop;
66
using Task = System.Threading.Tasks.Task;
77

8-
namespace CodingWithCalvin.BreakpointNotifier.Vsix
8+
namespace CodingWithCalvin.BreakpointNotifier
99
{
1010
[PackageRegistration(UseManagedResourcesOnly = true, AllowsBackgroundLoading = true)]
1111
[InstalledProductRegistration(Vsix.Name, Vsix.Description, Vsix.Version)]
1212
[Guid("136f3004-4048-4dd9-bd6d-7ff910b2c900")]
1313
[ProvideAutoLoad(UIContextGuids80.SolutionExists, PackageAutoLoadFlags.BackgroundLoad)]
1414
public sealed class BreakpointNotifierPackage : AsyncPackage
1515
{
16-
protected override async Task InitializeAsync(CancellationToken cancellationToken, IProgress<ServiceProgressData> progress)
16+
protected override async Task InitializeAsync(
17+
CancellationToken cancellationToken,
18+
IProgress<ServiceProgressData> progress
19+
)
1720
{
1821
await JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);
1922

src/CodingWithCalvin.BreakpointNotifier.Vsix/CodingWithCalvin.BreakpointNotifier.Vsix.csproj renamed to src/CodingWithCalvin.BreakpointNotifier/CodingWithCalvin.BreakpointNotifier.csproj

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
<ProjectGuid>{66C238AD-8111-4579-A40C-48859AB61F25}</ProjectGuid>
3434
<OutputType>Library</OutputType>
3535
<AppDesignerFolder>Properties</AppDesignerFolder>
36-
<RootNamespace>CodingWithCalvin.BreakpointNotifier.Vsix</RootNamespace>
37-
<AssemblyName>CodingWithCalvin.BreakpointNotifier.Vsix</AssemblyName>
36+
<RootNamespace>CodingWithCalvin.BreakpointNotifier</RootNamespace>
37+
<AssemblyName>CodingWithCalvin.BreakpointNotifier</AssemblyName>
3838
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
3939
<GeneratePkgDefFile>true</GeneratePkgDefFile>
4040
<IncludeAssemblyInVSIXContainer>true</IncludeAssemblyInVSIXContainer>
@@ -58,6 +58,10 @@
5858
</Compile>
5959
</ItemGroup>
6060
<ItemGroup>
61+
<Content Include="..\..\LICENSE">
62+
<Link>resources\LICENSE</Link>
63+
<IncludeInVSIX>true</IncludeInVSIX>
64+
</Content>
6165
<None Include="source.extension.vsixmanifest">
6266
<SubType>Designer</SubType>
6367
<Generator>VsixManifestGenerator</Generator>
@@ -81,9 +85,9 @@
8185
</ItemGroup>
8286
<ItemGroup />
8387
<ItemGroup>
84-
<Content Include="Resources\logo.png">
88+
<Content Include="..\..\resources\logo.png">
89+
<Link>resources\logo.png</Link>
8590
<IncludeInVSIX>true</IncludeInVSIX>
86-
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
8791
</Content>
8892
</ItemGroup>
8993
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

0 commit comments

Comments
 (0)