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

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