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

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