Skip to content

Commit

Permalink
[tests] Set XamarinMacFrameworkRoot as an environment variable when r…
Browse files Browse the repository at this point in the history
…unning MSBuild tests.

Set XamarinMacFrameworkRoot as an environment variable when running MSBuild
tests, because we have command-line tools that needs it (bgen), and only
passing it as a MSBuild parameter doesn't reach the environment (and any
subprocesses).
  • Loading branch information
rolfbjarne committed Jul 30, 2018
1 parent 06d7410 commit 2e75028
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/common/mac/ProjectTestHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ public static string BuildProject (string csprojTarget, bool isUnified, bool sho
Environment.SetEnvironmentVariable ("TargetFrameworkFallbackSearchPaths", rootDirectory + "/Library/Frameworks/Mono.framework/External/xbuild-frameworks");
Environment.SetEnvironmentVariable ("MSBuildExtensionsPathFallbackPathsOverride", rootDirectory + "/Library/Frameworks/Mono.framework/External/xbuild");
Environment.SetEnvironmentVariable ("XAMMAC_FRAMEWORK_PATH", rootDirectory + "/Library/Frameworks/Xamarin.Mac.framework/Versions/Current");
Environment.SetEnvironmentVariable ("XamarinMacFrameworkRoot", rootDirectory + "/Library/Frameworks/Xamarin.Mac.framework/Versions/Current");

// This is to force build to use our mmp and not system mmp
StringBuilder buildArgs = new StringBuilder ();
Expand Down

0 comments on commit 2e75028

Please sign in to comment.