Skip to main content
2 of 2
added 8 characters in body
Mike
  • 12.2k
  • 8
  • 42
  • 64

Add the following line after webApp.WebConfigModifications.Add(modification);

webApp.WebConfigModifications.Clear();

it clears all the non-required modifications from the object.