Skip to content

Merge Master -> exp/update-toolset - #2928

Merged
cdmihai merged 37 commits into
dotnet:exp/update-toolsetfrom
cdmihai:toolsetMasterMerge
Jan 31, 2018
Merged

cdmihai merged 37 commits into
dotnet:exp/update-toolsetfrom
cdmihai:toolsetMasterMerge

Conversation

@cdmihai

@cdmihai cdmihai commented Jan 30, 2018 •

Copy link
Copy Markdown
Contributor
  • converted the nuget resolver tests to the new build logic
  • force xlf sync to make tests pass. Before, the original English resx file was directly used, whereas now the original resx is converted to xlf, which is converted into the temporary resx that gets used. This means we can't batch sync any longer

alanmcgovern and others added 30 commits January 17, 2018 10:57
This ensures we won't hit the filesystem a few million times
during project evaluation.

Fixes mono/mono#6530.
The @(CopyUpToDateMarker) file is not added to @(FileWrites), so it gets
left behind after a Clean.

https://bugzilla.xamarin.com/show_bug.cgi?id=58174
- This is a Xamarin.Android bug, but the same issue is reproducible with
  regular .net projects too
It is confusing to explicitly specify that you _don't_ want the output
of another project referenced in this project and then be told that the
output is incompatible.

This commit listens to the preexisting ProjectReference metadatum
ReferenceOutputAssembly and avoids the compatibility/best-match checks
on ProjectReferences that avoid the dependency.

Fixes dotnet#2661 (and dotnet/sdk#939).
* 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 dotnet#2481, in partial support of

https://github.com/dotnet/designs/blob/2be39b7e1bc9c4df45b1d51ebb2d1abb0689e4e0/accepted/automatic-redirects-by-default/automatic-redirects-by-default.md
Fixes dotnet#2886 by stripping either case of `v` from
`$(TargetFrameworkVersion)` in a single call.
Unit tests for GlobalJsonReader, NuGetSdkLogger, and NuGetSdkResolver
When spawning Windows cmd.exe shell commands, add the /D parameter to avoid the overhead of checking the autorun configuration in the registry

Also included escape hatch via MSBUILDUSERAUTORUNINCMD environment variable to bring back the functionality.
…cts-4.7.2

Generate binding redirects for .NET 4.7.2+
Catch that and return null otherwise it crashes MSBuild.
See dotnet#2882.
…it-state-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 dotnet#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.
* Fix preprocessor when imported documents specify Sdk

Implicit imports for imported projects are shown in the preprocessor at the top and bottom of the top level project rather than the imported project.

To fix this, I've created a mapping of which documents contain the implicit imports.  Before processing a document, the imports are then added to that document rather than the top level one.

* Add unit test
Building for full framework requires a VS command prompt, but we weren't
clear about which.
The core dev team hasn't been good about monitoring the Gitter chat
room. There's no need to advertise it.
 Conflicts:
	src/.nuget/project.json
	src/Build.UnitTests/BackEnd/SdkResolverLoader_Tests.cs
	src/MSBuild.sln
	src/NuGetSdkResolver/Properties/AssemblyInfo.cs
	src/NuGetSdkResolver/project.json
	src/Tasks.UnitTests/project.json
	src/dirs.proj
	targets/DeployDependencies.proj

@dsplaisted dsplaisted left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good, just a bit of junk left over to clean up.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Delete the project.json file

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Remove comments

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Remove comments (and ItemGroup which will then be empty)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'd delete this line (allowing EnableDefaultCompileItems to be true), and then remove the Compile items below that are already in the project folder. The rest of the projects don't consistently do this, but if we're adding a new project I think we may as well let it use the default globs.

@cdmihai
cdmihai force-pushed the toolsetMasterMerge branch from 9e14a96 to ad37469 Compare January 31, 2018 01:03
<_MSBuildProjectReferenceExistent
Condition="'%(_MSBuildProjectReferenceExistent.SkipGetTargetFrameworkProperties)' == '' and
('%(Extension)' == '.vcxproj' or '%(ReferenceOutputAssembly)' == 'false')">
<_MSBuildProjectReferenceExistent Condition="'%(_MSBuildProjectReferenceExistent.SkipGetTargetFrameworkProperties)' == '' and '%(Extension)' == '.vcxproj'">

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@cdmihai

cdmihai commented Jan 31, 2018

Copy link
Copy Markdown
Contributor Author

@dotnet-bot test Windows_NT Build for CoreCLR please

@cdmihai
cdmihai merged commit d8c74aa into dotnet:exp/update-toolset Jan 31, 2018
@cdmihai
cdmihai deleted the toolsetMasterMerge branch December 30, 2020 22:52
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.

10 participants