Skip to content

Commit 7848f18

Browse files
committed
feat: Git Extensions 7.0
Centralize package management, align with main app
1 parent 2dbb170 commit 7848f18

10 files changed

Lines changed: 97 additions & 84 deletions

Directory.Build.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
<PropertyGroup>
1818
<UseWindowsForms>true</UseWindowsForms>
19-
<TargetFramework>net9.0-windows</TargetFramework>
20-
<VersionPrefix>3.1.2</VersionPrefix>
19+
<TargetFramework>net10.0-windows</TargetFramework>
20+
<VersionPrefix>3.2.0</VersionPrefix>
2121
</PropertyGroup>
2222
</Project>

Directory.Packages.props

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
66
</PropertyGroup>
77
<ItemGroup>
8-
<PackageVersion Include="GitExtensions.Extensibility" Version="0.4.0.111" />
8+
<PackageVersion Include="GitExtensions.Extensibility" Version="1.0.0.129" />
99
<PackageVersion Include="JetBrains.Annotations" Version="2023.2.0" />
1010
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.13.0" />
1111
<PackageVersion Include="Microsoft.VisualStudio.Composition" Version="17.2.41" />
1212
<PackageVersion Include="Microsoft.VisualStudio.Threading" Version="17.13.61" />
1313
<PackageVersion Include="Newtonsoft.Json" Version="13.0.3" />
1414
<PackageVersion Include="NUnit" Version="3.13.3" />
15-
<PackageVersion Include="NUnit3TestAdapter" Version="4.5.0" />
16-
<PackageVersion Include="coverlet.collector" Version="6.0.0" />
15+
<PackageVersion Include="NUnit3TestAdapter" Version="5.0.0" />
16+
<PackageVersion Include="coverlet.collector" Version="8.0.0" />
1717
</ItemGroup>
1818
</Project>

GitExtensions.GerritPlugin.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1111
ProjectSection(SolutionItems) = preProject
1212
Directory.Build.props = Directory.Build.props
1313
Directory.Packages.props = Directory.Packages.props
14+
global.json = global.json
1415
README.md = README.md
1516
EndProjectSection
1617
EndProject

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ Use the following pattern to link revision data to Gerrit:
3333
| 4.1.x <= v <= 4.2.0 | 2.0.6 <= v |
3434
| 4.2.x <= v <= 5.0.0 | 2.0.7 <= v |
3535
| 5.0.x <= 6.0.0 | 3.0.0 <= v |
36-
| 6.0.1 <= v | 3.1.0 <= v |
36+
| 6.0.1 <= 6.0.5 | 3.1.0 <= v |
37+
| 7.0.0 <= v | 3.2.0 <= v |
3738

3839
## GitExtensions Plugin Template information
3940

appveyor.yml

Lines changed: 77 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,77 @@
1-
#---------------------------------#
2-
# general configuration #
3-
#---------------------------------#
4-
5-
# version format
6-
version: 3.1.2.{build}
7-
8-
# version suffix, if any (e.g. '-RC1', '-beta' otherwise '')
9-
environment:
10-
version_suffix: ''
11-
12-
#---------------------------------#
13-
# environment configuration #
14-
#---------------------------------#
15-
16-
nuget:
17-
disable_publish_on_pr: true
18-
19-
# Build worker image (VM template)
20-
image: Visual Studio 2022
21-
22-
# enable patching of Directory.Build.props
23-
dotnet_csproj:
24-
patch: true
25-
file: '**\*.props'
26-
version: '{version}'
27-
assembly_version: '{version}'
28-
file_version: '{version}'
29-
informational_version: '{version}$(version_suffix)'
30-
package_version: '{version}$(version_suffix)'
31-
32-
#---------------------------------#
33-
# build configuration #
34-
#---------------------------------#
35-
36-
# scripts to run before build
37-
before_build:
38-
- ps: nuget restore .\GitExtensions.GerritPlugin.sln -Verbosity quiet
39-
40-
# build configuration
41-
configuration: Release
42-
43-
build:
44-
# enable MSBuild parallel builds
45-
parallel: true
46-
# MSBuild verbosity level
47-
verbosity: quiet
48-
49-
#---------------------------------#
50-
# artifacts configuration #
51-
#---------------------------------#
52-
53-
artifacts:
54-
- path: '**\GitExtensions.GerritPlugin.*.nupkg'
55-
name: NuGet
56-
57-
deploy:
58-
- provider: NuGet
59-
name: production
60-
artifact: /GitExtensions.GerritPlugin.*\.nupkg/
61-
api_key:
62-
secure: Cu5mvoCI+zw9j2rAhznAyc+pqunWrR9EodrrLyufOGMF10YahzhvyQWfk72an+Fm
63-
skip_symbols: false
64-
on:
65-
appveyor_repo_tag: true
1+
#---------------------------------#
2+
# general configuration #
3+
#---------------------------------#
4+
5+
# version format
6+
version: 3.2.0.{build}
7+
8+
# version suffix, if any (e.g. '-RC1', '-beta' otherwise '')
9+
environment:
10+
# Disable the .NET logo in the console output.
11+
DOTNET_NOLOGO: true
12+
# Disable the .NET first time experience to skip caching NuGet packages and speed up the build.
13+
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
14+
version_suffix: ''
15+
16+
#---------------------------------#
17+
# environment configuration #
18+
#---------------------------------#
19+
20+
nuget:
21+
disable_publish_on_pr: true
22+
23+
# Build worker image (VM template)
24+
image: Visual Studio 2022
25+
26+
# enable patching of Directory.Build.props
27+
dotnet_csproj:
28+
patch: true
29+
file: '**\*.props'
30+
version: '{version}'
31+
assembly_version: '{version}'
32+
file_version: '{version}'
33+
informational_version: '{version}$(version_suffix)'
34+
package_version: '{version}$(version_suffix)'
35+
36+
# Install .NET 10 SDK (not pre-installed on AppVeyor VS2022 image)
37+
install:
38+
- ps: |
39+
# Install the required .NET SDK
40+
Invoke-WebRequest "https://dot.net/v1/dotnet-install.ps1" -OutFile "./dotnet-install.ps1"
41+
./dotnet-install.ps1 -JsonFile global.json -InstallDir 'C:\Program Files\dotnet'
42+
# Remove the script so it doesn't "pollute" the build
43+
Remove-Item -Path .\dotnet-install.ps1
44+
45+
#---------------------------------#
46+
# build configuration #
47+
#---------------------------------#
48+
49+
# build configuration
50+
configuration: Release
51+
52+
build_script:
53+
- ps: |
54+
dotnet restore .\GitExtensions.GerritPlugin.sln --verbosity quiet --nologo -bl:restore.binlog
55+
56+
- ps: |
57+
dotnet publish .\GitExtensions.GerritPlugin.sln --configuration Release --no-restore --verbosity quiet --nologo -bl:msbuild.binlog
58+
59+
#---------------------------------#
60+
# artifacts configuration #
61+
#---------------------------------#
62+
63+
artifacts:
64+
- path: '**\GitExtensions.GerritPlugin.*.nupkg'
65+
name: NuGet
66+
- path: '*.binlog'
67+
name: Binlogs
68+
69+
deploy:
70+
- provider: NuGet
71+
name: production
72+
artifact: /GitExtensions.GerritPlugin.*\.nupkg/
73+
api_key:
74+
secure: Cu5mvoCI+zw9j2rAhznAyc+pqunWrR9EodrrLyufOGMF10YahzhvyQWfk72an+Fm
75+
skip_symbols: false
76+
on:
77+
appveyor_repo_tag: true

