Skip to content

Commit e03e39f

Browse files
committed
Net Core - Add CefSharpAfterBuildDebug AfterBuild and fix WinForms example
1 parent 16920f6 commit e03e39f

File tree

3 files changed

+17
-13
lines changed

3 files changed

+17
-13
lines changed

CefSharp.MinimalExample.OffScreen/CefSharp.MinimalExample.OffScreen.netcore.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@
6969
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
7070
</None>
7171
</ItemGroup>
72+
73+
<Target Name="CefSharpAfterBuildDebug" AfterTargets="AfterBuild">
74+
<CallTarget Targets="CefSharpAfterBuildDiagnostic"/>
75+
</Target>
7276

7377
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />
7478
</Project>

CefSharp.MinimalExample.WinForms/CefSharp.MinimalExample.WinForms.netcore.csproj

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,17 @@
4949
</PropertyGroup>
5050

5151
<ItemGroup>
52+
<Compile Remove="bin.net472\**" />
5253
<Compile Remove="bin\**" />
54+
<Compile Remove="obj.net472\**" />
5355
<Compile Remove="obj\**" />
56+
<EmbeddedResource Remove="bin.net472\**" />
5457
<EmbeddedResource Remove="bin\**" />
58+
<EmbeddedResource Remove="obj.net472\**" />
5559
<EmbeddedResource Remove="obj\**" />
60+
<None Remove="bin.net472\**" />
5661
<None Remove="bin\**" />
62+
<None Remove="obj.net472\**" />
5763
<None Remove="obj\**" />
5864
</ItemGroup>
5965

@@ -70,19 +76,9 @@
7076
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
7177
</None>
7278
</ItemGroup>
73-
74-
<Target Name="CefSharpAfterBuildDiagnostic" AfterTargets="AfterBuild">
75-
<Message Importance="high" Text="CefSharp After Build Diagnostic" />
76-
<Message Importance="high" Text="RuntimeIdentifier = $(RuntimeIdentifier)" />
77-
<Message Importance="high" Text="Platform = $(Platform)" />
78-
<Message Importance="high" Text="PlatformName = $(PlatformName)" />
79-
<Message Importance="high" Text="Platforms = $(Platforms)" />
80-
<Message Importance="high" Text="PlatformTarget = $(PlatformTarget)" />
81-
<Message Importance="high" Text="PlatformTargetAsMSBuildArchitecture = $(PlatformTargetAsMSBuildArchitecture)" />
82-
<Message Importance="high" Text="TargetFramework = $(TargetFramework)" />
83-
<Message Importance="high" Text="TargetFrameworkVersion = $(TargetFrameworkVersion)" />
84-
<Message Importance="high" Text="NuGetProjectStyle = $(NuGetProjectStyle)" />
85-
<Message Importance="high" Text="OutDir = $(OutDir)" />
79+
80+
<Target Name="CefSharpAfterBuildDebug" AfterTargets="AfterBuild">
81+
<CallTarget Targets="CefSharpAfterBuildDiagnostic" />
8682
</Target>
8783

8884
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk.WindowsDesktop" />

CefSharp.MinimalExample.Wpf/CefSharp.MinimalExample.Wpf.netcore.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@
7474
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
7575
</None>
7676
</ItemGroup>
77+
78+
<Target Name="CefSharpAfterBuildDebug" AfterTargets="AfterBuild">
79+
<CallTarget Targets="CefSharpAfterBuildDiagnostic"/>
80+
</Target>
7781

7882
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk.WindowsDesktop" />
7983
</Project>

0 commit comments

Comments
 (0)