Skip to content

Commit

Permalink
Merge pull request #77 from lessismore-sparkvision/net8.0
Browse files Browse the repository at this point in the history
update to .NET 8.0
  • Loading branch information
christianspecht authored Jun 5, 2024
2 parents 09b3532 + 6154bf4 commit 1002aff
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 3.1.x
dotnet-version: 8.0.x
- name: Set version number
run: .\version-number.ps1
shell: pwsh
Expand All @@ -38,4 +38,4 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: Test log
path: src/ScmBackup.Tests.Integration/bin/Release/netcoreapp3.1/*.log
path: src/ScmBackup.Tests.Integration/bin/Release/net8.0/*.log
4 changes: 2 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
version: "{build}"
image: Visual Studio 2019
image: Visual Studio 2022
install:
- ps: C:\projects\scm-backup\version-number.ps1
build_script:
Expand All @@ -8,7 +8,7 @@ test: off
artifacts:
- path: release\scm-backup-*.zip
name: Application
- path: src\ScmBackup.Tests.Integration\bin\Release\netcoreapp3.1\*.log
- path: src\ScmBackup.Tests.Integration\bin\Release\net8.0\*.log
name: Integration Test Logfile
assembly_info:
patch: true
Expand Down
2 changes: 1 addition & 1 deletion src/ScmBackup.Tests.Integration/DirectoryHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public static string CreateTempDirectory(string suffix)
/// </summary>
public static string TestAssemblyDirectory()
{
string unc = typeof(DirectoryHelper).GetTypeInfo().Assembly.CodeBase;
string unc = typeof(DirectoryHelper).GetTypeInfo().Assembly.Location;

// convert from UNC path to "real" path
var uri = new Uri(unc);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<AssemblyName>ScmBackup.Tests.Integration</AssemblyName>
<PackageId>ScmBackup.Tests.Integration</PackageId>
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
Expand Down
2 changes: 1 addition & 1 deletion src/ScmBackup.Tests/ScmBackup.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<AssemblyName>ScmBackup.Tests</AssemblyName>
<PackageId>ScmBackup.Tests</PackageId>
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
Expand Down
4 changes: 2 additions & 2 deletions src/ScmBackup/Http/MailKitEmailSender.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ public void Send(string subject, string body)
}

var message = new MimeMessage();
message.From.Add(new MailboxAddress(config.From));
message.From.Add(new MailboxAddress("", config.From));
foreach (var to in config.To_AsList())
{
message.To.Add(new MailboxAddress(to));
message.To.Add(new MailboxAddress("", to));
}
message.Subject = subject;

Expand Down
14 changes: 7 additions & 7 deletions src/ScmBackup/ScmBackup.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<AssemblyName>ScmBackup</AssemblyName>
<OutputType>Exe</OutputType>
<PackageId>ScmBackup</PackageId>
Expand All @@ -26,12 +26,12 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="MailKit" Version="2.5.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="NLog" Version="4.6.8" />
<PackageReference Include="Octokit" Version="0.36.0" />
<PackageReference Include="SimpleInjector" Version="4.9.0" />
<PackageReference Include="YamlDotNet" Version="8.1.0" />
<PackageReference Include="MailKit" Version="4.5.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="NLog" Version="5.2.8" />
<PackageReference Include="Octokit" Version="11.0.1" />
<PackageReference Include="SimpleInjector" Version="5.4.5" />
<PackageReference Include="YamlDotNet" Version="15.1.2" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 1002aff

Please sign in to comment.