Remove CreateBlankServiceTokens file

このコミットが含まれているのは:
Sergio Pedri committed 2023-10-11 00:19:55 +02:00
1 親 305e3ec8fe
コミット 3fa3743ffb
3ファイル変更
+2 -45

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

-3
ファイルの表示
@@ -3,9 +3,6 @@
##
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
# App tokens
**/ServiceTokens/
# User-specific files
*.suo
*.user
-40
ファイルの表示
@@ -1,40 +0,0 @@
# Create the service tokens folder
$SERVICE_TOKENS_FOLDER_RELATIVE_PATH = Join-Path -Path $PSScriptRoot -ChildPath "..\samples\ComputeSharp.SwapChain.Uwp\Assets\Generated"
if(!(Test-Path -Path $SERVICE_TOKENS_FOLDER_RELATIVE_PATH)) {
New-Item -ItemType directory -Path $SERVICE_TOKENS_FOLDER_RELATIVE_PATH
}
$SERVICE_TOKENS_FOLDER_PATH = Resolve-Path -Path $SERVICE_TOKENS_FOLDER_RELATIVE_PATH
# Service tokens
$SERVICE_TOKENS_NAME = "ServiceTokens.g.cs"
$SERVICE_TOKENS_PATH = Join-Path -Path $SERVICE_TOKENS_FOLDER_PATH -ChildPath $SERVICE_TOKENS_NAME
if (!(Test-Path -Path $SERVICE_TOKENS_PATH))
{
# Prepare the generated source
$SERVICE_TOKENS_TEXT =
@"
// <auto-generated/>
#pragma warning disable
#nullable enable
namespace ComputeSharp.SwapChain.Uwp;
/// <summary>
/// A <see langword="class"/> with some secret service tokens.
/// </summary>
public static class ServiceTokens
{
/// <summary>
/// The secret token for the AppService connection.
/// </summary>
#if RELEASE
internal const string AppService = "<APP_CENTER_TOKEN>";
#else
internal const string AppService = "";
#endif
}
"@.Trim()
# Output the source to the target file
Add-Content $SERVICE_TOKENS_TEXT -Path $SERVICE_TOKENS_PATH -NoNewline
}
+2 -2
ファイルの表示
@@ -12,8 +12,8 @@
<!--
Manually set the version if null. This is copied from Microsoft.NET.DefaultAssemblyInfo.targets and is needed
for cases where that target is not being automatically imported (which happens because MSBuild is used instead
of dotnet build for some cases, due to the solution having some UWP and WinUI 3 projects, and non SDK-style too).
The lines setting the prefix have been omitted, as that is already handled in the root .props file.
of dotnet build for some cases, due to the solution having some WinUI 3 projects). The lines setting the prefix
have been omitted, as that is already handled in the root .props file.
-->
<PropertyGroup Condition="'$(Version)' == ''">
<Version Condition="'$(VersionSuffix)' != ''">$(VersionPrefix)-$(VersionSuffix)</Version>