From e864120d14c829df6f6d4c6cff6f3d23db19606c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Strehovsk=C3=BD?= Date: Wed, 29 Nov 2017 19:16:18 +0100 Subject: [PATCH] Use ILAsm from buildtools (#15172) * Use ILAsm from buildtools On Windows: this stops using the ILASM that ships with Windows in favor of CoreCLR ILASM On Unix: this stops using the live built ILASM. I image this fixes some issues in crossbuild on both platforms but I can't find where the workarounds for that are. Necessary prerequisite for being able to build tests for the default interfaces feature. --- tests/dir.props | 1 - tests/src/IL.targets | 37 ------------------------------------- tests/src/dir.targets | 5 ++--- 3 files changed, 2 insertions(+), 41 deletions(-) delete mode 100644 tests/src/IL.targets diff --git a/tests/dir.props b/tests/dir.props index 0d00f65..f65af48 100644 --- a/tests/dir.props +++ b/tests/dir.props @@ -43,7 +43,6 @@ <_TargetFrameworkDirectories Condition="'$(BuildToolsTargetsDesktop)' != 'true'">$(MSBuildThisFileDirectory)/Documentation <_FullFrameworkReferenceAssemblyPaths Condition="'$(BuildToolsTargetsDesktop)' != 'true'">$(MSBuildThisFileDirectory)/Documentation true - true diff --git a/tests/src/IL.targets b/tests/src/IL.targets deleted file mode 100644 index d1075e5..0000000 --- a/tests/src/IL.targets +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - <_ShellKeyMarker Condition="'$(RunningOnUnix)' == 'true'">- - <_ShellKeyMarker Condition="'$(RunningOnUnix)' != 'true'">/ - <_ilasm>ilasm - <_ilasm Condition="'$(RunningOnUnix)' == 'true'">$(CoreCLRBinDir)ilasm - <_OutputTypeArgument Condition="'$(OutputType)' == 'Library'">$(_ShellKeyMarker)DLL - <_OutputTypeArgument Condition="'$(OutputType)' == 'Exe'">$(_ShellKeyMarker)EXE - <_IlasmSwitches>-QUIET -NOLOGO - <_IlasmSwitches Condition="'$(FoldIdenticalMethods)' == 'True'">$(_IlasmSwitches) -FOLD - <_IlasmSwitches Condition="'$(SizeOfStackReserve)' != ''">$(_IlasmSwitches) -STACK=$(SizeOfStackReserve) - <_IlasmSwitches Condition="'$(DebugType)' == 'Full'">$(_IlasmSwitches) -DEBUG - <_IlasmSwitches Condition="'$(DebugType)' == 'Impl'">$(_IlasmSwitches) -DEBUG=IMPL - <_IlasmSwitches Condition="'$(DebugType)' == 'PdbOnly'">$(_IlasmSwitches) -DEBUG=OPT - <_IlasmSwitches Condition="'$(Optimize)' == 'True'">$(_IlasmSwitches) -OPTIMIZE - - - - - - - - - - - diff --git a/tests/src/dir.targets b/tests/src/dir.targets index 4aa925f..e6845e0 100644 --- a/tests/src/dir.targets +++ b/tests/src/dir.targets @@ -106,10 +106,9 @@ IL CSharp - - - + true +