Raise generation of refs to match min generation of all impl.

Previously generations were strictly calculated.  We had a set
of seed assemblies which defined generation boundaries based
on where they were supported. Eg: System.Runtime 4.0.0.0 was
supported inbox in Net45, 4.0.10.0 was supported inbox in
Net451, we could not OOB 4.0.0.0 to Net451 due to unification
so that defined a generation boundary.

All non-seed assemblies got the maximum generation
of all their transitive dependencies.

This worked fine, but created a confusing picture when
looking at the packages.  New contracts that were only
implemented in DNXCore50 and Net46 had a reference assembly
that claimed to be dotnet5.1 even though they weren't
supported by any framework that was exclusive to 5.1-5.3.
It also meant that targeting a generation required that
someone use guardrails to ensure that they'd actually have
an implementation on any framework targeting that generation.
Without guardrails they might produce an assembly that would
not run on any framework of the generation it claimed.

This change raises the generation of all the reference assemblies
to a minimum that supports any implementation.  This makes it
clear which generation of frameworks support the package,
it also lets someone target that generation without using guardrails
and guarantees that they'll at least run somewhere.

[tfs-changeset: 1543192]


Commit migrated from https://github.com/dotnet/corefx/commit/1c8144920c62e89f77567a16ebfa8c1324e52f07
This commit is contained in:
Eric St. John committed 2015-10-29 11:42:25 -07:00
1 parent 2b43f481f6
commit 88bb5f032c
114 files changed
+266 -266

No files matched your search

@@ -4,8 +4,8 @@
<PropertyGroup>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<OutputType>Library</OutputType>
<PackageTargetFramework>dotnet5.1</PackageTargetFramework>
<NuGetTargetMoniker>.NETPlatform,Version=v5.1</NuGetTargetMoniker>
<PackageTargetFramework>dotnet5.4</PackageTargetFramework>
<NuGetTargetMoniker>.NETPlatform,Version=v5.4</NuGetTargetMoniker>
</PropertyGroup>
<ItemGroup>
<Compile Include="System.IO.FileSystem.Watcher.cs" />