From b6036d339c0898b9a535cb7d8ea6a70b24032a34 Mon Sep 17 00:00:00 2001 From: "Calvin A. Allen" Date: Fri, 2 Jan 2026 18:33:23 -0500 Subject: [PATCH 1/2] feat: modernize to SDK-style project - Convert .csproj to SDK-style using CodingWithCalvin.VsixSdk/0.3.0 - Standardize output path to bin/$(Configuration)/ - Replace msbuild workflow with dotnet build - Rename build workflow from release_build_and_deploy.yml to build.yml - Use CalVer versioning (YYYY.M.D.RunNumber) --- .github/workflows/build.yml | 42 ++++++++ .github/workflows/publish.yml | 4 +- .../workflows/release_build_and_deploy.yml | 44 --------- ...CodingWithCalvin.BreakpointNotifier.csproj | 99 +++---------------- 4 files changed, 60 insertions(+), 129 deletions(-) create mode 100644 .github/workflows/build.yml delete mode 100644 .github/workflows/release_build_and_deploy.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..738d0ca --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,42 @@ +name: Build + +on: + workflow_dispatch: + pull_request: + types: [opened, reopened] + push: + branches: + - main + +jobs: + build: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v4 + + - name: 1. Generate Version + id: version + run: | + $year = (Get-Date).Year + $month = (Get-Date).Month + $day = (Get-Date).Day + $version = "$year.$month.$day.${{ github.run_number }}" + echo "version=$version" >> $env:GITHUB_OUTPUT + shell: pwsh + + - name: 2. Build Project + run: dotnet build src/CodingWithCalvin.BreakpointNotifier/CodingWithCalvin.BreakpointNotifier.csproj -c Release -p:SetVsixVersion=${{ steps.version.outputs.version }} + + - name: 3. Create Information File + uses: jsdaniell/create-json@v1.2.3 + with: + name: 'src/CodingWithCalvin.BreakpointNotifier/bin/Release/CodingWithCalvin.BreakpointNotifier.info' + json: '{"sha":"${{ github.sha }}", "version":"${{ steps.version.outputs.version }}"}' + + - name: 4. Upload Artifact + uses: actions/upload-artifact@v4 + with: + path: | + src/CodingWithCalvin.BreakpointNotifier/bin/Release/CodingWithCalvin.BreakpointNotifier.info + src/CodingWithCalvin.BreakpointNotifier/bin/Release/CodingWithCalvin.BreakpointNotifier.vsix diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b1c46f9..6f70bad 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -19,9 +19,9 @@ jobs: - name: 1. Download artifact id: download-artifact - uses: dawidd6/action-download-artifact@v2 + uses: dawidd6/action-download-artifact@v6 with: - workflow: release_build_and_deploy.yml + workflow: build.yml workflow_conclusion: success - name: 2. Parse Artifact Manifest diff --git a/.github/workflows/release_build_and_deploy.yml b/.github/workflows/release_build_and_deploy.yml deleted file mode 100644 index 4691e86..0000000 --- a/.github/workflows/release_build_and_deploy.yml +++ /dev/null @@ -1,44 +0,0 @@ -name: 'Build and Deploy' - -on: - workflow_dispatch: - pull_request: - types: [opened, reopened] - push: - branches: - - main - -jobs: - Release-Build-and-Deploy: - runs-on: windows-latest - - steps: - - uses: actions/checkout@v4 - - uses: microsoft/setup-msbuild@v2 - - uses: nuget/setup-nuget@v2 - - - name: 1. Versioning Release - id: step-version - uses: CodingWithCalvin/GHA-VSVsixVersioner@v1 - with: - extension-manifest-file: 'src/CodingWithCalvin.BreakpointNotifier/source.extension.vsixmanifest' - extension-source-file: 'src/CodingWithCalvin.BreakpointNotifier/source.extension.cs' - - - name: 2. Restoring Packages - run: nuget restore src/CodingWithCalvin.BreakpointNotifier.slnx - - - name: 3. Building Project - run: msbuild 'src/CodingWithCalvin.BreakpointNotifier/CodingWithCalvin.BreakpointNotifier.csproj' /p:configuration='Release' /p:platform='AnyCPU' /p:DeployExtension=False - - - name: 4. Create Information File - uses: jsdaniell/create-json@v1.2.3 - with: - name: 'src/CodingWithCalvin.BreakpointNotifier/bin/Release/CodingWithCalvin.BreakpointNotifier.info' - json: '{"sha":"${{ github.sha }}", "version":"${{ steps.step-version.outputs.version }}"}' - - - name: 5. Publishing Build Artifact - uses: actions/upload-artifact@v4 - with: - path: | - src/CodingWithCalvin.BreakpointNotifier/bin/Release/CodingWithCalvin.BreakpointNotifier.info - src/CodingWithCalvin.BreakpointNotifier/bin/Release/CodingWithCalvin.BreakpointNotifier.vsix diff --git a/src/CodingWithCalvin.BreakpointNotifier/CodingWithCalvin.BreakpointNotifier.csproj b/src/CodingWithCalvin.BreakpointNotifier/CodingWithCalvin.BreakpointNotifier.csproj index 8b38d88..d070a83 100644 --- a/src/CodingWithCalvin.BreakpointNotifier/CodingWithCalvin.BreakpointNotifier.csproj +++ b/src/CodingWithCalvin.BreakpointNotifier/CodingWithCalvin.BreakpointNotifier.csproj @@ -1,95 +1,28 @@ - - + + - 17.0 - $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) - true - - - - true - bin\Debug\ - TRACE;DEBUG - full - AnyCPU - latest - True - - - true - bin\Release\ - full - AnyCPU - latest - true - True - - - - Debug - AnyCPU - 2.0 - {82b43b9b-a64c-4715-b499-d71e9ca2bd60};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {66C238AD-8111-4579-A40C-48859AB61F25} - Library - Properties + net48 CodingWithCalvin.BreakpointNotifier CodingWithCalvin.BreakpointNotifier - v4.8 - true - true - true - true - true - false - Program - $(DevEnvDir)devenv.exe - /rootsuffix Exp - v3 + latest + bin/$(Configuration)/ + + + True + + - - - - - True - True - source.extension.vsixmanifest - + + - - resources\LICENSE + true - - Designer - VsixManifestGenerator - source.extension.cs - - - - - - - - - - - 17.14.40265 - - - 17.14.2120 - runtime; build; native; contentfiles; analyzers - - - - - - resources\logo.png + true - - - \ No newline at end of file + + From ed208d8567859c6b6d14ffa744b54641a0c1019c Mon Sep 17 00:00:00 2001 From: "Calvin A. Allen" Date: Fri, 2 Jan 2026 18:51:37 -0500 Subject: [PATCH 2/2] fix: remove duplicate AssemblyInfo.cs for SDK-style project --- .gitignore | 3 +++ .../Properties/AssemblyInfo.cs | 15 --------------- 2 files changed, 3 insertions(+), 15 deletions(-) delete mode 100644 src/CodingWithCalvin.BreakpointNotifier/Properties/AssemblyInfo.cs diff --git a/.gitignore b/.gitignore index eeceda7..17c49b8 100644 --- a/.gitignore +++ b/.gitignore @@ -183,6 +183,9 @@ orleans.codegen.cs # RIA/Silverlight projects Generated_Code/ +# SDK-style project generated files +Generated/ + # Backup & report files from converting an old project file # to a newer Visual Studio version. Backup files are not needed, # because we have git ;-) diff --git a/src/CodingWithCalvin.BreakpointNotifier/Properties/AssemblyInfo.cs b/src/CodingWithCalvin.BreakpointNotifier/Properties/AssemblyInfo.cs deleted file mode 100644 index b3d8cb7..0000000 --- a/src/CodingWithCalvin.BreakpointNotifier/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System.Reflection; -using System.Runtime.InteropServices; -using CodingWithCalvin.BreakpointNotifier; - -[assembly: AssemblyTitle(Vsix.Name)] -[assembly: AssemblyDescription(Vsix.Description)] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany(Vsix.Author)] -[assembly: AssemblyProduct(Vsix.Name)] -[assembly: AssemblyCopyright("")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] -[assembly: ComVisible(false)] -[assembly: AssemblyVersion(Vsix.Version)] -[assembly: AssemblyFileVersion(Vsix.Version)]