Skip to content

Commit

Permalink
Disable ConfigureMsBuild on Mono, fixes #60
Browse files Browse the repository at this point in the history
  • Loading branch information
hazzik committed Oct 23, 2017
1 parent 69edb88 commit 6709b07
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/AsyncGenerator.CommandLine/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ public static int Main(string[] args)
// in order to fix the issue https://github.com/Microsoft/msbuild/issues/2369 -> https://github.com/Microsoft/msbuild/issues/2030
private static void ConfigureMSBuild()
{
if (Type.GetType("Mono.Runtime") != null)
return;

var query = new SetupConfiguration();
var query2 = (ISetupConfiguration2)query;

Expand Down
3 changes: 3 additions & 0 deletions Source/AsyncGenerator.Tests/BaseFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@ protected string GetMethodName(LambdaExpression expression)
// in order to fix the issue https://github.com/Microsoft/msbuild/issues/2369 -> https://github.com/Microsoft/msbuild/issues/2030
private static void ConfigureMSBuild()
{
if (Type.GetType("Mono.Runtime") != null)
return;

var query = new SetupConfiguration();
var query2 = (ISetupConfiguration2)query;

Expand Down

0 comments on commit 6709b07

Please sign in to comment.