mirror of
https://github.com/greenshot/greenshot
synced 2025-08-22 14:24:43 -07:00
Updated dependencies and dotnet core 3.0
This commit is contained in:
parent
acd20806c3
commit
6552eeb32f
23 changed files with 42 additions and 47 deletions
|
@ -15,7 +15,7 @@ steps:
|
|||
- task: DotNetCoreInstaller@0
|
||||
displayName: 'Install .NET Core SDK 3.0'
|
||||
inputs:
|
||||
version: '3.0.100-preview6-012067'
|
||||
version: '3.0.100-preview6-012096'
|
||||
|
||||
- task: NuGetToolInstaller@0
|
||||
displayName: 'Use NuGet 5.0.0'
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup Condition="!$(MSBuildProjectName.Contains('Tests')) And $(MSBuildProjectName.StartsWith('Greenshot'))">
|
||||
<PackageReference Include="Nerdbank.GitVersioning" Version="2.3.151">
|
||||
<PackageReference Include="Nerdbank.GitVersioning" Version="2.3.167">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
|
||||
</PackageReference>
|
||||
|
|
|
@ -25,8 +25,6 @@
|
|||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="AutoProperties.Fody" Version="1.21.0" />
|
||||
<PackageReference Include="Dapplo.CaliburnMicro.Configuration" Version="1.2.26" />
|
||||
<PackageReference Include="Dapplo.CaliburnMicro.Translations" Version="1.2.26" />
|
||||
<PackageReference Include="Dapplo.HttpExtensions" Version="0.9.18" />
|
||||
<PackageReference Include="Dapplo.HttpExtensions.OAuth" Version="0.9.18" />
|
||||
<PackageReference Include="Dapplo.HttpExtensions.JsonNet" Version="0.9.18" />
|
||||
|
|
|
@ -26,8 +26,6 @@
|
|||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="AutoProperties.Fody" Version="1.21.0" />
|
||||
<PackageReference Include="Dapplo.CaliburnMicro.Configuration" Version="1.2.26" />
|
||||
<PackageReference Include="Dapplo.CaliburnMicro.Translations" Version="1.2.26" />
|
||||
<PackageReference Include="Dapplo.HttpExtensions.JsonNet" Version="0.9.18" />
|
||||
<PackageReference Include="Dapplo.HttpExtensions.OAuth" Version="0.9.18" />
|
||||
<PackageReference Include="Dapplo.Windows.Clipboard" Version="0.8.28" />
|
||||
|
|
|
@ -25,8 +25,6 @@
|
|||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="AutoProperties.Fody" Version="1.21.0" />
|
||||
<PackageReference Include="Dapplo.CaliburnMicro.Configuration" Version="1.2.26" />
|
||||
<PackageReference Include="Dapplo.CaliburnMicro.Translations" Version="1.2.26" />
|
||||
<PackageReference Include="Dapplo.HttpExtensions" Version="0.9.18" />
|
||||
<PackageReference Include="Dapplo.HttpExtensions.OAuth" Version="0.9.18" />
|
||||
<PackageReference Include="Dapplo.HttpExtensions.JsonNet" Version="0.9.18" />
|
||||
|
|
|
@ -21,8 +21,6 @@
|
|||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="AutoProperties.Fody" Version="1.21.0" />
|
||||
<PackageReference Include="Dapplo.CaliburnMicro.Configuration" Version="1.2.26" />
|
||||
<PackageReference Include="Dapplo.CaliburnMicro.Translations" Version="1.2.26" />
|
||||
<PackageReference Include="Dapplo.Windows.Clipboard" Version="0.8.28" />
|
||||
<PackageReference Include="CliWrap" Version="2.2.2" />
|
||||
<PackageReference Include="Fody" Version="4.2.1">
|
||||
|
|
|
@ -25,8 +25,6 @@
|
|||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="AutoProperties.Fody" Version="1.21.0" />
|
||||
<PackageReference Include="Dapplo.CaliburnMicro.Configuration" Version="1.2.26" />
|
||||
<PackageReference Include="Dapplo.CaliburnMicro.Translations" Version="1.2.26" />
|
||||
<PackageReference Include="Dapplo.HttpExtensions.OAuth" Version="0.9.18" />
|
||||
<PackageReference Include="Dapplo.Windows.Clipboard" Version="0.8.28" />
|
||||
<PackageReference Include="Fody" Version="4.2.1">
|
||||
|
|
|
@ -25,8 +25,6 @@
|
|||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="AutoProperties.Fody" Version="1.21.0" />
|
||||
<PackageReference Include="Dapplo.CaliburnMicro.Configuration" Version="1.2.26" />
|
||||
<PackageReference Include="Dapplo.CaliburnMicro.Translations" Version="1.2.26" />
|
||||
<PackageReference Include="Dapplo.HttpExtensions.OAuth" Version="0.9.18" />
|
||||
<PackageReference Include="Dapplo.Windows.Clipboard" Version="0.8.28" />
|
||||
<PackageReference Include="Fody" Version="4.2.1">
|
||||
|
|
|
@ -25,8 +25,6 @@
|
|||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="AutoProperties.Fody" Version="1.21.0" />
|
||||
<PackageReference Include="Dapplo.CaliburnMicro.Configuration" Version="1.2.26" />
|
||||
<PackageReference Include="Dapplo.CaliburnMicro.Translations" Version="1.2.26" />
|
||||
<PackageReference Include="Dapplo.HttpExtensions.JsonNet" Version="0.9.18" />
|
||||
<PackageReference Include="Dapplo.HttpExtensions.OAuth" Version="0.9.18" />
|
||||
<PackageReference Include="Dapplo.Windows.Clipboard" Version="0.8.28" />
|
||||
|
@ -34,6 +32,6 @@
|
|||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="MahApps.Metro" Version="2.0.0-alpha0262" />
|
||||
<PackageReference Include="MahApps.Metro" Version="2.0.0-alpha0316" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
|
|
@ -22,8 +22,6 @@
|
|||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="AutoProperties.Fody" Version="1.21.0" />
|
||||
<PackageReference Include="Dapplo.CaliburnMicro.Configuration" Version="1.2.26" />
|
||||
<PackageReference Include="Dapplo.CaliburnMicro.Translations" Version="1.2.26" />
|
||||
<PackageReference Include="Dapplo.HttpExtensions.JsonNet" Version="0.9.18" />
|
||||
<PackageReference Include="Dapplo.HttpExtensions.OAuth" Version="0.9.18" />
|
||||
<PackageReference Include="Dapplo.Utils" Version="1.1.18" />
|
||||
|
|
|
@ -112,8 +112,6 @@
|
|||
<ItemGroup>
|
||||
<PackageReference Include="AutoProperties.Fody" Version="1.21.0" />
|
||||
<PackageReference Include="CommonServiceLocator" Version="2.0.4" />
|
||||
<PackageReference Include="Dapplo.CaliburnMicro.Configuration" Version="1.2.26" />
|
||||
<PackageReference Include="Dapplo.CaliburnMicro.Translations" Version="1.2.26" />
|
||||
<PackageReference Include="Dapplo.HttpExtensions" Version="0.9.18" />
|
||||
<PackageReference Include="Dapplo.Windows.Clipboard" Version="0.8.28" />
|
||||
<PackageReference Include="Dapplo.Windows.Icons" Version="0.8.28" />
|
||||
|
|
|
@ -25,12 +25,10 @@
|
|||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="AutoProperties.Fody" Version="1.21.0" />
|
||||
<PackageReference Include="Dapplo.CaliburnMicro.Configuration" Version="1.2.26" />
|
||||
<PackageReference Include="Dapplo.CaliburnMicro.Translations" Version="1.2.26" />
|
||||
<PackageReference Include="Dapplo.HttpExtensions.JsonNet" Version="0.9.18" />
|
||||
<PackageReference Include="Dapplo.HttpExtensions.OAuth" Version="0.9.18" />
|
||||
<PackageReference Include="Dapplo.Windows.Clipboard" Version="0.8.28" />
|
||||
<PackageReference Include="MahApps.Metro" Version="2.0.0-alpha0262" />
|
||||
<PackageReference Include="MahApps.Metro" Version="2.0.0-alpha0316" />
|
||||
<PackageReference Include="Fody" Version="4.2.1">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
|
||||
|
|
|
@ -20,8 +20,6 @@
|
|||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="AutoProperties.Fody" Version="1.21.0" />
|
||||
<PackageReference Include="Dapplo.CaliburnMicro.Configuration" Version="1.2.26" />
|
||||
<PackageReference Include="Dapplo.CaliburnMicro.Translations" Version="1.2.26" />
|
||||
<PackageReference Include="Dapplo.Windows.Clipboard" Version="0.8.28" />
|
||||
<PackageReference Include="Interop.Microsoft.Office.Interop.OneNote" Version="1.1.0" />
|
||||
<PackageReference Include="Microsoft.Office.Interop.Excel" Version="15.0.4795.1000" />
|
||||
|
|
|
@ -25,12 +25,10 @@
|
|||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="AutoProperties.Fody" Version="1.21.0" />
|
||||
<PackageReference Include="Dapplo.CaliburnMicro.Configuration" Version="1.2.26" />
|
||||
<PackageReference Include="Dapplo.CaliburnMicro.Translations" Version="1.2.26" />
|
||||
<PackageReference Include="Dapplo.HttpExtensions.JsonNet" Version="0.9.18" />
|
||||
<PackageReference Include="Dapplo.HttpExtensions.OAuth" Version="0.9.18" />
|
||||
<PackageReference Include="Dapplo.Windows.Clipboard" Version="0.8.28" />
|
||||
<PackageReference Include="MahApps.Metro" Version="2.0.0-alpha0262" />
|
||||
<PackageReference Include="MahApps.Metro" Version="2.0.0-alpha0316" />
|
||||
<PackageReference Include="Fody" Version="4.2.1">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
|
||||
|
|
|
@ -25,8 +25,6 @@
|
|||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="AutoProperties.Fody" Version="1.21.0" />
|
||||
<PackageReference Include="Dapplo.CaliburnMicro.Configuration" Version="1.2.26" />
|
||||
<PackageReference Include="Dapplo.CaliburnMicro.Translations" Version="1.2.26" />
|
||||
<PackageReference Include="Dapplo.HttpExtensions.OAuth" Version="0.9.18" />
|
||||
<PackageReference Include="Dapplo.Windows.Clipboard" Version="0.8.28" />
|
||||
<PackageReference Include="Fody" Version="4.2.1">
|
||||
|
|
|
@ -24,12 +24,10 @@
|
|||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="AutoProperties.Fody" Version="1.21.0" />
|
||||
<PackageReference Include="Dapplo.CaliburnMicro.Configuration" Version="1.2.26" />
|
||||
<PackageReference Include="Dapplo.CaliburnMicro.Translations" Version="1.2.26" />
|
||||
<PackageReference Include="Dapplo.HttpExtensions.JsonNet" Version="0.9.18" />
|
||||
<PackageReference Include="Dapplo.HttpExtensions.OAuth" Version="0.9.18" />
|
||||
<PackageReference Include="Dapplo.Windows.Clipboard" Version="0.8.28" />
|
||||
<PackageReference Include="MahApps.Metro" Version="2.0.0-alpha0262" />
|
||||
<PackageReference Include="MahApps.Metro" Version="2.0.0-alpha0316" />
|
||||
<PackageReference Include="Fody" Version="4.2.1">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
|
||||
|
|
|
@ -19,8 +19,6 @@
|
|||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Dapplo.CaliburnMicro.Configuration" Version="1.2.26" />
|
||||
<PackageReference Include="Dapplo.CaliburnMicro.Translations" Version="1.2.26" />
|
||||
<PackageReference Include="Dapplo.Windows.Clipboard" Version="0.8.28" />
|
||||
<PackageReference Include="Microsoft.Windows.SDK.Contracts" Version="10.0.18362.2002-preview" />
|
||||
<PackageReference Include="System.Runtime.WindowsRuntime" Version="4.6.0-preview4.19212.13" />
|
||||
|
|
|
@ -23,13 +23,13 @@
|
|||
<ItemGroup>
|
||||
<PackageReference Include="AutoProperties.Fody" Version="1.21.0" />
|
||||
<PackageReference Include="Dapplo.CaliburnMicro.Configuration">
|
||||
<Version>1.2.26</Version>
|
||||
<Version>1.2.28</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Dapplo.CaliburnMicro.Toasts">
|
||||
<Version>1.2.26</Version>
|
||||
<Version>1.2.28</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Dapplo.CaliburnMicro.Translations">
|
||||
<Version>1.2.26</Version>
|
||||
<Version>1.2.28</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Dapplo.HttpExtensions">
|
||||
<Version>0.9.18</Version>
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Dapplo.CaliburnMicro.Translations">
|
||||
<Version>1.2.26</Version>
|
||||
<Version>1.2.28</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Svg">
|
||||
<Version>2.4.3</Version>
|
||||
|
|
|
@ -108,6 +108,21 @@ namespace Greenshot.PerformanceTests
|
|||
}
|
||||
}
|
||||
|
||||
[Benchmark]
|
||||
public void Blur_UnmanagedBitmapReference()
|
||||
{
|
||||
using (var unmanagedBitmap = new UnmanagedBitmap<Bgr32>(400, 400))
|
||||
{
|
||||
unmanagedBitmap.Span.Fill(new Bgr32 { B = 255, G = 255, R = 255 });
|
||||
using (var graphics = Graphics.FromImage(unmanagedBitmap.NativeBitmap))
|
||||
using (var pen = new SolidBrush(Color.Blue))
|
||||
{
|
||||
graphics.FillRectangle(pen, new Rectangle(30, 30, 340, 340));
|
||||
}
|
||||
|
||||
unmanagedBitmap.ApplyBoxBlurReference(10);
|
||||
}
|
||||
}
|
||||
|
||||
[Benchmark]
|
||||
public void Blur_Old()
|
||||
|
|
|
@ -21,6 +21,7 @@ using System.Drawing.Imaging;
|
|||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using System.Windows.Media.Imaging;
|
||||
using Dapplo.CaliburnMicro.Extensions;
|
||||
using Dapplo.Windows.Desktop;
|
||||
|
@ -40,6 +41,13 @@ namespace Greenshot.Tests
|
|||
/// </summary>
|
||||
public class CaptureTests
|
||||
{
|
||||
|
||||
public CaptureTests()
|
||||
{
|
||||
// Make sure the tests work
|
||||
Application.SetHighDpiMode(HighDpiMode.PerMonitorV2);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test if a capture with the screen works
|
||||
/// </summary>
|
||||
|
@ -113,7 +121,9 @@ namespace Greenshot.Tests
|
|||
var bounds = windowToCapture.GetInfo().Bounds;
|
||||
var captureFlow = new CaptureFlow<BitmapSource>
|
||||
{
|
||||
Sources = { new DwmWindowSource(config, () => windowToCapture) }
|
||||
Sources = {
|
||||
new DwmWindowSource(config, () => windowToCapture)
|
||||
}
|
||||
};
|
||||
var capture = await captureFlow.Execute();
|
||||
Assert.NotNull(capture);
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
<ItemGroup>
|
||||
<PackageReference Include="BenchmarkDotNet" Version="0.11.5" />
|
||||
<PackageReference Include="CommandLineParser" Version="2.5.0" />
|
||||
<PackageReference Include="Dapplo.CaliburnMicro.Translations" Version="1.2.26" />
|
||||
<PackageReference Include="Dapplo.CaliburnMicro.Translations" Version="1.2.28" />
|
||||
<PackageReference Include="Dapplo.HttpExtensions.OAuth" Version="0.9.18" />
|
||||
<PackageReference Include="Dapplo.Log.XUnit" Version="1.3.11" />
|
||||
<PackageReference Include="Dapplo.Windows" Version="0.8.28" />
|
||||
|
|
|
@ -58,11 +58,11 @@
|
|||
<PackageReference Include="AutoProperties.Fody" Version="1.21.0" />
|
||||
<PackageReference Include="CommandLineParser" Version="2.5.0" />
|
||||
<PackageReference Include="CommonServiceLocator" Version="2.0.4" />
|
||||
<PackageReference Include="Dapplo.CaliburnMicro.Dapp" Version="1.2.26" />
|
||||
<PackageReference Include="Dapplo.CaliburnMicro.Configuration" Version="1.2.26" />
|
||||
<PackageReference Include="Dapplo.CaliburnMicro.Metro" Version="1.2.26" />
|
||||
<PackageReference Include="Dapplo.CaliburnMicro.Toasts" Version="1.2.26" />
|
||||
<PackageReference Include="Dapplo.CaliburnMicro.Translations" Version="1.2.26" />
|
||||
<PackageReference Include="Dapplo.CaliburnMicro.Dapp" Version="1.2.28" />
|
||||
<PackageReference Include="Dapplo.CaliburnMicro.Configuration" Version="1.2.28" />
|
||||
<PackageReference Include="Dapplo.CaliburnMicro.Metro" Version="1.2.28" />
|
||||
<PackageReference Include="Dapplo.CaliburnMicro.Toasts" Version="1.2.28" />
|
||||
<PackageReference Include="Dapplo.CaliburnMicro.Translations" Version="1.2.28" />
|
||||
<PackageReference Include="Dapplo.HttpExtensions.JsonNet" Version="0.9.18" />
|
||||
<PackageReference Include="Dapplo.HttpExtensions.OAuth" Version="0.9.18" />
|
||||
<PackageReference Include="Dapplo.Log.LogFile" Version="1.3.11" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue