Split out copy of Ilasm and make it optional
authorEric St. John <ericstj@microsoft.com>
Fri, 22 Feb 2019 21:09:31 +0000 (13:09 -0800)
committerEric St. John <ericstj@microsoft.com>
Fri, 22 Feb 2019 21:38:00 +0000 (13:38 -0800)
commite8165fb3a4d3fd182f1e69d315a77714aeed5ea7
treef8e83402ef50092dc4374b64e45d731b64a43316
parent2fc17fa98329c88aff89d731c0d20d94f07b8679
Split out copy of Ilasm and make it optional

Allow for a repository to provide its own copy of ILAsm rather than restoring & copying it its own location.

To use, set the ILAsmToolPath proerty to the directory containing ilasm, similar to CscToolPath.

I noticed that these targets left behind the ILAsm files in temp for each project every time it
built when ToolsDir wasn't defined, so I've fixed that by instead copying to obj.

Commit migrated from https://github.com/dotnet/coreclr/commit/9069830185d02c4753ab03a6d4b8c9036644f825
src/coreclr/src/.nuget/Microsoft.NET.Sdk.IL/targets/Microsoft.NET.Sdk.IL.targets