Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/actions/spelling/expect.txt
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,8 @@ insufficientmemory
Intelli
INTRESOURCE
invalidparameter
iobj
ipdb
ishelp
ISQ
ISVs
Expand Down
16 changes: 15 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ jobs:
appxPackageDir: $(Build.ArtifactStagingDirectory)\$(buildPlatform)\AppxPackages

steps:
- task: PowerShell@2
displayName: Report Initial Disk Space
inputs:
targetType: 'inline'
script: 'Get-PSDrive -PSProvider FileSystem | Format-Table Name, @{Name="UsedGB";Expression={[math]::Round($_.Used/1GB,2)}}, @{Name="FreeGB";Expression={[math]::Round($_.Free/1GB,2)}}'

- task: NuGetToolInstaller@1
displayName: Install Nuget

Expand Down Expand Up @@ -119,9 +125,17 @@ jobs:
/p:AppxPackageDir="$(appxPackageDir)"
/p:AppxBundle=Always
/p:UapAppxPackageBuildMode=SideloadOnly
/p:WingetCleanIntermediateFiles=true'
/p:WingetCleanIntermediateFiles=true
/p:WingetDisableIncrementalLinkTimeCodeGeneration=true'
maximumCpuCount: true

- task: PowerShell@2
displayName: Report Disk Space
condition: succeededOrFailed()
inputs:
targetType: 'inline'
script: 'Get-PSDrive -PSProvider FileSystem | Format-Table Name, @{Name="UsedGB";Expression={[math]::Round($_.Used/1GB,2)}}, @{Name="FreeGB";Expression={[math]::Round($_.Free/1GB,2)}}'

- task: MSBuild@1
displayName: Build MSIX Test Installer File
inputs:
Expand Down
15 changes: 15 additions & 0 deletions src/Directory.Build.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- Consume containing solution build targets if present. -->
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.targets', '$(MSBuildThisFileDirectory)../'))" Condition="'' != $([MSBuild]::GetPathOfFileAbove('Directory.Build.targets', '$(MSBuildThisFileDirectory)../'))" />

<!-- Incremental link time code generation writes .iobj and .ipdb files that can be hundreds of megabytes
per binary. They only pay off across repeated local links, so they are pure disk cost on build agents.
This must be in Directory.Build.targets rather than Directory.Build.props, as WholeProgramOptimization
is not yet defined when Directory.Build.props is imported. -->
<ItemDefinitionGroup Condition="'$(WingetDisableIncrementalLinkTimeCodeGeneration)'=='true' and '$(WholeProgramOptimization)'=='true'">
<Link>
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
</Link>
</ItemDefinitionGroup>
</Project>
Loading