Skip to content

Commit

Permalink
test: To use FrameworkReferenceAssemblies.
Browse files Browse the repository at this point in the history
  • Loading branch information
HavenDV committed Aug 30, 2023
1 parent 34788ad commit 91d5aba
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 22 deletions.
4 changes: 2 additions & 2 deletions src/Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<PackageVersion Include="GitHubActionsTestLogger" Version="2.3.3" />
<PackageVersion Include="IsExternalInit" Version="1.0.3" />
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp" Version="4.3.1" />
<PackageVersion Include="H.Generators.Extensions" Version="1.16.0" />
<PackageVersion Include="H.Generators.Extensions" Version="1.17.1" />
<PackageVersion Include="ConventionalCommitsGitInfo" Version="0.3.6" />
<PackageVersion Include="DotNet.ReproducibleBuilds" Version="1.1.1" />
</ItemGroup>
Expand All @@ -20,6 +20,6 @@
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.7.0" />
<PackageVersion Include="Verify.MSTest" Version="20.8.2" />
<PackageVersion Include="Verify.SourceGenerators" Version="2.1.0" />
<PackageVersion Include="H.Generators.Tests.Extensions" Version="1.16.0" />
<PackageVersion Include="H.Generators.Tests.Extensions" Version="1.17.1" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -143,26 +143,12 @@ private async Task CheckSourceAsync<T>(
{
Framework.None => ReferenceAssemblies.NetFramework.Net48.Wpf,
Framework.Wpf => ReferenceAssemblies.NetFramework.Net48.Wpf,
Framework.Uwp => ReferenceAssemblies.Net.Net60Windows
.WithPackages(ImmutableArray.Create(
new PackageIdentity("Microsoft.NETCore.UniversalWindowsPlatform", "6.2.14"),
new PackageIdentity("Microsoft.UI.Xaml", "2.8.2"),
new PackageIdentity("Microsoft.Net.UWPCoreRuntimeSdk", "2.2.14"))),
Framework.WinUi => ReferenceAssemblies.Net.Net60Windows
.WithPackages(ImmutableArray.Create(
new PackageIdentity("Microsoft.WindowsAppSDK", "1.2.230118.102"),
new PackageIdentity("Microsoft.UI.Xaml", "2.8.2"),
new PackageIdentity("Microsoft.Windows.SDK.NET.Ref", "10.0.22621.28"))),
Framework.Uno => ReferenceAssemblies.NetStandard.NetStandard20
.WithPackages(ImmutableArray.Create(new PackageIdentity("Uno.UI", "4.7.30"))),
Framework.UnoWinUi => ReferenceAssemblies.NetStandard.NetStandard20
.WithPackages(ImmutableArray.Create(new PackageIdentity("Uno.WinUI", "4.7.30"))),
Framework.Avalonia => ReferenceAssemblies.NetStandard.NetStandard20
.WithPackages(ImmutableArray.Create(new PackageIdentity("Avalonia", "11.0.4"))),
Framework.Maui => ReferenceAssemblies.Net.Net60Windows
.WithPackages(ImmutableArray.Create(
new PackageIdentity("Microsoft.Maui.Controls.Ref.any", "6.0.550"),
new PackageIdentity("Microsoft.Maui.Core.Ref.any", "6.0.550"))),
Framework.Uwp => FrameworkReferenceAssemblies.Net70Uwp,
Framework.WinUi => FrameworkReferenceAssemblies.Net70WinUi,
Framework.Uno => FrameworkReferenceAssemblies.Net70Uno,
Framework.UnoWinUi => FrameworkReferenceAssemblies.Net70UnoWinUi,
Framework.Avalonia => FrameworkReferenceAssemblies.Net60Avalonia,
Framework.Maui => FrameworkReferenceAssemblies.Net70Maui,
_ => throw new NotImplementedException(),
};
var references = await referenceAssemblies.ResolveAsync(null, cancellationToken);
Expand Down

0 comments on commit 91d5aba

Please sign in to comment.