question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Official Windows builds are delayed by ~15 minutes due to unset SdkLayoutOutputDirectory property

See original GitHub issue

In the official Windows x64 builds, running the ExtractEngineFromSdkBundle and ReattachEngineToSdkBundle steps is significantly delayed because the SdkLayoutOutputDirectory property is unset when computing the GenerateSdkMsiInputs, causing the code at https://github.com/dotnet/cli/blob/c740fa8f439db39a3460d0afdeab47b8b98879c3/build/package/Microsoft.DotNet.Cli.Installer.MSI.targets#L31 to include every single file on the build agent in an item group. With verbose logging enabled on the x64 builds, this takes a long time to log. Additionally, these log files are so large (about 100-200 MB) that they cannot be displayed on VSTS.

There are a couple potential fixes:

  • Make the MsiTargetsSetupInputOutputs target depend on SetupLayoutInputsOutputs, which is where the SdkLayoutOutputDirectory property is set.
  • Remove the incremental build functionality of the GenerateSdkMsi target. The GenerateSdkMsiInputs item type is only used as the Inputs to GenerateSdkMsi, so it could be removed if it’s not necessary for GenerateSdkMsi to be built incrementally.

This primarily only affects the x64 builds, because the x86 build definitions specify /v:normal, whereas the x64 build definitions don’t specify the verbosity and thus use diagnostic verbosity as specified in run-build.ps1. So, a related consideration is what MSBuild verbosity the official builds should be using.

/cc @piotrpMSFT

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
TheRealPiotrPcommented, Feb 15, 2017

@naamunds we’ll fix this in the master branch. Targets hoisting has caused some unexpected issues in the past. We’re making all of these paths static in the master branch so the issue should get resolved as a side effect of that work.

1reaction
TheRealPiotrPcommented, Feb 6, 2017

This got fixed as part of a recent PR.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Manage device restarts after updates - Windows Deployment
Schedule update installation; Delay automatic reboot ... and specify the delay in minutes through AlwaysAutoRebootAtScheduledTimeMinutes.
Read more >
Troubleshoot Windows Search performance
If you observe general poor performance when you search or when Windows builds a search index, go to Tune the Indexer performance.
Read more >
Delayed wifi connection on startup
Recently it has started taking 1 min after startup before it will connect automatically. It can connect instantly manually by either unchecking ...
Read more >
Print delay
In Windows 10 I print a file. Everything OK I then try to print another file but there is a long delay of...
Read more >
Why am I getting this "Let's finish setting up your device ...
It's having to wait 15 minutes to use my office laptop when I open up in the morning when Microsoft has decided to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found