When I publish a csproj I get the message:
Could not load file or assembly System.Net.Http
If I add it to the project and republish, I get the message:
[BadImageFormatException: Cannot load a reference assembly for execution.] [BadImageFormatException: Could not load file or assembly 'System.Net.Http'
So it's like catch-22
This is the system.web of my web.config
<system.web>
<customErrors mode="Off" />
<compilation debug="true" targetFramework="4.7.2" />
<httpRuntime targetFramework="4.6" />
</system.web>