dotnet-apiport
dotnet-apiport copied to clipboard
Potential feature: APIPort helper when nuget resolves an assembly from a different TFM
/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.
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.
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)?
Closing as API Port was deprecated in favor of binary analysis in .NET Upgrade Assistant.