Lets say I have a .NET Web API running on an IIS server. That application, “InternetResourceAPI” has a direct dependency to a NuGet Package called “ResourceFetcher“. “ResourceFetcher” targets the .NET 6.0 runtime, and “InternetResourceAPI” targets the .NET 8.0 runtime.
When I build the “InternetResourceAPI” and host it on my IIS server, will the code in “ResourceFetcher” expect to run on the NET 6.0 runtime, if it is installed and present in the hosting bundle?
What about with references of references?
“InternetResourceAPI” (NET 8.0 application) -> “ResourceFetcher2” (NET 8.0 NuGet Package) -> “SomeDependency” (NET 6.0 NuGet Package)
- Would the code in “SomeDependency” run on the NET 6.0 .dll (in my hosted environment) when it gets called?