I have next config in my Web.config file

<Target Name="UpdateWebConfigForProjectsBeforeRun">
    <ItemGroup>
      <FilesToTransofm Include="ProjectsDeployBin\Web.*.$(Configuration).config"/>      
    </ItemGroup>    
    <Message Text="Transform file: %(FilesToTransofm.Identity)" />
    <TransformXml Source="web.config"
                  Transform="%(FilesToTransofm.Identity)"
                  Destination="web.config" />
  </Target>

What i am trying to do its get all configs from ProjectsDeployBin directory and apply each file to main web.config.

After first transformation main web.config locked by msbuild.

So how can i fix this issue? Is there any other way to transform my web.config by collection of files? Thanks.

Edit
Report