Skip to content
This repository was archived by the owner on Jul 12, 2022. It is now read-only.

Commit 4a53025

Browse files
author
Lakshmi Priya Sekar
committed
Fix bugs
- Use FormatterEngine create method - Update build.cmd to use Dev14 msbuild installation
1 parent 5cb0853 commit 4a53025

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

build.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ IF EXIST "%~dp0src\packages" goto build
1616

1717
:build
1818

19-
"%ProgramFiles(x86)%\MSBuild\12.0\bin\MSBuild.exe" %SOLUTION_PATH% /p:OutDir="%~dp0bin " /nologo /m /v:m /flp:verbosity=normal %*
19+
"%ProgramFiles(x86)%\MSBuild\14.0\bin\MSBuild.exe" %SOLUTION_PATH% /p:OutDir="%~dp0bin " /nologo /m /v:m /flp:verbosity=normal %*

src/CodeFormatter/Program.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ private static async Task RunAsnc(string solutionFilePath, CancellationToken can
4040
var workspace = MSBuildWorkspace.Create();
4141
await workspace.OpenSolutionAsync(solutionFilePath, cancellationToken);
4242

43-
var catalog = new AssemblyCatalog(typeof(Program).Assembly);
44-
var container = new CompositionContainer(catalog);
45-
var engine = container.GetExportedValue<IFormattingEngine>();
43+
var engine = FormattingEngine.Create();
4644
await engine.RunAsync(workspace, cancellationToken);
4745
}
4846
}

0 commit comments

Comments
 (0)