Skip to content
This repository has been archived by the owner on Apr 13, 2024. It is now read-only.

Multi-Target .NET 6, .NET 7 & .NET 8 #204

Merged
merged 1 commit into from
Dec 16, 2023
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
1 change: 1 addition & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ install:
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version 5.0.408 -InstallDir $env:DOTNET_INSTALL_DIR'
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version 6.0.414 -InstallDir $env:DOTNET_INSTALL_DIR'
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version 7.0.401 -InstallDir $env:DOTNET_INSTALL_DIR'
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version 8.0.100 -InstallDir $env:DOTNET_INSTALL_DIR'
- ps: $env:Path = "$env:DOTNET_INSTALL_DIR;$env:Path"
- ps: dotnet --info

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
5.x
6.x
7.x
8.x
- name: Build
run: .\build.ps1
shell: powershell
Expand Down
4 changes: 4 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,9 @@ jobs:
inputs:
version: '7.x'
displayName: 'Install .NET 7'
- task: UseDotNet@2
inputs:
version: '8.x'
displayName: 'Install .NET 8'
- powershell: ./build.ps1
displayName: 'Cake Build'
3 changes: 3 additions & 0 deletions nuspec/nuget/Cake.Issues.PullRequests.GitHubActions.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,8 @@ See the Project Site for an overview of the whole ecosystem of addins for workin
<file src="net7.0\Cake.Issues.PullRequests.GitHubActions.dll" target="lib\net7.0" />
<file src="net7.0\Cake.Issues.PullRequests.GitHubActions.pdb" target="lib\net7.0" />
<file src="net7.0\Cake.Issues.PullRequests.GitHubActions.xml" target="lib\net7.0" />
<file src="net8.0\Cake.Issues.PullRequests.GitHubActions.dll" target="lib\net8.0" />
<file src="net8.0\Cake.Issues.PullRequests.GitHubActions.pdb" target="lib\net8.0" />
<file src="net8.0\Cake.Issues.PullRequests.GitHubActions.xml" target="lib\net8.0" />
</files>
</package>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
<Description>Addin for writing code analyzer or linter issues to GitHub Actions</Description>
<Authors>Pascal Berger</Authors>
<Copyright>Copyright © Pascal Berger and contributors</Copyright>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
/// </summary>
public class GitHubActionsPullRequestSystem : BasePullRequestSystem
{
private static readonly char[] Separator = ['\n'];
private readonly GitHubActionsBuildSettings settings;

/// <summary>
Expand Down Expand Up @@ -111,7 +112,7 @@ private void WriteIssues(IEnumerable<IIssue> issues)
// Commands don't support line breaks, therefore we only use the first line of the message.
var message =
issue.MessageText
.Split(new[] { '\n' }, StringSplitOptions.RemoveEmptyEntries)
.Split(Separator, StringSplitOptions.RemoveEmptyEntries)
.FirstOrDefault()
?.Trim();

Expand Down
5 changes: 5 additions & 0 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<Project>
<PropertyGroup>
<LangVersion>latest</LangVersion>
</PropertyGroup>
</Project>