Refine package validation for generations

When calculating generations I wasn't considering transient
dependencies.  I was assuming that if a dependency wasn't
tracked by generations it wouldn't impact the generation
of the depender.  That was incorrect since every assembly
effectively has a generation.  This updates the algorithm to
walk the entire dependency graph when calculating the generation

I also wasn't validating support for targeting generations: PCLs
consuming the packages.  I was only testing for specific
platforms.   I added validation for generation monikers and
derived the support matrix for these from the specific platforms.

This uncovered a handful of bugs which I have fixed.

[tfs-changeset: 1540300]


Commit migrated from https://github.com/dotnet/corefx/commit/8d609579a4ef3127372400faa664796c1435d634
This commit is contained in:
Eric St. John committed 2015-10-21 14:42:53 -07:00
1 parent 3289bf4ec4
commit 1cd121b072
10 files changed
+764 -6

No files matched your search

@@ -4,7 +4,7 @@
<PropertyGroup>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<OutputType>Library</OutputType>
<PackageTargetFramework>dotnet5.1</PackageTargetFramework>
<PackageTargetFramework>dotnet5.4</PackageTargetFramework>
</PropertyGroup>
<ItemGroup>
<Compile Include="System.IO.FileSystem.AccessControl.cs" />