Skip to content

Commit

Permalink
Fix IDE0300 'Collection initialization can be simplified'.
Browse files Browse the repository at this point in the history
  • Loading branch information
bgrainger committed Jul 11, 2024
1 parent 782cf02 commit 738e96f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Faithlife.Build/MSBuildRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ public static string GetMSBuildPath(MSBuildSettings? settings)
{
return version switch
{
MSBuildVersion.VS2017 => (new[] { Environment.SpecialFolder.ProgramFilesX86 }, "2017", "15.0"),
MSBuildVersion.VS2019 => (new[] { Environment.SpecialFolder.ProgramFilesX86 }, "2019", "Current"),
MSBuildVersion.VS2022 => (new[] { Environment.SpecialFolder.ProgramFiles, Environment.SpecialFolder.ProgramFilesX86 }, "2022", "Current"),
MSBuildVersion.VS2017 => ([Environment.SpecialFolder.ProgramFilesX86], "2017", "15.0"),
MSBuildVersion.VS2019 => ([Environment.SpecialFolder.ProgramFilesX86], "2019", "Current"),
MSBuildVersion.VS2022 => ([Environment.SpecialFolder.ProgramFiles, Environment.SpecialFolder.ProgramFilesX86], "2022", "Current"),
_ => throw new BuildException($"Unexpected MSBuildVersion: {version}"),
};
}
Expand Down

0 comments on commit 738e96f

Please sign in to comment.