Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[msbuild][mac] Fix regression in facade paths for Full/Modern projects (
#2655) Regression from: ---------------- commit e5d012c Author: Chris Hamons <[email protected]> Date: Mon Aug 14 13:17:10 2017 -0500 [macos] System mono should resolve non-XM libraries from system (#2480) ---------------- The way this manifests is that for (eg.) a `TargetFrameworkName=Full` project, after the `FixTargetFrameworkDirectory`(X.M.Common.targets) target we end up with `$(TargetFrameworkDirectory)` having value of: /Library/Frameworks/Xamarin.Mac.framework/Versions/Current/lib/mono/4.5 /Library/Frameworks/Mono.framework/Versions/5.4.0/lib/mono/4.6.1-api/Facades/ .. and the second path is incorrect. It should have been: /Library/Frameworks/Xamarin.Mac.framework/Versions/Current/lib/mono/4.5/Facades This path fixup is done by `FixDesignTimeFacades` (X.M.msbuild.targets) target, but this target is running *after* `FixTargetFrameworkDirectory`, so it doesn't see the fixed facade path! Both `FixTargetFrameworkDirectory` and `FixDesignTimeFacades` have `AfterTargets="GetReferenceAssemblyPaths`. But since `FixTargetFrameworkDirectory` is defined before the `Xamarin.Mac.msbuild.targets` import, so it gets executed before `FixDesignTimeFacades`.
- Loading branch information