From 2b0bb3a332080f092531da180c5991d07d2ae2bc Mon Sep 17 00:00:00 2001 From: Alexander Chocron Date: Thu, 28 Sep 2017 11:35:48 -0700 Subject: [PATCH] Simplify file creation --- git-release.cake | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/git-release.cake b/git-release.cake index f88dc6282..1db97d9e3 100644 --- a/git-release.cake +++ b/git-release.cake @@ -17,12 +17,11 @@ Task("GitRelease") var owner = "Microsoft"; var repo = "mobile-center-sdk-dotnet"; - // Oddly, there is no obvious API to create a file, so we have to create a file by copying an existing - // file and replacing its contents + System.IO.File.Create("tempRelease.md").Dispose(); var releaseFile = File("tempRelease.md"); - CopyFile(File("SDK/MobileCenter/Microsoft.Azure.Mobile/Properties/AssemblyInfo.cs"), releaseFile); FileWriteText(releaseFile,"Please update description. It will be pulled out automatically from release.md next time."); - // Build a string containing paths to NuGet packages + + // Build a string containing paths to NuGet packages. var files = GetFiles("../../**/*Microsoft.Azure.Mobile*.nupkg"); var assets = string.Empty; foreach (var file in files)