xamarin-macios/msbuild/Xamarin.Mac.Tasks
Ankit Jain 4a87ccf948 [msbuild] Ensure that `BuildOnlySettings` is the first target to run for a `Build` (#841)
When building the `inspector` project with msbuild, the build fails
because of a missing `System.Runtime` reference,
-> which can be traced to the `ResolveAssemblyReferences` task not resolving dependencies.
	-> which can be traced to `$(_FindDependencies)` property being set to false
		-> which is false, because `$(BuildingProject)` is false, which should
		   have been set by the `BuildOnlySettings` target, run as a dependency of
		   `CoreBuild`.

We override `$(BuildDependsOn)` as:

  <BuildDependsOn>
     ...
     _UnpackLibraryResources;
     $(BuildDependsOn);
     ...
  </BuildDependsOn>

.. so, `_UnpackLibraryResources` runs before `BuildOnlySettings`. And
`_UnpackLibraryResources` depends on `ResolveReferences`, so the
`ResolveAssemblyReferences` task runs with the incorrect properties. And
later, during the build when `ResolveAssemblyReferences` is invoked
again, it gets skipped and the incorrect outputs get used.

`$(BuildingProject)` should be true for a project build. So,
`Xamarin.Mac.Common.targets` are fixed for that. And other similar
target files are also fixed.

Note: `Xamarin.iOS.Common.targets` already does this correctly.
Note: `$(BuildingProject)` is not used in xbuild, so this bug is seen
only when building with msbuild.
2016-09-15 21:38:55 -04:00
..
Tasks [msbuild] Make Mac IBTool logic consistent with iOS logic (#127) 2016-06-03 13:55:44 -04:00
FrameworkList.xml.in Build MSBuild targets & assemblies. 2016-04-24 14:48:44 -04:00
Xamarin.Mac.AppExtension.CSharp.targets [Mac] Add support for os x extensions (#83) 2016-05-25 17:20:33 -04:00
Xamarin.Mac.AppExtension.Common.props [Mac] Add support for os x extensions (#83) 2016-05-25 17:20:33 -04:00
Xamarin.Mac.AppExtension.Common.targets [Mac] Add support for os x extensions (#83) 2016-05-25 17:20:33 -04:00
Xamarin.Mac.CSharp.targets Build MSBuild targets & assemblies. 2016-04-24 14:48:44 -04:00
Xamarin.Mac.Common.props [msbuild] Rename and unify to IsMacEnabled (#193) 2016-06-16 13:14:43 -04:00
Xamarin.Mac.Common.targets [msbuild] Ensure that `BuildOnlySettings` is the first target to run for a `Build` (#841) 2016-09-15 21:38:55 -04:00
Xamarin.Mac.FSharp.targets Add F# targets to Xamarin.Mac.FSharp.targets 2016-08-02 20:17:34 +01:00
Xamarin.Mac.ObjCBinding.CSharp.props Build MSBuild targets & assemblies. 2016-04-24 14:48:44 -04:00
Xamarin.Mac.ObjCBinding.CSharp.targets [XM] Fix msbuild incompatibility in binding target file (#375) 2016-07-11 13:56:04 -04:00
Xamarin.Mac.ObjCBinding.Common.props Build MSBuild targets & assemblies. 2016-04-24 14:48:44 -04:00
Xamarin.Mac.ObjCBinding.Common.targets [msbuild] Ensure that `BuildOnlySettings` is the first target to run for a `Build` (#841) 2016-09-15 21:38:55 -04:00
Xamarin.Mac.Tasks.csproj [msbuild] Unify and relocate shared MSBuild overriden tasks (#179) 2016-06-13 15:07:18 -04:00
Xamarin.Mac.XM45.targets [XM] - XM Mobile should not resolve from the GAC either (#242) 2016-06-20 15:26:33 -04:00