ASP .NET MVC .UseStaticFiles will not follow symbolic links.
I'm pretty sure this is intentional behavior and an extremely misguided security decision. It might make sense if MBC was used for a wen server hosting a bunch of stuff. It does not make sense for web applications as actually used. If an attacker can place a symbolic link in the wweroot directory he can replace the application binaries.
It appeared to be implemented in PhysicalFileProvider, where it gets the full path and checks if it is under wwwroot. Nope. It's calling System.IO.FileInfo.Length which always returns zero for symbolic links.
How do tell it to shut up? Following a symlink out of wwwroot is not equivalent to somebody having exploited a traversal bug.