Hi,@Naman Jain . Welcome Microsoft Q&A.
You could use a .Net Framework 4.6.1 assembly (lower version) in a .Net Framework 4.7.2 project (higher version), but not the other way around.
If you reference a higher version assembly in a lower version project, there will be the following warning after building.
Warning: The primary reference " " could not be resolved because it was built against the ".NETFramework,Version=v4.7.2" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.6.1"
I think the build stops working when actually using something from .NETFramework 4.7.2 .
Generally, the libraries target a version that is lower than or equal to the version your project (It is best to target the same Target framework).
Note, of course, that any behavior changes could cause subtle bugs, but this is rare - fundamentally it should work ok.
You can refer to the link below.
https://stackoverflow.com/questions/2761640/making-a-call-to-a-net-4-library-from-3-5
https://stackoverflow.com/questions/18530915/can-my-project-reference-an-assembly-targeting-a-lower-version-of-net-framework
----------------------------------------------------------------------------
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.