Skip to content

Separate copying of refs from preservation of compilation info#2800

Merged
nguerrera merged 2 commits into
dotnet:masterfrom
nguerrera:PreserveCompilationReferences
Jan 9, 2019
Merged

Separate copying of refs from preservation of compilation info#2800
nguerrera merged 2 commits into
dotnet:masterfrom
nguerrera:PreserveCompilationReferences

Conversation

@nguerrera
Copy link
Copy Markdown
Contributor

PreserveCompilationContext does two things today:

  1. Write compilation info to .deps
  2. Copy reference-only assemblies to build/publish refs/ folder

Add PreserveCompilationReferences to control (2) independently and default it to PreserveCompilationContext for backwards compatibility.

Fix #2122

cc @pranavkm @rynowak @eerhardt

PreserveCompilationContext does two things today:

1. Write compilation info to .deps
2. Copy reference-only assemblies to build/publish refs/ folder

Add PreserveCompilationReferences to control (2) independently and default it to PreserveCompilationContext for backwards compatibility.
@nguerrera nguerrera requested a review from dsplaisted January 8, 2019 20:53
@nguerrera nguerrera added this to the 3.0.1xx milestone Jan 8, 2019
Copy link
Copy Markdown
Member

@rynowak rynowak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super Approved 👍

Copy link
Copy Markdown
Member

@dsplaisted dsplaisted left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are some Linux test failures, but otherwise this looks good. Perhaps the issue is the tests are targeting .NET Framework and aren't using the targeting pack packages?

@nguerrera
Copy link
Copy Markdown
Contributor Author

Yeah, I thought there was no reason for the test I changed to be Windows only, but apparently there is. :)

Looking into it. It seems to find the targeting pack, but then the ref to netstandard.dll does not kick in, so something wrong with extensions?

@nguerrera nguerrera merged commit 04e294a into dotnet:master Jan 9, 2019
@nguerrera nguerrera deleted the PreserveCompilationReferences branch January 9, 2019 04:01
wli3 pushed a commit that referenced this pull request Feb 7, 2020
…build 20190910.11 (#2800)

- Microsoft.NET.Sdk.Razor - 3.1.0-alpha1.19460.11
wli3 pushed a commit that referenced this pull request Feb 7, 2020
…elease/3.1.1xx-to-master

* upstream/release/3.1.1xx: (603 commits)
  [release/3.0.1xx] Update dependencies from microsoft/vstest (#2809)
  Update dependencies from https://github.com/dotnet/cli build 20190911.11 (#2823)
  Update dependencies from https://github.com/dotnet/cli build 20190911.7 (#2819)
  Update dependencies from https://github.com/dotnet/cli build 20190911.6 (#2818)
  Update dependencies from https://github.com/aspnet/websdk build 20190911.2 (#2816)
  Update dependencies from https://github.com/dotnet/arcade build 20190910.3 (#2815)
  Update dependencies from https://github.com/dotnet/cli build 20190911.1 (#2807)
  Update dependencies from https://github.com/dotnet/fsharp build 20190910.5 (#2804)
  Update dependencies from https://github.com/dotnet/cli build 20190910.6 (#2803)
  Update dependencies from https://github.com/aspnet/AspNetCore-Tooling build 20190910.13 (#2802)
  Update dependencies from https://github.com/aspnet/AspNetCore-Tooling build 20190910.12 (#2801)
  Update dependencies from https://github.com/aspnet/AspNetCore-Tooling build 20190910.11 (#2800)
  Update dependencies from https://github.com/dotnet/cli build 20190910.5 (#2799)
  Update dependencies from https://github.com/aspnet/websdk build 20190910.5 (#2798)
  Update dependencies from https://github.com/aspnet/AspNetCore-Tooling build 20190910.5 (#2797)
  Update dependencies from https://github.com/dotnet/arcade build 20190910.3 (#2796)
  Update dependencies from https://github.com/dotnet/cli build 20190910.4 (#2794)
  Update dependencies from https://github.com/aspnet/websdk build 20190910.4 (#2795)
  Update dependencies from https://github.com/aspnet/AspNetCore-Tooling build 20190910.3 (#2793)
  [release/3.0.1xx] Update dependencies from aspnet/AspNetCore-Tooling (#2759)
  ...

Conflicts:
eng/Version.Details.xml
eng/Versions.props
eng/common/native/install-cmake-test.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants