Skip to content

Commit

Permalink
Merge pull request #526 from amaitland/feature/nuget-platform-check
Browse files Browse the repository at this point in the history
Nuget - Error if using platform other than x86 or x64
  • Loading branch information
jornh committed Oct 24, 2014
2 parents e63d590 + 9041949 commit 3cfeaef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions NuGet/CefSharp.Common.targets
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="PlatformCheck" BeforeTargets="ResolveAssemblyReferences" Condition="(('$(Platform)' != 'x86') AND ('$(Platform)' != 'x64'))">
<Error Text="$(MSBuildThisFileName) does not work correctly on '$(Platform)' platform. You need to specify platform (x86 / x64)." />
</Target>

<Target Name="CefSharpCommonCopyBinaries" BeforeTargets="AfterBuild">
<ItemGroup>
<CefSharpBinaries Include="$(MSBuildThisFileDirectory)..\CefSharp\$(Platform)\*.*" />
Expand Down

0 comments on commit 3cfeaef

Please sign in to comment.