dotnet-apiport icon indicating copy to clipboard operation
dotnet-apiport copied to clipboard

Potential feature: APIPort helper when nuget resolves an assembly from a different TFM

Open ericstj opened this issue 6 years ago • 2 comments

/cc @terrajobst

See https://github.com/NuGet/Home/wiki/Enable-.NET-Core-2.0-projects-to-work-with-.NET-Framework-4.6.1-compatible-packages

When NuGet uses AssetTargetFallback to resolve an assembly from a different framework on the current one, wouldn't it be nice to have a helper that could launch API port to let a dev know how successful that might be?

Similarly it'd be nice to be able to do the same in relation to some types of exceptions like typenotfound / missingmethod / typeload. Not sure how successful these could be, but I think the ATF/PTF use case I mention above is pretty straight forward.

ericstj avatar May 10 '18 17:05 ericstj

Is there an event or something we could hook into for this? Are you envisioning this happening at restore time or install time?

Currently, if someone analyzes their project with references, it would accomplish this.

twsouthwick avatar May 17 '18 19:05 twsouthwick

Not sure about an event. There is a warning that shows up in the error list: NU1701. Can you hook when someone double clicks that? Alternatively can you add a right-click option to the reference node (which will have a Warning icon next to it)?

ericstj avatar May 17 '18 19:05 ericstj

Closing as API Port was deprecated in favor of binary analysis in .NET Upgrade Assistant.

terrajobst avatar Nov 15 '22 23:11 terrajobst