Repository navigation
Merge Master -> exp/update-toolset - #2928
Merged
Merged
Conversation
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
RI vs15.6 to master
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
AndyGerlicher
approved these changes
Jan 30, 2018
dsplaisted
approved these changes
Jan 31, 2018
dsplaisted
left a comment
Member
There was a problem hiding this comment.
Looks good, just a bit of junk left over to clean up.
Member
There was a problem hiding this comment.
Delete the project.json file
Member
There was a problem hiding this comment.
Remove comments (and ItemGroup which will then be empty)
Member
There was a problem hiding this comment.
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
force-pushed
the
toolsetMasterMerge
branch
from
January 31, 2018 01:03
9e14a96 to
ad37469
Compare
…)" This reverts commit 91c86a7.
cdmihai
commented
Jan 31, 2018
| <_MSBuildProjectReferenceExistent | ||
| Condition="'%(_MSBuildProjectReferenceExistent.SkipGetTargetFrameworkProperties)' == '' and | ||
| ('%(Extension)' == '.vcxproj' or '%(ReferenceOutputAssembly)' == 'false')"> | ||
| <_MSBuildProjectReferenceExistent Condition="'%(_MSBuildProjectReferenceExistent.SkipGetTargetFrameworkProperties)' == '' and '%(Extension)' == '.vcxproj'"> |
Contributor
Author
|
@dotnet-bot test Windows_NT Build for CoreCLR please |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.