Skip to content

Commit

Permalink
update to .NET 8
Browse files Browse the repository at this point in the history
  • Loading branch information
WeihanLi committed Nov 24, 2023
1 parent 2bd74eb commit 3f6e1f9
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 21 deletions.
6 changes: 3 additions & 3 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<VersionMajor>2</VersionMajor>
<VersionMinor>3</VersionMinor>
<VersionMajor>3</VersionMajor>
<VersionMinor>0</VersionMinor>
<VersionPatch>0</VersionPatch>
<VersionPrefix>$(VersionMajor).$(VersionMinor).$(VersionPatch)</VersionPrefix>
<VersionSuffix Condition="'$(Configuration)'=='DEBUG'">preview</VersionSuffix>
Expand All @@ -13,6 +13,6 @@
<RepositoryUrl>https://github.com/WeihanLi/DbTool</RepositoryUrl>

<Authors>DbTool Contributors</Authors>
<Copyright>Copyright 2017-2022 (c) WeihanLi</Copyright>
<Copyright>Copyright 2017-2023 (c) WeihanLi</Copyright>
</PropertyGroup>
</Project>
9 changes: 4 additions & 5 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ schedules:
displayName: Build every day at 10:00 UTC
branches:
include:
- master
always: true
- '*'

trigger:
branches:
Expand All @@ -16,11 +15,11 @@ pool:

steps:
- task: UseDotNet@2
displayName: 'Use .NET Core sdk'
displayName: 'Use .NET SDK'
inputs:
packageType: sdk
version: 6.0.x
includePreviewVersions: true
version: 8.0.x
# includePreviewVersions: true

- script: dotnet --info
displayName: "dotnet info"
Expand Down
2 changes: 1 addition & 1 deletion src/DbTool.ControlLib/DbTool.ControlLib.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0-windows</TargetFramework>
<TargetFramework>net8.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<UseWPF>true</UseWPF>
</PropertyGroup>
Expand Down
11 changes: 5 additions & 6 deletions src/DbTool/DbTool.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@

<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework>
<UseWindowsForms>true</UseWindowsForms>
<TargetFramework>net8.0-windows</TargetFramework>
<UseWPF>true</UseWPF>
<RootNamespace>DbTool</RootNamespace>
<AssemblyName>DbTool</AssemblyName>
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
<ApplicationIcon>DbTool.ico</ApplicationIcon>
<DbToolPackageVersion>2.1.1</DbToolPackageVersion>
<DbToolPackageVersion>3.0.0</DbToolPackageVersion>
</PropertyGroup>

<ItemGroup>
Expand All @@ -19,9 +18,9 @@
<Page Remove="out\**" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="WeihanLi.Extensions.Localization.Json" Version="1.0.3" />
<PackageReference Include="WeihanLi.Common" Version="1.0.52" />
<PackageReference Include="WeihanLi.Npoi" Version="2.2.0" />
<PackageReference Include="WeihanLi.Extensions.Localization.Json" Version="2.0.0" />
<PackageReference Include="WeihanLi.Common" Version="1.0.60" />
<PackageReference Include="WeihanLi.Npoi" Version="2.4.2" />
<PackageReference Include="DbTool.Core" Version="$(DbToolPackageVersion)" />
<PackageReference Include="DbTool.DbProvider.MySql" Version="$(DbToolPackageVersion)" />
<PackageReference Include="DbTool.DbProvider.PostgreSql" Version="$(DbToolPackageVersion)" />
Expand Down
9 changes: 4 additions & 5 deletions src/DbTool/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -419,14 +419,13 @@ private async void BtnConnectDb_OnClick(object sender, RoutedEventArgs e)

private string? ChooseFolder()
{
var dialog = new System.Windows.Forms.FolderBrowserDialog
var dialog = new OpenFolderDialog()
{
Description = _localizer["ChooseDirTip"],
ShowNewFolderButton = true
Title = _localizer["ChooseDirTip"]
};
if (dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
if (dialog.ShowDialog() == true)
{
return dialog.SelectedPath;
return dialog.FolderName;
}
return null;
}
Expand Down
2 changes: 1 addition & 1 deletion test/DbTool.Test/DbTool.Test.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0-windows</TargetFramework>
<TargetFramework>net8.0-windows</TargetFramework>
<IsTestProject>true</IsTestProject>
<IsPackable>false</IsPackable>
</PropertyGroup>
Expand Down

0 comments on commit 3f6e1f9

Please sign in to comment.