Skip to content

Commit dc0e11d

Browse files
committed
Nuget - Re-Add CefSharpDeleteCoreRuntimeAfterCopyFilesToOutputDirectory target
For Non SDK Style projects CefSharp.Core.Runtime.dll is copied by the _CopyFilesMarkedCopyLocal MSBuild target.
1 parent ad88221 commit dc0e11d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

NuGet/CefSharp.Common.targets

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" TreatAsLocalProperty="CefSharpTransformXmlDllPath">
3+
<!-- MSBuild is finding the dll within the package and copying it which is a problem for AnyCPU -->
4+
<Target Name="CefSharpDeleteCoreRuntimeAfterCopyFilesToOutputDirectory" AfterTargets="CopyFilesToOutputDirectory" Condition="'$(CefSharpPlatformTarget)' == 'AnyCPU' AND $(TargetFrameworkVersion.StartsWith('v4.'))">
5+
<Delete Files="$(OutDir)CefSharp.Core.Runtime.dll" />
6+
<Delete Files="$(OutDir)CefSharp.Core.Runtime.pdb" />
7+
<Delete Files="$(OutDir)CefSharp.Core.Runtime.xml" />
8+
</Target>
9+
310
<!--
411
Add to project file for debuggint purposes
512
<Target Name="CefSharpAfterBuildDebug" AfterTargets="AfterBuild">

0 commit comments

Comments
 (0)