global.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"sdk": {
3+
"version": "10.0.103",
4+
"rollForward": "feature"
5+
}
6+
}

src/GitExtensions.GerritPlugin/GerritPlugin.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
using GitExtensions.GerritPlugin.Properties;
1414
using GitExtensions.GerritPlugin.Server;
1515
using GitUI;
16-
using GitUIPluginInterfaces;
1716
using JetBrains.Annotations;
1817
using ResourceManager;
1918

src/GitExtensions.GerritPlugin/GitExtensions.GerritPlugin.csproj

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<!--/!\ GitExtensions version properties overwritten in `.csproj.user` file-->
3-
<PropertyGroup>
4-
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
5-
</PropertyGroup>
3+
64

75
<ItemGroup>
86
<PackageReference Include="GitExtensions.Extensibility" />

src/GitExtensions.GerritPlugin/GitExtensions.GerritPlugin.csproj.user

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
<!-- path is relative to $(ProjectDir) -->
55
<GitExtensionsDownloadPath>..\..\..\gitextensions.shared</GitExtensionsDownloadPath>
66
<!-- 'latest' or 'v3.1' (= tag from GitHub releases) or 'v3.1.0.5877' (= build number from AppVeyor)-->
7-
<GitExtensionsReferenceVersion>v6.0.3</GitExtensionsReferenceVersion>
7+
<GitExtensionsReferenceVersion>latest</GitExtensionsReferenceVersion>
88
<!-- 'GitHub' or 'AppVeyor' -->
9-
<GitExtensionsReferenceSource>GitHub</GitExtensionsReferenceSource>
9+
<GitExtensionsReferenceSource>AppVeyor</GitExtensionsReferenceSource>
1010
<!-- for local builds (no download) -->
1111
<GitExtensionsPath>$(GitExtensionsDownloadPath)</GitExtensionsPath>
1212
</PropertyGroup>

src/GitExtensions.GerritPlugin/GitExtensions.GerritPlugin.nuspec

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,14 @@
1010
<tags>$tags$</tags>
1111
<icon>Resources\IconGerrit.png</icon>
1212
<dependencies>
13-
<group>
14-
<dependency id="GitExtensions.Extensibility" version="[0.4.0, 0.5.0)" />
15-
</group>
16-
<!-- To fix Warning NU5128 Add a dependency group -->
17-
<group targetFramework="net9.0-windows7.0">
18-
<dependency id="GitExtensions.Extensibility" version="[0.4.0, 0.5.0)" />
13+
<group targetFramework="net10.0-windows7.0">
14+
<dependency id="GitExtensions.Extensibility" version="[1.0.0, 1.1.0)" />
1915
</group>
2016
</dependencies>
2117
</metadata>
2218
<files>
2319
<file src="..\..\LICENSE.md" target="\" />
24-
<file src="bin\$configuration$\net9.0-windows\GitExtensions.GerritPlugin.dll" target="\lib\" />
20+
<file src="bin\$configuration$\net10.0-windows\GitExtensions.GerritPlugin.dll" target="\lib\net10.0-windows7.0\" />
2521
<file src="Resources\IconGerrit.png" target="\Resources\" />
2622
</files>
2723
</package>

0 commit comments

Comments
 (0)