Skip to content

Commit

Permalink
chore: Adjust
Browse files Browse the repository at this point in the history
  • Loading branch information
Youssef1313 authored Aug 16, 2024
1 parent 78386bb commit af114c0
Showing 1 changed file with 14 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,24 @@ public class Given_DependencyObjectGenerator
private static readonly ReferenceAssemblies _net80Android = ReferenceAssemblies.Net.Net80Android.AddPackages([new PackageIdentity("Uno.Diagnostics.Eventing", "2.1.0")]);
private static readonly ReferenceAssemblies _net80 = ReferenceAssemblies.Net.Net80.AddPackages([new PackageIdentity("Uno.Diagnostics.Eventing", "2.1.0")]);

private static MetadataReference[] BuildUnoReferences(bool isAndroid)
{
const string configuration =
private const string Configuration =
#if DEBUG
"Debug";
"Debug";
#else
"Release";
"Release";
#endif
string[] availableTargets;
if (isAndroid)
{
availableTargets = [Path.Combine("Uno.UI.netcoremobile", configuration, "net8.0")];
}
else
{
availableTargets = [
Path.Combine("Uno.UI.Skia", configuration, "net8.0"),
Path.Combine("Uno.UI.Reference", configuration, "net8.0"),
Path.Combine("Uno.UI.Tests", configuration, "net8.0"),

private const string TFM = "net8.0";

private static MetadataReference[] BuildUnoReferences(bool isAndroid)
{
string[] availableTargets = isAndroid
? [Path.Combine("Uno.UI.netcoremobile", Configuration, $"{TFM}-android")]
: [
Path.Combine("Uno.UI.Skia", Configuration, TFM),
Path.Combine("Uno.UI.Reference", Configuration, TFM),
Path.Combine("Uno.UI.Tests", Configuration, TFM),
];
}

var unoUIBase = Path.Combine(
Path.GetDirectoryName(typeof(Given_DependencyObjectGenerator).Assembly.Location)!,
Expand Down

0 comments on commit af114c0

Please sign in to comment.