chore: update uno sample app with latest (#584)

* chore: update uno sample app with latest

* Cleaning up UnoSample to use SampleHelper

Updated the top level Directory.Build.targets to support samples with solutions and nested directories.
Added build scripts.

* Adding Uno sample to GHA

* Remove framework bootstrap

* Fixing mainExe name on non-windows

---------

Co-authored-by: Kevin Bost <kitokeboo@gmail.com>
This commit is contained in:
Steve Bilogan
2025-03-26 07:29:19 -07:00
committed by GitHub
parent 57cf68d127
commit 4d1388fb5f
58 changed files with 389 additions and 1335 deletions

View File

@@ -1,10 +1,12 @@
using System.Linq;
using System.Reflection;
#nullable enable
internal static class SampleHelper
{
public static string GetReleasesDir() => Assembly.GetEntryAssembly()
public static string? GetReleasesDir() => Assembly.GetEntryAssembly()?
.GetCustomAttributes<AssemblyMetadataAttribute>()
.Where(x => x.Key == "VelopackSampleReleaseDir")
.Single().Value;
}
}
#nullable restore