Skip to content

Using a ProjectReference which requires AssetTargetFallback to succeed, should warn. #7137

Description

@nguerrera

Microsoft Visual Studio Enterprise 2017 Int Preview (Dogfood)
Version 15.8.0 Preview 5.0 [27913.3.d15.8]
VisualStudio.15.IntPreview/15.8.0-pre.5.0+27913.3.d15.8
Microsoft .NET Framework
Version 4.7.03056

Repro steps

  • Add project reference from .NET Core project to .NET Framework 4.6.1 project
  • Restore / Build

Expected

Very similar warning to this for the PackageReference case

Warning NU1701 Package 'XAct.Wintellect.PowerCollections 0.0.1' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.1'. This package may not be fully compatible with your project. ConsoleApp30 C:\Users\nicholg\source\repos\ConsoleApp30\ConsoleApp30\ConsoleApp30.csproj 1

Actual

No warning

This defeats the rationale for why it was deemed OK to make the net461 asset target fallback a default.

cc @rrelyea @mishra14 @rainersigwald @dsplaisted @terrajobst

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions