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
- Add support for buildTransitive folder
- Show error when MSBuild didn't copy files (unable to use a Copy Task as props files aren't imported at that point)
- Remove FrameworkVersionCheck (we now have our dlls in a lib\net452) folder so nuget should complain without our custom check)
Issue #3319
<TargetName="FrameworkVersionCheck"BeforeTargets="ResolveAssemblyReferences"Condition="(('$(TargetFrameworkVersion)' == 'v4.5.1') OR ('$(TargetFrameworkVersion)' == 'v4.5') OR ('$(TargetFrameworkVersion)' == 'v4.0'))">
4
-
<ErrorText="CefSharp requires .Net 4.5.2 or higher" />
5
-
</Target>
6
3
7
4
<!-- MSBuild is finding the dll within the package and copying it which is a problem for AnyCPU -->
8
5
<TargetName="CefSharpDeleteCoreRuntimeAfterBuild"AfterTargets="AfterBuild"Condition="'$(PlatformTarget)' == 'AnyCPU' AND $(TargetFramework.StartsWith('net4'))">
<UsingTaskTaskName="TransformXml"AssemblyFile="$(CefSharpTransformXmlDllPath)"Condition="Exists('$(CefSharpTransformXmlDllPath)') AND '$(PlatformTarget)' == 'AnyCPU' AND '$(CefSharpAnyCpuSupport)' == ''" />
286
285
287
286
<TargetName="CefSharpCommonAnyCPUConfigTransform"AfterTargets="_CopyAppConfigFile"Condition="Exists('$(CefSharpTransformXmlDllPath)') AND '$(PlatformTarget)' == 'AnyCPU' AND '$(CefSharpAnyCpuSupport)' == ''">
<TargetName="CefSharpPlatformCheck"BeforeTargets="ResolveAssemblyReferences"Condition="!Exists('$(CefSharpTransformXmlDllPath)') AND '$(PlatformTarget)' == 'AnyCPU' AND '$(CefSharpAnyCpuSupport)' != 'true'">
The None/Content entries aren't picked up as the .targets file doesn't exist before the Nuget restore (only when using packages.config)
299
-
So in that scenario we use a Target to copy the files. Close/reopen the project and the None/Content entries will work as above
298
+
So in that scenario we display a mssage to the user. Close/reopen the project and the None/Content entries will work as above.
299
+
I have attempted to copy the files via a Copy Task, unfortunately the .props entries aren't accessible either so that's not feasible.
300
300
-->
301
-
<TargetName="CefSharpCopyFilesAfterNugetRestore32"AfterTargets="AfterBuild"Condition="'$(UsingMicrosoftNETSdk)' != 'true' AND !Exists('$(OutDir)$(CefSharpTargetDir)libcef.dll') AND '$(CefSharpBuildAction)' != 'NoAction' AND '$(PlatformTarget)' == 'x86'">
302
-
<MessageImportance="high"Text="CefSharp - Files were not copied by MSBuild after Nuget install/restore, copying (x86) $(OutDir)$(CefSharpTargetDir)" />
<TargetName="CefSharpCopyFilesAfterNugetRestore32"AfterTargets="Build"Condition="'$(UsingMicrosoftNETSdk)' != 'true' AND !Exists('$(OutDir)$(CefSharpTargetDir)libcef.dll') AND '$(CefSharpBuildAction)' != 'NoAction' AND '$(PlatformTarget)' == 'x86'">
302
+
<MessageImportance="high"Text="CefSharp - Files were not copied by MSBuild after Nuget install/restore! Please close and re-open $(MSBuildProjectFile)." />
305
303
</Target>
306
304
307
-
<TargetName="CefSharpCopyFilesAfterNugetRestore64"AfterTargets="AfterBuild"Condition="'$(UsingMicrosoftNETSdk)' != 'true' AND !Exists('$(OutDir)$(CefSharpTargetDir)libcef.dll') AND '$(CefSharpBuildAction)' != 'NoAction' AND '$(PlatformTarget)' == 'x64'">
308
-
<MessageImportance="high"Text="CefSharp - Files were not copied by MSBuild after Nuget install/restore, copying (x64) $(OutDir)$(CefSharpTargetDir)" />
<TargetName="CefSharpCopyFilesAfterNugetRestore64"AfterTargets="Build"Condition="'$(UsingMicrosoftNETSdk)' != 'true' AND !Exists('$(OutDir)$(CefSharpTargetDir)libcef.dll') AND '$(CefSharpBuildAction)' != 'NoAction' AND '$(PlatformTarget)' == 'x64'">
306
+
<MessageImportance="high"Text="CefSharp - Files were not copied by MSBuild after Nuget install/restore! Please close and re-open $(MSBuildProjectFile)." />
311
307
</Target>
312
308
313
-
<TargetName="CefSharpCopyFilesAfterNugetRestoreAnyCPU"AfterTargets="AfterBuild"Condition="'$(UsingMicrosoftNETSdk)' != 'true' AND !Exists('$(OutDir)$(CefSharpTargetDirAnyCpu32)libcef.dll') AND '$(CefSharpBuildAction)' != 'NoAction' AND '$(PlatformTarget)' == 'AnyCPU'">
314
-
<MessageImportance="high"Text="CefSharp - Files were not copied by MSBuild after Nuget install/restore, copying (AnyCPU) $(OutDir)$(CefSharpTargetDir)" />
<TargetName="CefSharpCopyFilesAfterNugetRestoreAnyCPU"AfterTargets="Build"Condition="'$(UsingMicrosoftNETSdk)' != 'true' AND !Exists('$(OutDir)$(CefSharpTargetDirAnyCpu32)libcef.dll') AND '$(CefSharpBuildAction)' != 'NoAction' AND '$(PlatformTarget)' == 'AnyCPU'">
310
+
<MessageImportance="high"Text="CefSharp - Files were not copied by MSBuild after Nuget install/restore! Please close and re-open $(MSBuildProjectFile)." />
0 commit comments