Skip to content

Commit

Permalink
Orchard.Web: CopyRoslynFilesToOutputFolder task is now more tolerant …
Browse files Browse the repository at this point in the history
…to file locking
  • Loading branch information
LombiqTechnologies authored and BenedekFarkas committed Jan 24, 2018
1 parent 7b971f4 commit aa96953
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Orchard.Web/Orchard.Web.csproj
Expand Up @@ -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>

0 comments on commit aa96953

Please sign in to comment.