Fix dotnet so it's idempotent