From 20a35e81c1f56537d3c50d6605e666c6a9551a44 Mon Sep 17 00:00:00 2001 From: "Denis Kuzmin (github/3F)" Date: Wed, 2 Feb 2022 17:34:08 +0300 Subject: [PATCH] Fixed incorrect format of new generated .sln for CIM Here `\r\n` is important to prevent invalid requests from the IDE --- CI.GUI/Sln.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CI.GUI/Sln.cs b/CI.GUI/Sln.cs index 5fa80d7..3f7841a 100644 --- a/CI.GUI/Sln.cs +++ b/CI.GUI/Sln.cs @@ -31,7 +31,7 @@ namespace net.r_eg.vsSBE.CI.GUI internal static class Sln { private const string EXT = ".sln"; - private const string DEF_NAME = EXT; + private const string DEF_NAME = "vssbe" + EXT; /// Path to directory or .sln or null to search using current dir. /// True to generate the new one instead of exception. @@ -71,7 +71,7 @@ private static string Find(string input = null, bool generate = true) private static string GenerateNewSln(string dir) { var _sln = Path.Combine(dir ?? throw new ArgumentNullException(nameof(dir)), DEF_NAME); - File.WriteAllText(_sln, "\r\nMicrosoft Visual Studio Solution File, Format Version 11.00"); + File.WriteAllText(_sln, "\r\nMicrosoft Visual Studio Solution File, Format Version 11.00\r\n"); return _sln; }