Blame SOURCES/runtime-mono-remove-ilstrip.patch

6c447a
diff --git a/src/mono/nuget/Microsoft.NET.Runtime.MonoTargets.Sdk/Microsoft.NET.Runtime.MonoTargets.Sdk.pkgproj b/src/mono/nuget/Microsoft.NET.Runtime.MonoTargets.Sdk/Microsoft.NET.Runtime.MonoTargets.Sdk.pkgproj
6c447a
index 724b704f864..3dabdc81dae 100644
6c447a
--- a/src/mono/nuget/Microsoft.NET.Runtime.MonoTargets.Sdk/Microsoft.NET.Runtime.MonoTargets.Sdk.pkgproj
6c447a
+++ b/src/mono/nuget/Microsoft.NET.Runtime.MonoTargets.Sdk/Microsoft.NET.Runtime.MonoTargets.Sdk.pkgproj
6c447a
@@ -6,7 +6,7 @@
6c447a
   </PropertyGroup>
6c447a
 
6c447a
   <ItemGroup>
6c447a
-    <ProjectReference Include="$(RepoTasksDir)ILStripTask\ILStrip.csproj" />
6c447a
+    <ProjectReference Include="$(RepoTasksDir)ILStripTask\ILStrip.csproj" Condition="'$(DotNetBuildFromSource)' != 'true'" />
6c447a
     <ProjectReference Include="$(RepoTasksDir)RuntimeConfigParser\RuntimeConfigParser.csproj" />
6c447a
     <ProjectReference Include="$(RepoTasksDir)JsonToItemsTaskFactory\JsonToItemsTaskFactory.csproj" />
6c447a
   </ItemGroup>
6c447a
@@ -15,7 +15,7 @@
6c447a
     <PackageFile Include="Sdk\Sdk.props" TargetPath="Sdk" />
6c447a
     <PackageFile Include="Sdk\Sdk.targets" TargetPath="Sdk" />
6c447a
     <PackageFile Include="build\$(MSBuildProjectName).props" TargetPath="build" />
6c447a
-    <PackageFile Include="Sdk\ILStripTask.props" TargetPath="Sdk" />
6c447a
+    <PackageFile Include="Sdk\ILStripTask.props" TargetPath="Sdk" Condition="'$(DotNetBuildFromSource)' != 'true'" />
6c447a
     <PackageFile Include="Sdk\RuntimeConfigParserTask.props" TargetPath="Sdk" />
6c447a
     <PackageFile Include="Sdk\RuntimeComponentManifest.props" TargetPath="Sdk" />
6c447a
     <PackageFile Include="Sdk\RuntimeComponentManifest.targets" TargetPath="Sdk" />
6c447a
diff --git a/src/mono/nuget/Microsoft.NET.Runtime.MonoTargets.Sdk/Sdk/Sdk.props b/src/mono/nuget/Microsoft.NET.Runtime.MonoTargets.Sdk/Sdk/Sdk.props
6c447a
index 8a7ede79242..cfd515eeca9 100644
6c447a
--- a/src/mono/nuget/Microsoft.NET.Runtime.MonoTargets.Sdk/Sdk/Sdk.props
6c447a
+++ b/src/mono/nuget/Microsoft.NET.Runtime.MonoTargets.Sdk/Sdk/Sdk.props
6c447a
@@ -1,5 +1,5 @@
6c447a
 <Project>
6c447a
-  <Import Project="$(MSBuildThisFileDirectory)\ILStripTask.props" />
6c447a
+  <Import Project="$(MSBuildThisFileDirectory)\ILStripTask.props" Condition="'$(DotNetBuildFromSource)' != 'true'" />
6c447a
   <Import Project="$(MSBuildThisFileDirectory)\RuntimeConfigParserTask.props" />
6c447a
   <Import Project="$(MSBuildThisFileDirectory)\RuntimeComponentManifest.props" />
6c447a
 </Project>