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
For PackageReference library projects where buildTransitive is supported we'll default to setting CefSharpAnyCpuSupport to true
143
-
This should only require WinExe and Exe projects to specify CefSharpAnyCpuSupport rather than every project in a solution.
144
-
Only for PackageReference projects where NuGetToolVersion > 5.0 and OutputType is library.
145
-
Defaulting CefSharpAnyCpuSupport to true is simpler than modifying the already complex Condition for the CefSharpPlatformCheck
146
-
target below.
147
-
https://github.com/cefsharp/CefSharp/issues/3622
148
-
-->
149
-
<CefSharpAnyCpuSupportCondition="'$(CefSharpAnyCpuSupport)' != 'true' AND '$(NuGetProjectStyle)' == 'PackageReference' AND $(NuGetToolVersion) > '5.0' AND '$(OutputType)' == 'Library'">true</CefSharpAnyCpuSupport>
150
141
</PropertyGroup>
151
142
152
143
<Choose>
@@ -358,20 +349,17 @@
358
349
</Choose>
359
350
360
351
<!--
352
+
This Transform is no longer used by default, the project was changed to use a ModuleInitializer to resolve the references
353
+
at runtime. The transform remains here for anyone wishing to manually call
361
354
For AnyCPU we use a Transform to add entries to app.config if possible
362
-
Otherwise throw error to alert user they need to perform additional action
363
355
-->
364
356
<UsingTaskTaskName="TransformXml"AssemblyFile="$(CefSharpTransformXmlDllPath)"Condition="Exists('$(CefSharpTransformXmlDllPath)') AND '$(CefSharpPlatformTarget)' == 'AnyCPU' AND '$(CefSharpAnyCpuSupport)' == '' AND '$(CefSharpBuildAction)' != 'NoAction'" />
365
357
366
-
<TargetName="CefSharpCommonAnyCPUConfigTransform"AfterTargets="_CopyAppConfigFile"Condition="'@(AppConfigWithTargetPath)' != '' AND Exists('$(CefSharpTransformXmlDllPath)') AND '$(CefSharpPlatformTarget)' == 'AnyCPU' AND '$(CefSharpAnyCpuSupport)' == '' AND '$(CefSharpBuildAction)' != 'NoAction'">
<TargetName="CefSharpPlatformCheck"BeforeTargets="ResolveAssemblyReferences"Condition="('@(AppConfigWithTargetPath)' == '' OR !Exists('$(CefSharpTransformXmlDllPath)')) AND '$(CefSharpPlatformTarget)' == 'AnyCPU' AND '$(CefSharpAnyCpuSupport)' != 'true' AND '$(CefSharpBuildAction)' != 'NoAction'">
372
-
<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" />
0 commit comments