Orchard.Web: CopyRoslynFilesToOutputFolder task is now more tolerant to file locking

This commit is contained in:
Lombiq
2018-01-24 20:28:05 +01:00
committed by Benedek Farkas
parent 7b971f4ce4
commit aa969534a8

View File

@@ -290,11 +290,15 @@
</PropertyGroup>
<CallTarget Targets="ExcludeRootBinariesDeployment" />
</Target>
<Target Name="CopyRoslynFilesToOutputFolder" BeforeTargets="PrepareForBuild">
<Target Name="CopyRoslynFilesToOutputFolder" AfterTargets="AfterBuild">
<!-- Copying Roslyn tools and their dependencies to the "bin" folder for Dynamic Compilation. -->
<PropertyGroup>
<RoslynFilesDestination>$(ProjectDir)bin\roslyn\</RoslynFilesDestination>
</PropertyGroup>
<ItemGroup>
<RoslynFiles Include="..\packages\Microsoft.Net.Compilers.*\tools\*" />
</ItemGroup>
<Copy SourceFiles="@(RoslynFiles)" DestinationFolder="$(ProjectDir)..\Orchard.Web\bin\roslyn" />
<Message Text="$(RoslynFilesDestination)" />
<Copy SourceFiles="@(RoslynFiles)" DestinationFolder="$(RoslynFilesDestination)" Condition="!Exists('$(RoslynFilesDestination)csc.exe')" />
</Target>
</Project>