Copy Compat7 DLL over to UI only in VS

This commit is contained in:
Stephan
2016-11-30 13:31:03 +01:00
parent 6313a65824
commit f4d9e73da7

View File

@@ -111,7 +111,7 @@
<Target Name="BeforeBuild">
</Target>
-->
<Target Name="AfterBuild" Condition="$([System.Text.RegularExpressions.Regex]::IsMatch($(DefineConstants), '^(.*;)*COMPAT7(;.*)*$'))">
<Target Name="AfterBuild" Condition="'$(BuildingInsideVisualStudio)' == 'true' AND $([System.Text.RegularExpressions.Regex]::IsMatch($(DefineConstants), '^(.*;)*COMPAT7(;.*)*$'))">
<Copy SourceFiles="$(ProjectDir)bin\$(Configuration)\Umbraco.Compat7.dll" DestinationFolder="$(ProjectDir)..\Umbraco.Web.UI\bin" OverwriteReadOnlyFiles="true" SkipUnchangedFiles="false" />
</Target>
</Project>