diff --git a/build.py b/build.py index 5839eaddb7..8dc444dbde 100755 --- a/build.py +++ b/build.py @@ -165,7 +165,7 @@ def BuildOmniSharp(): sys.exit( 'msbuild or xbuild is required to build Omnisharp' ) sh.cd( p.join( DIR_OF_THIS_SCRIPT, 'third_party/OmniSharpServer' ) ) - sh.Command( build_command )( _out = sys.stdout ) + sh.Command( build_command )( "/property:Configuration=Release", _out = sys.stdout ) def BuildGoCode(): diff --git a/ycmd/completers/cs/cs_completer.py b/ycmd/completers/cs/cs_completer.py index 82ba223586..76553c65eb 100755 --- a/ycmd/completers/cs/cs_completer.py +++ b/ycmd/completers/cs/cs_completer.py @@ -37,7 +37,7 @@ NO_DIAGNOSTIC_MESSAGE = 'No diagnostic for current line!' PATH_TO_OMNISHARP_BINARY = os.path.join( os.path.abspath( os.path.dirname( __file__ ) ), - '../../../third_party/OmniSharpServer/OmniSharp/bin/Debug/OmniSharp.exe' ) + '../../../third_party/OmniSharpServer/OmniSharp/bin/Release/OmniSharp.exe' ) # TODO: Handle this better than dummy classes