Skip to content

Commit

Permalink
Merge pull request #292 from RevenantX/master
Browse files Browse the repository at this point in the history
Fix setting up PreprocessorSymbols for MSBuild project.
  • Loading branch information
nosami committed Aug 27, 2015
2 parents 71db63f + 7fc033b commit 2ae98ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/Omnisharp.cmd
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
SETLOCAL

%USERPROFILE%\.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta4\bin\dnx %~dp0..\src\OmniSharp run %*
"%USERPROFILE%\.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta4\bin\dnx" %~dp0..\src\OmniSharp run %*
2 changes: 1 addition & 1 deletion src/OmniSharp/MSBuild/MSBuildProjectSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ private void UpdateProject(ProjectFileInfo projectFileInfo)
: new CSharpParseOptions();
if (projectFileInfo.DefineConstants != null && projectFileInfo.DefineConstants.Any())
{
parseOptions.WithPreprocessorSymbols(projectFileInfo.DefineConstants);
parseOptions = parseOptions.WithPreprocessorSymbols(projectFileInfo.DefineConstants);
}
_workspace.SetParseOptions(project.Id, parseOptions);
}
Expand Down

0 comments on commit 2ae98ab

Please sign in to comment.