Remove reflection from UWP sample startup path

このコミットが含まれているのは:
Sergio Pedri committed 2022-12-24 13:31:09 +01:00
1 親 f2322c1126
コミット 50451ad952
4ファイル変更
+25 -54

検索条件に一致するファイルはありません

+22 -2
ファイルの表示
@@ -6,9 +6,29 @@ if(!(Test-Path -Path $TOKENS_FOLDER_RELATIVE_PATH)) {
$TOKENS_FOLDER_PATH = Resolve-Path -Path $TOKENS_FOLDER_RELATIVE_PATH
# AppCenter tokens
$APPCENTER_TOKENS_NAME = "AppCenter.txt"
$APPCENTER_TOKENS_NAME = "App.AppCenter.cs"
$APPCENTER_TOKENS_PATH = Join-Path -Path $TOKENS_FOLDER_PATH -ChildPath $APPCENTER_TOKENS_NAME
if (!(Test-Path -Path $APPCENTER_TOKENS_PATH))
{
echo "<APP_CENTER_SECRET>" > $APPCENTER_TOKENS_PATH
# Prepare the generated source
$APP_APPCENTER_TEXT =
@"
// <auto-generated/>
#pragma warning disable
#nullable enable
namespace ComputeSharp.SwapChain.Uwp;
/// <inheritdoc/>
partial class App
{
/// <summary>
/// The secret token for the AppService connection.
/// </summary>
private const string AppServiceSecret = "";
}
"@.Trim()
# Output the source to the target file
Add-Content $APP_APPCENTER_TEXT -Path $APPCENTER_TOKENS_PATH -NoNewline
}