Skip to content

Commit

Permalink
Fixed incorrect format of new generated .sln for CIM
Browse files Browse the repository at this point in the history
Here `\r\n` is important to prevent invalid requests from the IDE
  • Loading branch information
3F committed Feb 2, 2022
1 parent ffe912d commit 20a35e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CI.GUI/Sln.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/// <param name="input">Path to directory or .sln or null to search using current dir.</param>
/// <param name="generate">True to generate the new one instead of exception.</param>
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 20a35e8

Please # to comment.