Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Rearrange output folders #7522

Merged
merged 25 commits into from
Sep 2, 2017
Merged

Conversation

dsplaisted
Copy link
Member

  • Rearrange artifact (output) folder
  • Better separation between building and testing (separate stages)
  • This makes it possible to run a full build twice in a row without failing

private string GetAdditionalParameters()
{
return AdditionalParameters;
}

This comment was marked as spam.

This comment was marked as spam.


<BaseIntermediateOutputPath>$([System.IO.Path]::GetFullPath('$(BaseOutputDirectory)/obj/$(MSBuildProjectName)'))</BaseIntermediateOutputPath>
<OutputDirectory>$(BaseOutputDirectory)/dotnet</OutputDirectory>
<Stage2WithBackwardsCompatibleRuntimesOutputDirectory>$(BaseOutputDirectory)/dotnetWithBackwardsCompatibleRuntimes</Stage2WithBackwardsCompatibleRuntimesOutputDirectory>

This comment was marked as spam.

This comment was marked as spam.

<IntermediateDirectory>$(BaseOutputDirectory)/intermediate</IntermediateDirectory>
<PackagesDirectory>$(BaseOutputDirectory)/packages</PackagesDirectory>
<SharedFrameworkPublishDirectory>$(IntermediateDirectory)/sharedFrameworkPublish</SharedFrameworkPublishDirectory>
<!-- The 'AspNetRuntimePackageStorePublishDirectory' needs to be very short due to path length constraints on Win8.1 -->
<!-- Will this still work now that the stage has been added to the path? -->

This comment was marked as spam.

This comment was marked as spam.

@wli3
Copy link

wli3 commented Aug 28, 2017

@dsplaisted dsplaisted force-pushed the fix-incremental-build branch 2 times, most recently from ed35b69 to 4e04a05 Compare August 29, 2017 02:04
For example, "out/2" instead of "artifacts/stage2"
@dsplaisted dsplaisted force-pushed the fix-incremental-build branch from 4e04a05 to dcb3a7a Compare August 29, 2017 13:56
<!-- BaseOutputDirectory is the root output path for this stage and RID
BaseOutputPath is the project-specific output folder that each project builds into.
This is not confusing at all. -->
<BaseOutputDirectory>$(RepoRoot)/out/$(CliBuildStage)/$(Rid)</BaseOutputDirectory>

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

Previously, dotnet-deb-tool-consumer.csproj was copied to the out/artifacts folder before being restored.  This no longer works as it depends on repo properties, and there is a Directory.Build.props in teh out directory to stop projects inside it from getting the repo properties.  So this change restores it in-place instead.
@dsplaisted dsplaisted force-pushed the fix-incremental-build branch from 3957fd5 to 728cea2 Compare September 2, 2017 00:18
@dsplaisted
Copy link
Member Author

@dotnet-bot test Debian8.2 x64 Debug Build

@dsplaisted
Copy link
Member Author

@dotnet-bot test CentOS7.1 x64 Debug Build


<WriteLinesToFile File="$(ExpectedVersionFileInIntermediateFolder)"
Lines="$(VersionFileContent)"
Condition=" '$(ShouldOverwriteVersionFile)' == 'true' "

This comment was marked as spam.

@dsplaisted dsplaisted merged commit c266e39 into dotnet:master Sep 2, 2017
nguerrera added a commit to nguerrera/cli that referenced this pull request Sep 27, 2017
Rearrange output folders
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants