Skip to content

Commit 9041949

Browse files
committed
Add platform check to give error if using platform other than x86 or x64
1 parent e63d590 commit 9041949

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

NuGet/CefSharp.Common.targets

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Target Name="PlatformCheck" BeforeTargets="ResolveAssemblyReferences" Condition="(('$(Platform)' != 'x86') AND ('$(Platform)' != 'x64'))">
4+
<Error Text="$(MSBuildThisFileName) does not work correctly on '$(Platform)' platform. You need to specify platform (x86 / x64)." />
5+
</Target>
6+
37
<Target Name="CefSharpCommonCopyBinaries" BeforeTargets="AfterBuild">
48
<ItemGroup>
59
<CefSharpBinaries Include="$(MSBuildThisFileDirectory)..\CefSharp\$(Platform)\*.*" />

0 commit comments

Comments
 (0)