Repository navigation
Conversation
BinplaceConfigurations can specify `ItemName` metadata in order to binplace something other than the default project output.
We should always add the add the pre-trimmed output files to the filelist otherwise msbuild deletes them when illink doesn't run.
This project had a hack to run TargetsTriggeredByCompilation unconditionally. That was OK when all those did was run APICompat, but now that we're rewriting the assemblies this is broken: we'll rerun trimming on rebuild and try to resign the assembly as well.
To use set the AsmDiffCmd property to point to the AsmDiff.exe tool.
The linker has a bug when consuming an XML file that it won't look any files passed with -r. Instead it applies the XML only to files in dirs specified with -d. Since our reference path will have a reference assembly that matches the assembly we're processing this caused the XML file to be ignored. To workaround this we'll pass in the directory of the input assembly and then refer to it by name.
|
@dotnet-bot test outerloop please |
|
Is there a description of this somewhere? |
| </PropertyGroup> | ||
|
|
||
| <Exec Condition="'$(AsmDiffCmd)' != ''" Command="$(AsmDiffCmd) $(AsmDiffReportArgs)" /> | ||
| <Message Condition="'$(AsmDiffCmd)' != ''" Text="$(AsmDiffReport)" /> |
There was a problem hiding this comment.
Nice having a message point to the report, but maybe something like "Written trimming report to $(AsmDiffReport)"
| Condition="'@(BinPlaceDir)' != ''" | ||
| DependsOnTargets="GetBinPlaceItems" > | ||
| DependsOnTargets="GetBinPlaceItems" | ||
| Inputs="@(BinPlaceDir);%(BinPlaceDir.ItemName)" |
There was a problem hiding this comment.
As far as I remember Inputs do nothing without actual Outputs. If you just want to batch, the convention is to put it on the Condition which would also eliminate your existing condition
Condition="'%(BinPlaceDir.ItemName)' != ''"
There was a problem hiding this comment.
Also if you want to force it to run, of course removing inputs and outputs achieves that
There was a problem hiding this comment.
its doing what I want. Your condition suggestion would actually change behavior. I'll look into moving the batching trigger to the condition.
There was a problem hiding this comment.
Actually this is incorrect. If you use metadata in a condition on a target you get the following error:
References to item metadata are not allowed in target conditions unless they are part of an item transform.
The correct way to trigger target batching is to use inputs as i have done.
There was a problem hiding this comment.
That's hilarious, I can't remember anything anymore. I probably created that error message. haha
|
Thanks for reviews guys but this is just for testing at the moment. |
| @@ -0,0 +1,22 @@ | |||
| <linker> | |||
| <assembly fullname="System.Composition.Hosting"> | |||
| <type fullname="System.Composition.Hosting.Providers.ExportFactory.ExportFactoryExportDescriptorProvider"> | |||
There was a problem hiding this comment.
It would be useful to add comment about who needs this for all items in these .xml files. (Some of the items have it already, but not all.)
There was a problem hiding this comment.
Folks this isn't ready for review. I'm just submitting for test coverage at the moment.
There was a problem hiding this comment.
Also, I do plan to add comments for every case the linker misses along with a reason why it can't have a heuristic.
a9a1a52 to
7b15b49
Compare
|
@dotnet-bot test Innerloop OSX10.12 Release x64 Build and Test |
|
@erozenfeld we now have all inner loop passing 🎉 |
|
Welcome to the dotnet/corefx Repository The following is a list of valid commands on this PR. To invoke a command, comment the indicated phrase on the PR The following commands are valid for all PRs and repositories. Click to expand
The following jobs are launched by default for each PR against dotnet/corefx:master. Click to expand
The following optional jobs are available in PRs against dotnet/corefx:master. Click to expand
Have a nice day! |
This property is used by tests.
And remove workarounds for issues fixed.
This change enables using SetProperties metadata on BinPlaceConfigurations with name=value tuples seperated by ;.
This makes ILLinkTrim only enabled for builds that are going in the shared framework. This also disables ILLinkTrim for any assembly which references windows.winmd due to an issue with ILLink not handling projected types.
System.Composition: this is now excluded from trimming since it isn't part of NETCore.App Remainder have comments indicating why they are needed.
|
@dotnet-bot help |
|
Welcome to the dotnet/corefx Repository The following is a list of valid commands on this PR. To invoke a command, comment the indicated phrase on the PR The following commands are valid for all PRs and repositories. Click to expand
The following jobs are launched by default for each PR against dotnet/corefx:master. Click to expand
The following optional jobs are available in PRs against dotnet/corefx:master. Click to expand
Have a nice day! |
|
@dotnet-bot test outerloop netcoreapp OSX10.12 Debug |
|
@dotnet-bot test outerloop netcoreapp OSX10.12 Release |
|
@dotnet-bot test outerloop netcoreapp Windows 10 Debug |
|
@dotnet-bot test outerloop netcoreapp Windows 10 Release |
|
@dotnet-bot test outerloop netcoreapp PortableLinux Debug |
|
@dotnet-bot test outerloop netcoreapp PortableLinux Release |
All of the networking tests seem to have some dependencies on the NetEventSource that are inconsistent by platform. I suspect that only some platforms are rooting the members the test expects and the tests are resilient to not getting events but not resilient to missing metadata. For now I'm rooting all of these where I've seen failures. The tests should be cleaned up / conditioned appropriately. For System.Net.Http the library logs using anonymous types then the tests reflect on the public properties over those types. The getters on these properties were trimmed so I've rooted all anonymous types in the assembly.
|
@dotnet-bot test outerloop netcoreapp OSX10.12 Debug |
|
@dotnet-bot test Innerloop Windows_NT Debug x86 Build and Test |
|
@dotnet-bot test OuterLoop netcoreapp Windows 10 Release x64 |
1 similar comment
|
@dotnet-bot test OuterLoop netcoreapp Windows 10 Release x64 |
|
Looks like we've got clean runs of outer loop 🎉 |
|
Closing this to replace with #17825 which has cleaned up commits. |
/cc @erozenfeld @sbomer