Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Xamarin.MacDev] Fix computing DTSDKBuild. Fixes #xamarin/xamarin-mac…
…ios@19733. (#116) We were accidentally getting the ProductBuildVersion value (which is used for DTSDKBuild) from the system, not from the SDK used during the build. This happened because we were trying to Path.Combine two rooted paths - in which case Path.Combine returns the second path, without combining anything. The fix is to compute the path of the plist where the ProductBuildVersion value is located correctly. Fixing the Path.Combine issue also revealed that the first path passed to Path.Combine was wrong, so that got fixed too. And finally make sure we don't Path.Combine two rooted paths anywhere else - in all other cases we're supposed to just use the second path without prepending the first, so just remove the Path.Combine call completely in those cases. Fixes xamarin/xamarin-macios#19733.
- Loading branch information