mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
Add full framework tests on windows
This commit is contained in:
@@ -14,7 +14,9 @@ namespace Velopack.Tests
|
||||
public void NugetVersionAgreesWithNbgv()
|
||||
{
|
||||
var args = new List<string> { "get-version", "-v", "NuGetPackageVersion" };
|
||||
var current = new ProcessStartInfo("nbgv", args).Output(5000);
|
||||
var psi = new ProcessStartInfo("nbgv");
|
||||
psi.AppendArgumentListSafe(args, out var _);
|
||||
var current = psi.Output(3000);
|
||||
Assert.Equal(current, VelopackRuntimeInfo.VelopackNugetVersion.ToString());
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using Velopack.Windows;
|
||||
using System.Net.Http;
|
||||
using Velopack.Windows;
|
||||
|
||||
namespace Velopack.Tests
|
||||
{
|
||||
|
||||
@@ -1,9 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net8.0</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
<Choose>
|
||||
<When Condition="$([MSBuild]::IsOSPlatform('Windows'))">
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net8.0;net48</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<Otherwise>
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
</Otherwise>
|
||||
</Choose>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="System.IO.Packaging" Version="8.0.0" />
|
||||
|
||||
Reference in New Issue
Block a user