Disable including source files in nupkgs during source-build to work around the long...
authorEric Erhardt <eric.erhardt@microsoft.com>
Wed, 4 Oct 2017 15:59:32 +0000 (10:59 -0500)
committerEric Erhardt <eric.erhardt@microsoft.com>
Wed, 4 Oct 2017 15:59:32 +0000 (10:59 -0500)
Commit migrated from https://github.com/dotnet/core-setup/commit/fb2b7cba3e0e71fd4d0930af720dfd4e5f9c69de

src/installer/pkg/projects/Microsoft.NETCore.App/src/Microsoft.NETCore.App.depproj
src/installer/pkg/projects/Microsoft.NETCore.UniversalWindowsPlatform/src/Microsoft.NETCore.UniversalWindowsPlatform.depproj
src/installer/pkg/projects/dir.props

index 9dcf30f..f641c47 100644 (file)
       </FilesToPackage>
     </ItemGroup>
 
-    <ItemGroup>
+    <ItemGroup Condition="'$(IncludeSourceFilesInPackage)' == 'true'">
       <!-- pick up any src our sources directory from packages contributing files -->
       <_sourcePathCandidate Include="@(FilesToPackage->'$(PackagesDir)\%(NuGetPackageId)\%(NuGetPackageVersion)\sources')" />
       <_sourcePathCandidate Include="@(FilesToPackage->'$(PackagesDir)\%(NuGetPackageId)\%(NuGetPackageVersion)\src')" />
index bfa67b0..2aa94ec 100644 (file)
     </ItemGroup>
     <Error Text="Unexpected System package(s) @(_secondarySystemPackages)" Condition="'@(_secondarySystemPackages)' != ''" />
 
-    <ItemGroup>
+    <ItemGroup Condition="'$(IncludeSourceFilesInPackage)' == 'true'">
       <!-- pick up any src our sources directory from packages contributing files -->
       <_sourcePathCandidate Include="@(FilesToPackage->'$(PackagesDir)\%(NuGetPackageId)\%(NuGetPackageVersion)\sources')" />
       <_sourcePathCandidate Include="@(FilesToPackage->'$(PackagesDir)\%(NuGetPackageId)\%(NuGetPackageVersion)\src')" />
index 139a6cb..9b49bdb 100644 (file)
@@ -13,6 +13,9 @@
     <PackageTargetRuntime Condition="'$(PackageTargetRuntime)' == '' AND '$(MSBuildProjectExtension)' == '.depproj'">$(NuGetRuntimeIdentifier)</PackageTargetRuntime>
 
     <IsLineupPackage Condition="'$(PackageTargetRuntime)' == ''">true</IsLineupPackage>
+
+    <IncludeSourceFilesInPackage Condition="'$(DotNetBuildFromSource)' == 'true'">false</IncludeSourceFilesInPackage>
+    <IncludeSourceFilesInPackage Condition="'$(IncludeSourceFilesInPackage)' == ''">true</IncludeSourceFilesInPackage>
   </PropertyGroup>
 
   <PropertyGroup Condition="'$(PackageTargetRuntime)' == ''">