diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000..ea5121b
--- /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.OpenBinFolder/CodingWithCalvin.OpenBinFolder.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.OpenBinFolder/bin/Release/CodingWithCalvin.OpenBinFolder.info'
+ json: '{"sha":"${{ github.sha }}", "version":"${{ steps.version.outputs.version }}"}'
+
+ - name: 4. Upload Artifact
+ uses: actions/upload-artifact@v4
+ with:
+ path: |
+ src/CodingWithCalvin.OpenBinFolder/bin/Release/CodingWithCalvin.OpenBinFolder.info
+ src/CodingWithCalvin.OpenBinFolder/bin/Release/CodingWithCalvin.OpenBinFolder.vsix
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 7aadabf..817592b 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 81e87a8..0000000
--- a/.github/workflows/release_build_and_deploy.yml
+++ /dev/null
@@ -1,46 +0,0 @@
-name: 'Build and Deploy'
-
-on:
- workflow_dispatch:
- pull_request:
- types: [opened, reopened]
- push:
- branches:
- - main
- tags-ignore:
- - '[0-9]+.[0-9]+.[0-9]+.[0-9]+'
-
-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.OpenBinFolder/source.extension.vsixmanifest'
- extension-source-file: 'src/CodingWithCalvin.OpenBinFolder/source.extension.cs'
-
- - name: 2. Restoring Packages
- run: nuget restore src/CodingWithCalvin.OpenBinFolder.slnx
-
- - name: 3. Building Project
- run: msbuild 'src/CodingWithCalvin.OpenBinFolder/CodingWithCalvin.OpenBinFolder.csproj' /p:configuration='Release' /p:platform='x64' /p:DeployExtension=False
-
- - name: 4. Create Information File
- uses: jsdaniell/create-json@v1.2.3
- with:
- name: 'src/CodingWithCalvin.OpenBinFolder/bin/x64/Release/CodingWithCalvin.OpenBinFolder.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.OpenBinFolder/bin/x64/Release/CodingWithCalvin.OpenBinFolder.info
- src/CodingWithCalvin.OpenBinFolder/bin/x64/Release/CodingWithCalvin.OpenBinFolder.vsix
diff --git a/src/CodingWithCalvin.OpenBinFolder/CodingWithCalvin.OpenBinFolder.csproj b/src/CodingWithCalvin.OpenBinFolder/CodingWithCalvin.OpenBinFolder.csproj
index 019a5f6..8fac116 100644
--- a/src/CodingWithCalvin.OpenBinFolder/CodingWithCalvin.OpenBinFolder.csproj
+++ b/src/CodingWithCalvin.OpenBinFolder/CodingWithCalvin.OpenBinFolder.csproj
@@ -1,111 +1,31 @@
-
-
+
+
- 16.0
- $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)
- true
-
-
-
-
- 15.0
-
-
-
- x64
- bin\x64\Release\
- true
- X64
-
-
- true
- bin\x64\Debug\
- x64
- full
- TRACE;DEBUG;X64
-
-
-
- Debug
- x64
- 2.0
- {82b43b9b-a64c-4715-b499-d71e9ca2bd60};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
- {66C238AD-8111-4579-A40C-48859AB61F25}
- Library
- Properties
+ net48
CodingWithCalvin.OpenBinFolder
CodingWithCalvin.OpenBinFolder
- v4.8
- true
- true
- true
- true
- true
- false
- Program
- $(DevEnvDir)devenv.exe
- /rootsuffix Exp
- v3
+ latest
+ bin/$(Configuration)/
+
+
+ True
+
+
-
-
- True
- True
- VSCommandTable.vsct
-
-
-
-
- True
- True
- source.extension.vsixmanifest
-
+
+
-
- resources\LICENSE
+
true
-
- Designer
- VsixManifestGenerator
- source.extension.cs
-
-
-
-
-
-
-
-
-
-
-
- VsctGenerator
- VSCommandTable.cs
- Menus.ctmenu
-
-
-
-
- 15.0.1
-
-
- 17.0.5232
- runtime; build; native; contentfiles; analyzers;
-
-
-
-
- resources\folder-icon.png
+
true
-
- resources\logo.png
+
true
-
-
-
\ No newline at end of file
+
+
diff --git a/src/CodingWithCalvin.OpenBinFolder/source.extension.vsixmanifest b/src/CodingWithCalvin.OpenBinFolder/source.extension.vsixmanifest
index fd2f11f..714d510 100644
--- a/src/CodingWithCalvin.OpenBinFolder/source.extension.vsixmanifest
+++ b/src/CodingWithCalvin.OpenBinFolder/source.extension.vsixmanifest
@@ -10,9 +10,12 @@
bin,debug,folder,output
-