Skip to content

Commit 6e3a762

Browse files
committed
Bump dotnet sdk
1 parent 6c34563 commit 6e3a762

File tree

7 files changed

+16
-14
lines changed

7 files changed

+16
-14
lines changed

.github/workflows/dotnet_deploy.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ jobs:
2020
matrix:
2121
os: [windows-latest, ubuntu-latest]
2222
sdk:
23-
- { version: 3.1.407, framework: netcoreapp3.1 }
24-
- { version: 5.0.201, framework: net5.0 }
23+
- { version: 3.1.415, framework: netcoreapp3.1 }
24+
- { version: 6.0.100, framework: net6.0 }
2525

2626
name: ${{ matrix.os }} / ${{ matrix.sdk.version }}
2727
runs-on: ${{ matrix.os }}
@@ -50,11 +50,11 @@ jobs:
5050
run: dotnet test -c ${{ env.configuration }} -f ${{ matrix.sdk.framework }} --no-build
5151

5252
- name: Pack nugets
53-
if: ${{ matrix.os == 'ubuntu-latest' && matrix.sdk.version == '5.0.201' }}
53+
if: ${{ matrix.os == 'ubuntu-latest' && matrix.sdk.version == '6.0.100' }}
5454
run: dotnet pack -c ${{ env.configuration }} --no-build
5555

5656
- name: Upload artifact
57-
if: ${{ matrix.os == 'ubuntu-latest' && matrix.sdk.version == '5.0.201' }}
57+
if: ${{ matrix.os == 'ubuntu-latest' && matrix.sdk.version == '6.0.100' }}
5858
uses: actions/upload-artifact@v2
5959
with:
6060
name: ${{ env.zip-name }}
@@ -91,7 +91,7 @@ jobs:
9191
- name: Setup .NET SDK
9292
uses: actions/setup-dotnet@v1
9393
with:
94-
dotnet-version: 5.0.201
94+
dotnet-version: 6.0.100
9595

9696
- name: Push nuget
9797
if: ${{ env.release-draft == 'false' }}

.github/workflows/dotnet_tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ jobs:
1818
matrix:
1919
os: [windows-latest, ubuntu-latest]
2020
sdk:
21-
- { version: 3.1.407, framework: netcoreapp3.1 }
22-
- { version: 5.0.201, framework: net5.0 }
21+
- { version: 3.1.415, framework: netcoreapp3.1 }
22+
- { version: 6.0.100, framework: net6.0 }
2323

2424
name: ${{ matrix.os }} / ${{ matrix.sdk.version }}
2525
runs-on: ${{ matrix.os }}

src/AvaloniaProjectInfoResolver.App/AvaloniaProjectInfoResolver.App.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<OutputType>WinExe</OutputType>
4+
<!-- For test netcoreapp3.1 -->
45
<TargetFramework>netcoreapp3.1</TargetFramework>
56
<AvaloniaVersion>0.10.10</AvaloniaVersion>
67
</PropertyGroup>

src/AvaloniaProjectInfoResolver.App/MainWindow.axaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ private async Task ShowOpenFileDialog(InteractionContext<Unit, string?> interact
3030
{
3131
var dialog = new OpenFileDialog();
3232
var fileNames = await dialog.ShowAsync(this);
33-
interaction.SetOutput(fileNames.FirstOrDefault());
33+
interaction.SetOutput(fileNames?.FirstOrDefault());
3434
}
3535
}
3636
}

src/AvaloniaProjectInfoResolver.IntegrationTests/AvaloniaProjectInfoResolver.IntegrationTests.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net5.0;netcoreapp3.1</TargetFrameworks>
4+
<TargetFrameworks>net6.0;netcoreapp3.1</TargetFrameworks>
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.4" />
8+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.0.0" />
99
<PackageReference Include="xunit" Version="2.4.1" />
1010
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
1111
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1212
<PrivateAssets>all</PrivateAssets>
1313
</PackageReference>
14-
<PackageReference Include="coverlet.collector" Version="3.0.3">
14+
<PackageReference Include="coverlet.collector" Version="3.1.0">
1515
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1616
<PrivateAssets>all</PrivateAssets>
1717
</PackageReference>

src/AvaloniaProjectInfoResolver.PreviewTask.Debug/AvaloniaProjectInfoResolver.PreviewTask.Debug.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net5.0</TargetFramework>
5+
<TargetFramework>net6.0</TargetFramework>
66
<IsPublishable>false</IsPublishable>
77
</PropertyGroup>
88

src/AvaloniaProjectInfoResolver.PreviewTask/AvaloniaProjectInfoResolver.PreviewTask.csproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFrameworks>netcoreapp2.1;net472</TargetFrameworks>
5+
<NoWarn>$(NoWarn);NETSDK1138</NoWarn>
56
</PropertyGroup>
67

78
<ItemGroup>
@@ -24,10 +25,10 @@
2425
</Content>
2526
</ItemGroup>
2627

27-
<!-- Needs for sdk <= 3.1 -->
28+
<!-- Needs for sdk <= 3.1 (tests) -->
2829
<ItemGroup>
2930
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies"
30-
Version="1.0.0"
31+
Version="1.0.2"
3132
PrivateAssets="All" />
3233
</ItemGroup>
3334

0 commit comments

Comments
 (0)