Skip to content

Commit

Permalink
Rename msbuild directory to .msbuild
Browse files Browse the repository at this point in the history
In MSBuild 16, the current omnisharp standalone msbuild path gets detected as belonging to Visual Studio, resulting in incorrect build behavior.
  • Loading branch information
Ravi Chande committed Apr 12, 2019
1 parent ea4c4da commit abe7b34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ void CopyMonoBuild(BuildEnvironment env, string sourceFolder, string outputFolde
{
DirectoryHelper.Copy(sourceFolder, outputFolder, copySubDirectories: false);

var msbuildFolder = CombinePaths(outputFolder, "msbuild");
var msbuildFolder = CombinePaths(outputFolder, ".msbuild");

// Copy MSBuild runtime and libraries
DirectoryHelper.Copy($"{env.Folders.MSBuild}", msbuildFolder);
Expand Down Expand Up @@ -830,7 +830,7 @@ string PublishWindowsBuild(string project, BuildEnvironment env, BuildPlan plan,
}

// Copy MSBuild to output
DirectoryHelper.Copy($"{env.Folders.MSBuild}", CombinePaths(outputFolder, "msbuild"));
DirectoryHelper.Copy($"{env.Folders.MSBuild}", CombinePaths(outputFolder, ".msbuild"));

CopyExtraDependencies(env, outputFolder);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ bool TryGetToolsPath(string versionPath, string binPath, out string toolsPath)

protected static string FindLocalMSBuildDirectory()
{
// If OmniSharp is running normally, MSBuild is located in an 'msbuild' folder beneath OmniSharp.exe.
var msbuildDirectory = Path.Combine(AppContext.BaseDirectory, "msbuild");
// If OmniSharp is running normally, MSBuild is located in an '.msbuild' folder beneath OmniSharp.exe.
var msbuildDirectory = Path.Combine(AppContext.BaseDirectory, ".msbuild");

if (!Directory.Exists(msbuildDirectory))
{
Expand Down

0 comments on commit abe7b34

Please sign in to comment.