From 3fa3743ffb4cad6a41802f3d9a988e5ccfc98e74 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Tue, 10 Oct 2023 23:43:38 +0200 Subject: [PATCH] Remove CreateBlankServiceTokens file --- .gitignore | 3 --- build/CreateBlankServiceTokens.ps1 | 40 ------------------------------ build/Directory.Build.targets | 4 +-- 3 files changed, 2 insertions(+), 45 deletions(-) delete mode 100644 build/CreateBlankServiceTokens.ps1 diff --git a/.gitignore b/.gitignore index 3afc0186..73aa5e9a 100644 --- a/.gitignore +++ b/.gitignore @@ -3,9 +3,6 @@ ## ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore -# App tokens -**/ServiceTokens/ - # User-specific files *.suo *.user diff --git a/build/CreateBlankServiceTokens.ps1 b/build/CreateBlankServiceTokens.ps1 deleted file mode 100644 index 63cd06bc..00000000 --- a/build/CreateBlankServiceTokens.ps1 +++ /dev/null @@ -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 = -@" -// -#pragma warning disable -#nullable enable - -namespace ComputeSharp.SwapChain.Uwp; - -/// -/// A with some secret service tokens. -/// -public static class ServiceTokens -{ - /// - /// The secret token for the AppService connection. - /// -#if RELEASE - internal const string AppService = ""; -#else - internal const string AppService = ""; -#endif -} -"@.Trim() - - # Output the source to the target file - Add-Content $SERVICE_TOKENS_TEXT -Path $SERVICE_TOKENS_PATH -NoNewline -} \ No newline at end of file diff --git a/build/Directory.Build.targets b/build/Directory.Build.targets index 01237a21..277272c1 100644 --- a/build/Directory.Build.targets +++ b/build/Directory.Build.targets @@ -12,8 +12,8 @@ $(VersionPrefix)-$(VersionSuffix)