I think I encountered the same problem not so long ago. The solution was to remove the subtype from web.config, i.e.
<Content Include="Web.config"> <SubType>Designer</SubType> </Content>
To:
<Content Include="Web.config"> </Content>
Now, they have been added again, I'm not sure why. The search for additional information has not yet become clear. See: <Subtype> Constructor </ Subtype> Added then removed by Visual Studio when loading / unloading
H.Wolper Feb 09 2018-11-11T00: 00Z
source share