Skip to content

RI 15.6 - #2897

Merged
AndyGerlicher merged 15 commits into
masterfrom
vs15.6
Jan 24, 2018
Merged

RI 15.6#2897
AndyGerlicher merged 15 commits into
masterfrom
vs15.6

Conversation

@rainersigwald

Copy link
Copy Markdown
Member

Let's let this accumulate changes for at least the build we're hoping for today.

jeffkl and others added 15 commits January 23, 2018 10:55
* Throw an exception if an SDK resolver assembly cannot be loaded or SDK resolver type cannot be instantiated
* Use MockLogger instead of MockLoggingService with a StringBuilder
* Make SdkResolverLoader more mock-able
* More unit tests
Allow an API consumer to explicitly specify a subset of properties,
items, and metadata names that they care about, allowing inspection of
project state after (partial) builds without the overhead of returning
uninteresting state.
In The Old Days, binding redirect generation was set to off-by-default.
That has caused a great deal of confusion because it's usually the right
thing to do but it's not obvious when you need to do it.

Unfortunately, we currently think we can't change the default for all
projects, because a user could have been avoiding binding redirects
intentionally, making creating them a breaking change.

Since no projects currently target .NET Framework 4.7.2 (since it's not
released), it is not a breaking change to turn on binding redirects by
default for this (and higher) versions--a user must explicitly opt into
targeting the framework and thus into this new behavior.

A user can still specify

```xml
<AutoGenerateBindingRedirects>false</AutoGenerateBindingRedirects>
```

to explicitly opt out of binding redirects for a given project.

Closes #2481, in partial support of

https://github.com/dotnet/designs/blob/2be39b7e1bc9c4df45b1d51ebb2d1abb0689e4e0/accepted/automatic-redirects-by-default/automatic-redirects-by-default.md
Fixes #2886 by stripping either case of `v` from
`$(TargetFrameworkVersion)` in a single call.
Unit tests for GlobalJsonReader, NuGetSdkLogger, and NuGetSdkResolver
Catch that and return null otherwise it crashes MSBuild.
See #2882.
…te-return

Request explicit properties and items in an API build
All the code was here but the attribute was not allowed on the Import
element at project parse time for Version or MinimumVersion. This change
allows those attributes and rest of the code worked as expected. Added
tests for the scenario and a few others.
CPS expects Project.LastEvaluationId to reflect the id of the ongoing, not yet finished evaluation.
This invariant regressed in #2748

LoggingService now creates an evaluation build event context separate from sending project started events. This allows the Evaluator to set the evaluation Id on Project before the first evaluation event gets fired.
This doesn't appear to be used and is not copied by the build. No idea
how this worked before, sync to the last successful build also does not
produce this file. This is failing our official build.

MSBuild only references System.Diagnostics.Process for netstandard, not
for net46 so appears to have been added by mistake.
@AndyGerlicher
AndyGerlicher merged commit c81a293 into master Jan 24, 2018
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