I get the following error when publishing my web app to a local folder.
The reference assemblies for .NETFramework,Version=v4.8 were not found
I checked the registry and I do have 4.8 installed. Visual Studio Enterprise specifically recommended to me, upon opening the solution that, that I should update the target framework to 4.8 and I agreed.
VS then set the compilation targetFramework attribute to 4.8 (from 4.0)