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
Technically the older Non-SDK Style project can use PackageReference under VS2019 (possibly VS2017 as well),
90
90
so we use NuGetProjectStyle which is defined in the .nuget.g.props file for projects using PackageReference.
91
91
For Library projects with Nuget supports buildTransitive we don't include our additional files and packages, the transitive reference should flow directly to the consuming projects.
92
-
For class libraries that are often AnyCPU and consuming Exe/WinExe projects that are x64 or x86 the resuiling build output
92
+
For class libraries that are often AnyCPU and consuming Exe/WinExe projects that are x64 or x86 the resulting build output
93
93
is polluted with extra copies in sub folders.
94
94
-->
95
95
<CefSharpBuildActionCondition="'$(CefSharpBuildAction)' == '' AND '$(NuGetProjectStyle)' != 'PackageReference'">None</CefSharpBuildAction>
96
96
<CefSharpBuildActionCondition="'$(CefSharpBuildAction)' == '' AND '$(NuGetProjectStyle)' == 'PackageReference'">Content</CefSharpBuildAction>
97
97
<CefSharpBuildActionCondition="'$(CefSharpBuildAction)' == '' AND '$(NuGetProjectStyle)' == 'PackageReference' AND $(NuGetToolVersion) > '5.0' AND '$(OutputType)' == 'Library'">NoAction</CefSharpBuildAction>
The None/Content entries aren't picked up as the .targets file doesn't exist before the Nuget restore (only when using packages.config)
355
-
So in that scenario we display a mssage to the user. Close/reopen the project and the None/Content entries will work as above.
355
+
So in that scenario we display a message to the user. Close/reopen the project and the None/Content entries will work as above.
356
356
I have attempted to copy the files via a Copy Task, unfortunately the .props entries aren't accessible either so that's not feasible.
357
357
-->
358
358
<TargetName="CefSharpCopyFilesAfterNugetRestore32"AfterTargets="AfterBuild"Condition="'$(NuGetProjectStyle)' != 'PackageReference' AND !Exists('$(OutDir)$(CefSharpTargetDir)libcef.dll') AND '$(CefSharpBuildAction)' != 'NoAction' AND '$(CefSharpPlatformTarget)' == 'x86'">
@@ -366,4 +366,4 @@
366
366
<TargetName="CefSharpCopyFilesAfterNugetRestoreAnyCPU"AfterTargets="AfterBuild"Condition="'$(NuGetProjectStyle)' != 'PackageReference' AND !Exists('$(OutDir)$(CefSharpTargetDirAnyCpu32)libcef.dll') AND '$(CefSharpBuildAction)' != 'NoAction' AND '$(CefSharpPlatformTarget)' == 'AnyCPU'">
367
367
<MessageImportance="high"Text="CefSharp - Files were not copied by MSBuild after Nuget install/restore! Please close and re-open $(MSBuildProjectFile)." />
0 commit comments