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
42 changes: 42 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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.GitRanger/CodingWithCalvin.GitRanger.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.GitRanger/bin/Release/CodingWithCalvin.GitRanger.info'
json: '{"sha":"${{ github.sha }}", "version":"${{ steps.version.outputs.version }}"}'

- name: 4. Upload Artifact
uses: actions/upload-artifact@v4
with:
path: |
src/CodingWithCalvin.GitRanger/bin/Release/CodingWithCalvin.GitRanger.info
src/CodingWithCalvin.GitRanger/bin/Release/CodingWithCalvin.GitRanger.vsix
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
id: download-artifact
uses: dawidd6/action-download-artifact@v6
with:
workflow: release_build_and_deploy.yml
workflow: build.yml
workflow_conclusion: success

- name: 2. Parse Artifact Manifest
Expand Down
46 changes: 0 additions & 46 deletions .github/workflows/release_build_and_deploy.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ bld/
[Oo]bj/
[Ll]og/
[Ll]ogs/
Generated/

# Visual Studio files
.vs/
Expand Down
132 changes: 20 additions & 112 deletions src/CodingWithCalvin.GitRanger/CodingWithCalvin.GitRanger.csproj
Original file line number Diff line number Diff line change
@@ -1,131 +1,38 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="17.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<MinimumVisualStudioVersion>17.0</MinimumVisualStudioVersion>
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
</PropertyGroup>
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<Project Sdk="CodingWithCalvin.VsixSdk/0.3.0">

<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{A1B2C3D4-E5F6-7890-ABCD-EF1234567890}</ProjectGuid>
<ProjectTypeGuids>{82b43b9b-a64c-4715-b499-d71e9ca2bd60};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<TargetFramework>net48</TargetFramework>
<RootNamespace>CodingWithCalvin.GitRanger</RootNamespace>
<AssemblyName>CodingWithCalvin.GitRanger</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<GeneratePkgDefFile>true</GeneratePkgDefFile>
<IncludeAssemblyInVSIXContainer>true</IncludeAssemblyInVSIXContainer>
<IncludeDebugSymbolsInVSIXContainer>false</IncludeDebugSymbolsInVSIXContainer>
<IncludeDebugSymbolsInLocalVSIXDeployment>false</IncludeDebugSymbolsInLocalVSIXDeployment>
<CopyBuildOutputToOutputDirectory>true</CopyBuildOutputToOutputDirectory>
<CopyOutputSymbolsToOutputDirectory>false</CopyOutputSymbolsToOutputDirectory>
<UseCodebase>true</UseCodebase>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<DeployExtension Condition="'$(DeployExtension)' == ''">true</DeployExtension>
<OutputPath>bin/$(Configuration)/</OutputPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>

<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
<DeployExtension>True</DeployExtension>
</PropertyGroup>

<ItemGroup>
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Design" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xaml" />
<Reference Include="WindowsBase" />
</ItemGroup>
<ItemGroup>
<Compile Include="GitRangerPackage.cs" />
<Compile Include="source.extension.cs" />
<Compile Include="Commands\BlameCommands.cs" />
<Compile Include="Services\GitService.cs" />
<Compile Include="Services\ThemeService.cs" />
<Compile Include="Services\BlameService.cs" />
<Compile Include="Options\GeneralOptionsPage.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="Options\GeneralOptions.cs" />
<Compile Include="Editor\BlameAdornment\BlameAdornmentFactory.cs" />
<Compile Include="Editor\BlameAdornment\BlameAdornment.cs" />
<Compile Include="Editor\GutterMargin\BlameMarginFactory.cs" />
<Compile Include="Editor\GutterMargin\BlameMargin.cs" />
<Compile Include="Models\BlameLineInfo.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="source.extension.vsixmanifest">
<SubType>Designer</SubType>
</None>
<PackageReference Include="Community.VisualStudio.Toolkit.17" Version="17.0.507" />
<PackageReference Include="Microsoft.VisualStudio.SDK" Version="17.14.40265" ExcludeAssets="runtime" />
<PackageReference Include="LibGit2Sharp" Version="0.30.0" />
<PackageReference Include="SkiaSharp" Version="2.88.7" />
<PackageReference Include="SkiaSharp.Views.WPF" Version="2.88.7" />
</ItemGroup>

<ItemGroup>
<VSCTCompile Include="VSCommandTable.vsct">
<ResourceName>Menus.ctmenu</ResourceName>
<SubType>Designer</SubType>
</VSCTCompile>
<ProjectReference Include="..\CodingWithCalvin.GitRanger.Core\CodingWithCalvin.GitRanger.Core.csproj" />
</ItemGroup>

<ItemGroup>
<Content Include="..\..\resources\icon.png">
<Link>Resources\icon.png</Link>
<Content Include="..\..\resources\icon.png" Link="Resources\icon.png">
<IncludeInVSIX>true</IncludeInVSIX>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="..\..\LICENSE">
<Link>Resources\LICENSE</Link>
<Content Include="..\..\LICENSE" Link="Resources\LICENSE">
<IncludeInVSIX>true</IncludeInVSIX>
</Content>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\CodingWithCalvin.GitRanger.Core\CodingWithCalvin.GitRanger.Core.csproj">
<Project>{B2C3D4E5-F6A7-8901-BCDE-F12345678901}</Project>
<Name>CodingWithCalvin.GitRanger.Core</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Community.VisualStudio.Toolkit.17">
<Version>17.0.507</Version>
</PackageReference>
<PackageReference Include="Microsoft.VisualStudio.SDK">
<Version>17.10.40171</Version>
<ExcludeAssets>runtime</ExcludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.VSSDK.BuildTools">
<Version>17.10.2179</Version>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="LibGit2Sharp">
<Version>0.30.0</Version>
</PackageReference>
<PackageReference Include="SkiaSharp">
<Version>2.88.7</Version>
</PackageReference>
<PackageReference Include="SkiaSharp.Views.WPF">
<Version>2.88.7</Version>
</PackageReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets" Condition="Exists('$(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets')" />

<!-- Include LibGit2Sharp native binaries in VSIX -->
<Target Name="IncludeLibGit2SharpNativeBinaries" AfterTargets="ResolveReferences">
Expand All @@ -144,4 +51,5 @@
</Content>
</ItemGroup>
</Target>
</Project>

</Project>
16 changes: 0 additions & 16 deletions src/CodingWithCalvin.GitRanger/Properties/AssemblyInfo.cs

This file was deleted.