You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!-- MSBuild is finding the dll within the package and copying it which is a problem for AnyCPU -->
5
-
<TargetName="CefSharpDeleteCoreRuntimeAfterCopyFilesToOutputDirectory"AfterTargets="CopyFilesToOutputDirectory"Condition="'$(PlatformTarget)' == 'AnyCPU' AND ($(TargetFramework.StartsWith('net4')) OR $(TargetFrameworkVersion.StartsWith('v4.')))">
For AnyCPU we use a Transform to add entries to app.config if possible
286
290
Otherwise throw error to alert user they need to perform additional action
287
291
-->
288
-
<UsingTaskTaskName="TransformXml"AssemblyFile="$(CefSharpTransformXmlDllPath)"Condition="Exists('$(CefSharpTransformXmlDllPath)') AND '$(PlatformTarget)' == 'AnyCPU' AND '$(CefSharpAnyCpuSupport)' == ''" />
292
+
<UsingTaskTaskName="TransformXml"AssemblyFile="$(CefSharpTransformXmlDllPath)"Condition="Exists('$(CefSharpTransformXmlDllPath)') AND '$(CefSharpPlatformTarget)' == 'AnyCPU' AND '$(CefSharpAnyCpuSupport)' == ''" />
289
293
290
-
<TargetName="CefSharpCommonAnyCPUConfigTransform"AfterTargets="_CopyAppConfigFile"Condition="Exists('$(CefSharpTransformXmlDllPath)') AND '$(PlatformTarget)' == 'AnyCPU' AND '$(CefSharpAnyCpuSupport)' == ''">
294
+
<TargetName="CefSharpCommonAnyCPUConfigTransform"AfterTargets="_CopyAppConfigFile"Condition="Exists('$(CefSharpTransformXmlDllPath)') AND '$(CefSharpPlatformTarget)' == 'AnyCPU' AND '$(CefSharpAnyCpuSupport)' == ''">
<TargetName="CefSharpPlatformCheck"BeforeTargets="ResolveAssemblyReferences"Condition="!Exists('$(CefSharpTransformXmlDllPath)') AND '$(PlatformTarget)' == 'AnyCPU' AND '$(CefSharpAnyCpuSupport)' != 'true'">
296
-
<ErrorText="$(MSBuildThisFileName) is unable to proceeed as your current PlatformTarget is '$(PlatformTarget)'. To target AnyCPU please read https://github.com/cefsharp/CefSharp/issues/1714. Alternatively change your PlatformTarget to x86 or x64 and the relevant files will be copied automatically."HelpKeyword="CefSharpSolutionPlatformCheck" />
299
+
<TargetName="CefSharpPlatformCheck"BeforeTargets="ResolveAssemblyReferences"Condition="!Exists('$(CefSharpTransformXmlDllPath)') AND '$(CefSharpPlatformTarget)' == 'AnyCPU' AND '$(CefSharpAnyCpuSupport)' != 'true'">
300
+
<ErrorText="$(MSBuildThisFileName) is unable to proceeed as your current PlatformTarget is '$(CefSharpPlatformTarget)'. To target AnyCPU please read https://github.com/cefsharp/CefSharp/issues/1714. Alternatively change your PlatformTarget to x86 or x64 and the relevant files will be copied automatically."HelpKeyword="CefSharpSolutionPlatformCheck" />
297
301
</Target>
298
302
299
303
<!--
@@ -302,15 +306,15 @@
302
306
So in that scenario we display a mssage to the user. Close/reopen the project and the None/Content entries will work as above.
303
307
I have attempted to copy the files via a Copy Task, unfortunately the .props entries aren't accessible either so that's not feasible.
304
308
-->
305
-
<TargetName="CefSharpCopyFilesAfterNugetRestore32"AfterTargets="Build"Condition="'$(NuGetProjectStyle)' != 'PackageReference' AND !Exists('$(OutDir)$(CefSharpTargetDir)libcef.dll') AND '$(CefSharpBuildAction)' != 'NoAction' AND '$(PlatformTarget)' == 'x86'">
309
+
<TargetName="CefSharpCopyFilesAfterNugetRestore32"AfterTargets="Build"Condition="'$(NuGetProjectStyle)' != 'PackageReference' AND !Exists('$(OutDir)$(CefSharpTargetDir)libcef.dll') AND '$(CefSharpBuildAction)' != 'NoAction' AND '$(CefSharpPlatformTarget)' == 'x86'">
306
310
<MessageImportance="high"Text="CefSharp - Files were not copied by MSBuild after Nuget install/restore! Please close and re-open $(MSBuildProjectFile)." />
307
311
</Target>
308
312
309
-
<TargetName="CefSharpCopyFilesAfterNugetRestore64"AfterTargets="Build"Condition="'$(NuGetProjectStyle)' != 'PackageReference' AND !Exists('$(OutDir)$(CefSharpTargetDir)libcef.dll') AND '$(CefSharpBuildAction)' != 'NoAction' AND '$(PlatformTarget)' == 'x64'">
313
+
<TargetName="CefSharpCopyFilesAfterNugetRestore64"AfterTargets="Build"Condition="'$(NuGetProjectStyle)' != 'PackageReference' AND !Exists('$(OutDir)$(CefSharpTargetDir)libcef.dll') AND '$(CefSharpBuildAction)' != 'NoAction' AND '$(CefSharpPlatformTarget)' == 'x64'">
310
314
<MessageImportance="high"Text="CefSharp - Files were not copied by MSBuild after Nuget install/restore! Please close and re-open $(MSBuildProjectFile)." />
311
315
</Target>
312
316
313
-
<TargetName="CefSharpCopyFilesAfterNugetRestoreAnyCPU"AfterTargets="Build"Condition="'$(NuGetProjectStyle)' != 'PackageReference' AND !Exists('$(OutDir)$(CefSharpTargetDirAnyCpu32)libcef.dll') AND '$(CefSharpBuildAction)' != 'NoAction' AND '$(PlatformTarget)' == 'AnyCPU'">
317
+
<TargetName="CefSharpCopyFilesAfterNugetRestoreAnyCPU"AfterTargets="Build"Condition="'$(NuGetProjectStyle)' != 'PackageReference' AND !Exists('$(OutDir)$(CefSharpTargetDirAnyCpu32)libcef.dll') AND '$(CefSharpBuildAction)' != 'NoAction' AND '$(CefSharpPlatformTarget)' == 'AnyCPU'">
314
318
<MessageImportance="high"Text="CefSharp - Files were not copied by MSBuild after Nuget install/restore! Please close and re-open $(MSBuildProjectFile)." />
0 commit comments