Skip to content

dotnet migrate should not add Framework references that the SDK will include by default #7139

@dsplaisted

Description

@dsplaisted

#379 will make the .NET SDK implicitly include references to assemblies such as System, System.Core, etc when the project is targeting .NET Framework. So these references do not need to be in the project file and the migration tool should not add them.

Currently, these are the references that are implicitly included, though it's possible that they will change due to feedback before the PR is merged:

    <Reference Include="System"/>
    <Reference Include="System.Core"/>
    <Reference Include="System.Data"/>
    <Reference Include="System.Drawing"/>
    <Reference Include="System.IO.Compression.FileSystem" Condition=" '$(_TargetFrameworkVersionWithoutV)' >= '4.5' "/>
    <Reference Include="System.IO.Compression" Condition=" '$(_TargetFrameworkVersionWithoutV)' >= '4.5' "/>
    <Reference Include="System.Net.Http" Condition=" '$(_TargetFrameworkVersionWithoutV)' >= '4.5' "/>
    <Reference Include="System.Numerics" Condition=" '$(_TargetFrameworkVersionWithoutV)' >= '4.0' "/>
    <Reference Include="System.Runtime.Serialization"/>
    <Reference Include="System.Xml.Linq"/>
    <Reference Include="System.Xml"/>

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions