Skip to content

Commit

Permalink
Merge pull request #1846 from filipw/feature/msbuild-global
Browse files Browse the repository at this point in the history
use global property when resetting TargetFramework
  • Loading branch information
JoeRobich authored Jul 2, 2020
2 parents 8e78f74 + 5394169 commit d0ff417
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ All changes to the project will be documented in this file.

## [1.35.4] - Not yet released
* Added LSP handler for the `workspace/symbol` request. (PR: [#1799](https://github.com/OmniSharp/omnisharp-roslyn/pull/1799))
* Use global MSBuild property when resetting target framework ([#1738](https://github.com/OmniSharp/omnisharp-roslyn/issues/1738), PR: [#1846](https://github.com/OmniSharp/omnisharp-roslyn/pull/1846))
* Do not use Visual Studio MSBuild if it doesn't have .NET SDK resolver ([#1842](https://github.com/OmniSharp/omnisharp-roslyn/issues/1842), [#1730](https://github.com/OmniSharp/omnisharp-roslyn/issues/1730), PR: [#1845](https://github.com/OmniSharp/omnisharp-roslyn/pull/1845))

## [1.35.3] - 2020-06-11
Expand Down
2 changes: 1 addition & 1 deletion src/OmniSharp.MSBuild/ProjectLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ private static void SetTargetFrameworkIfNeeded(MSB.Evaluation.Project evaluatedP
// For now, we'll just pick the first target framework. Eventually, we'll need to
// do better and potentially allow OmniSharp hosts to select a target framework.
targetFramework = targetFrameworks[0];
evaluatedProject.SetProperty(PropertyNames.TargetFramework, targetFramework);
evaluatedProject.SetGlobalProperty(PropertyNames.TargetFramework, targetFramework);
evaluatedProject.ReevaluateIfNecessary();
}
}
Expand Down

0 comments on commit d0ff417

Please sign in to comment.