Skip to content

Commit b6b99b1

Browse files
committed
Merge branch 'develop'
2 parents 2f12ed9 + b981c24 commit b6b99b1

File tree

10 files changed

+27
-21
lines changed

10 files changed

+27
-21
lines changed

.github/workflows/dotnetcore.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ env:
1515
GITVERSION_VERSION: 5.10.3
1616
MSVS_TOOLSET_VERSION: 16
1717
SNAPX_DOTNET_FRAMEWORK_VERSION: net7.0
18-
DOTNET_NET60_VERSION: 6.0.406
19-
DOTNET_NET70_VERSION: 7.0.103
20-
DOTNET_NET80_VERSION: 8.0.100-preview.1.23115.2
18+
DOTNET_NET60_VERSION: 6.0.407
19+
DOTNET_NET70_VERSION: 7.0.202
20+
DOTNET_NET80_VERSION: 8.0.100-preview.2.23157.25
2121
DOTNET_CLI_TELEMETRY_OPTOUT: 1
2222
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
2323
DOTNET_NOLOGO: 1

GitVersion.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
next-version: 5.1.1
1+
next-version: 5.1.2
22
mode: ContinuousDeployment
33
continuous-delivery-fallback-tag: ''
44
branches:

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ Checkout our sample application, [snapx demoapp](https://github.com/fintermobili
3636
- Powershell v7 `dotnet tool update powershell -g`
3737
- .NET SDK v6.0
3838
- .NET SDK v7.0
39+
- .NET SDK v8.0
3940

4041
**Windows**:
4142

@@ -44,6 +45,7 @@ Checkout our sample application, [snapx demoapp](https://github.com/fintermobili
4445
- Powershell v7 `dotnet tool update powershell -g`
4546
- .NET SDK v6.0
4647
- .NET SDK v7.0
48+
- .NET SDK v8.0
4749

4850
- Visual Studio 2022 Community Edition with C++ workload installed
4951

@@ -56,6 +58,7 @@ Run `init.ps1` and all dependencies will be built in `Debug` and `Release` mode.
5658

5759
- .NET 6.0 LTS
5860
- .NET 7.0
61+
- .NET 8.0
5962

6063
## Platforms supported
6164

build.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ param(
88
[Parameter(Position = 2, ValueFromPipelineByPropertyName = $true)]
99
[string] $DockerImageName = "snapx",
1010
[Parameter(Position = 3, ValueFromPipelineByPropertyName = $true)]
11-
[string] $DockerVersion = "20.0",
11+
[string] $DockerVersion = "21.0",
1212
[Parameter(Position = 4, ValueFromPipelineByPropertyName = $true)]
1313
[switch] $DockerLocal,
1414
[Parameter(Position = 5, ValueFromPipelineByPropertyName = $true)]

docker/Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ FROM ubuntu:20.04 as env-build
33
ENV DEBIAN_FRONTEND=noninteractive
44
ENV SNAPX_DOCKER_WORKING_DIR /build/snapx
55

6-
ARG DOTNET_60_SDK_VERSION=6.0.406
7-
ARG DOTNET_70_SDK_VERSION=7.0.103
8-
ARG DOTNET_80_SDK_VERSION=8.0.100-preview.1.23115.2
6+
ARG DOTNET_60_SDK_VERSION=6.0.407
7+
ARG DOTNET_70_SDK_VERSION=7.0.202
8+
ARG DOTNET_80_SDK_VERSION=8.0.100-preview.2.23157.25
99
ARG DOTNET_RID=linux-x64
1010

1111

src/Directory.Packages.props

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project>
22
<PropertyGroup>
33
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
4-
<AvaloniaVersion>11.0.0-preview5</AvaloniaVersion>
4+
<AvaloniaVersion>11.0.0-preview6</AvaloniaVersion>
55
</PropertyGroup>
66
<ItemGroup>
77
<PackageVersion Include="Avalonia.Desktop" Version="$(AvaloniaVersion)" />
@@ -14,20 +14,20 @@
1414
<PackageVersion Include="Jetbrains.Annotations" Version="2022.3.1" />
1515
<PackageVersion Include="LibLog" Version="5.0.8" />
1616
<PackageVersion Include="LightInject" Version="6.6.3" />
17-
<PackageVersion Include="MessagePack" Version="2.4.59" />
17+
<PackageVersion Include="MessagePack" Version="2.5.108" />
1818
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.5.0" />
1919
<PackageVersion Include="Mono.Cecil" Version="0.11.4" />
2020
<PackageVersion Include="Moq" Version="4.18.4" />
2121
<PackageVersion Include="NLog" Version="5.1.2" />
2222
<PackageVersion Include="NuGet.Packaging.Core" Version="6.5.0" />
2323
<PackageVersion Include="NuGet.Protocol" Version="6.5.0" />
24-
<PackageVersion Include="ServiceStack.HttpClient" Version="6.6.0" />
25-
<PackageVersion Include="SharpCompress" Version="0.32.2" />
24+
<PackageVersion Include="ServiceStack.HttpClient" Version="6.7.0" />
25+
<PackageVersion Include="SharpCompress" Version="0.33.0" />
2626
<PackageVersion Include="System.CodeDom" Version="7.0.0" />
2727
<PackageVersion Include="System.Security.Permissions" Version="7.0.0" />
2828
<PackageVersion Include="xunit" Version="2.4.2" />
2929
<PackageVersion Include="xunit.runner.visualstudio" Version="2.4.5" />
3030
<PackageVersion Include="XunitXml.TestLogger" Version="3.0.78" />
31-
<PackageVersion Include="YamlDotNet" Version="12.3.1" />
31+
<PackageVersion Include="YamlDotNet" Version="13.0.2" />
3232
</ItemGroup>
3333
</Project>

src/Snap.Installer/Controls/GifAnimationControl.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
namespace Snap.Installer.Controls;
1212

13-
public class GifAnimationControl : Canvas
13+
public class GifAnimationControl : Control
1414
{
1515
readonly List<Bitmap> _bitmaps;
1616
DispatcherTimer _dispatcherTimer;
@@ -75,4 +75,4 @@ public override void Render(DrawingContext context)
7575
base.Render(context);
7676
}
7777

78-
}
78+
}

src/Snap.Installer/MainWindow.axaml.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
namespace Snap.Installer;
1616

17-
internal sealed class MainWindow : CustomChromeWindow
17+
internal sealed partial class MainWindow : CustomChromeWindow
1818
{
1919
public static ISnapInstallerEnvironment Environment { get; set; }
2020
public static AvaloniaMainWindowViewModel ViewModel { get; set; }

src/Snap/Core/SnapPackageManager.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ public async Task<PackageSource> GetPackageSourceAsync(
246246
var sourceLocation = packageSource.IsLocalOrUncPath()
247247
? $"path: {_filesystem.PathGetFullPath(packageSource.SourceUri.AbsolutePath)}. Does the location exist?"
248248
: packageSource.Name;
249-
logger?.Error($"Unknown error while downloading releases nupkg {packageId} from {sourceLocation}");
249+
logger?.Error($"Unknown error while downloading releases nupkg {packageId} from {sourceLocation}. Status: {snapReleasesDownloadResult.Status}.");
250250
return (null, null, null);
251251
}
252252

@@ -593,7 +593,7 @@ async Task<bool> TryDownloadAsync([JetBrains.Annotations.NotNull] string package
593593
{
594594
if (!downloadResult.SuccessSafe())
595595
{
596-
logger?.Error($"Unknown error downloading nupkg: {snapRelease.Filename}.");
596+
logger?.Error($"Unknown error downloading nupkg: {snapRelease.Filename}. Status: {downloadResult.Status}.");
597597
return false;
598598
}
599599

src/Snap/NuGet/NugetService.cs

+6-3
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,11 @@ public async Task<DownloadResourceResult> DownloadAsyncWithProgressAsync(Package
316316

317317
async Task<DownloadResourceResult> ProcessAsync(Stream packageStream)
318318
{
319-
if (packageStream == null) throw new ArgumentNullException(nameof(packageStream));
320-
319+
if (packageStream == null)
320+
{
321+
return new DownloadResourceResult(DownloadResourceResultStatus.NotFound);
322+
}
323+
321324
var outputStream = new MemoryStream();
322325
var buffer = ArrayPool<byte>.Shared.Rent(84000); // Less than LOH
323326

@@ -448,4 +451,4 @@ static string BuildApiKey(INuGetPackageSources packageSources, PackageSource pac
448451

449452
return decryptedApikey ?? string.Empty; // NB! Has to be string.Empty
450453
}
451-
}
454+
}

0 commit comments

Comments
 (0)