|
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | 2 | <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
3 | 3 | <Target Name="PlatformCheck" BeforeTargets="ResolveAssemblyReferences" Condition="(('$(Platform)' != 'x86') AND ('$(Platform)' != 'x64') AND ('$(Platform)' != 'Win32') AND '$(CefSharpAnyCpuSupport)' != 'true')"> |
4 | | - <Message Text="$(MSBuildThisFileName) contains unmanaged resoures which must be copied to your build output folder." /> |
5 | | - <Message Text="$(MSBuildThisFileName) relies on the Platform property which is defined at the solution level (not the TargetPlatform property that's defined individually in your [cs|vb|vcx]proj files) to determine which files to copy." /> |
6 | | - <Error Text="$(MSBuildThisFileName) is unable to proceeed as your current Platform is '$(Platform)'. To target AnyCPU please read https://github.com/cefsharp/CefSharp/issues/1714. Alternatively change your Platform to x86 or x64 and the relevant files will be copied automatically. For details on changing your Platform see https://docs.microsoft.com/en-gb/visualstudio/ide/how-to-configure-projects-to-target-platforms?view=vs-2017" HelpKeyword="CefSharpSolutionPlatformCheck" /> |
| 4 | + <Error Text="$(MSBuildThisFileName) is unable to proceeed as your current Platform is '$(Platform)'. To target AnyCPU please read https://github.com/cefsharp/CefSharp/issues/1714. Alternatively change your Platform to x86 or x64 and the relevant files will be copied automatically. For details on changing your projects Platform see https://docs.microsoft.com/en-gb/visualstudio/ide/how-to-configure-projects-to-target-platforms?view=vs-2017" HelpKeyword="CefSharpSolutionPlatformCheck" /> |
7 | 5 | </Target> |
8 | 6 |
|
9 | 7 | <Target Name="FrameworkVersionCheck" BeforeTargets="ResolveAssemblyReferences" Condition="(('$(TargetFrameworkVersion)' == 'v4.5.1') OR ('$(TargetFrameworkVersion)' == 'v4.5') OR ('$(TargetFrameworkVersion)' == 'v4.0'))"> |
|
24 | 22 | <None Include="@(CefRedist32)"> |
25 | 23 | <Link>$(CefSharpTargetDir)\%(RecursiveDir)%(FileName)%(Extension)</Link> |
26 | 24 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
27 | | - <Visible>false</Visible> |
| 25 | + <Visible>false</Visible> |
28 | 26 | </None> |
29 | 27 | <None Include="@(CefSharpCommonBinaries32)"> |
30 | 28 | <Link>$(CefSharpTargetDir)\%(RecursiveDir)%(FileName)%(Extension)</Link> |
31 | 29 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
32 | | - <Visible>false</Visible> |
| 30 | + <Visible>false</Visible> |
33 | 31 | </None> |
34 | 32 | </ItemGroup> |
35 | 33 |
|
36 | 34 | <ItemGroup Condition="'$(Platform)' == 'x64'"> |
37 | 35 | <None Include="@(CefRedist64)"> |
38 | 36 | <Link>$(CefSharpTargetDir)\%(RecursiveDir)%(FileName)%(Extension)</Link> |
39 | 37 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
40 | | - <Visible>false</Visible> |
| 38 | + <Visible>false</Visible> |
41 | 39 | </None> |
42 | 40 | <None Include="@(CefSharpCommonBinaries64)"> |
43 | 41 | <Link>$(CefSharpTargetDir)\%(RecursiveDir)%(FileName)%(Extension)</Link> |
44 | 42 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
45 | | - <Visible>false</Visible> |
| 43 | + <Visible>false</Visible> |
46 | 44 | </None> |
47 | 45 | </ItemGroup> |
48 | 46 |
|
49 | 47 | <ItemGroup Condition="'$(Platform)' == 'AnyCPU'"> |
50 | 48 | <None Include="@(CefRedist32)"> |
51 | 49 | <Link>$(CefSharpTargetDir)\x86\%(RecursiveDir)%(FileName)%(Extension)</Link> |
52 | 50 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
53 | | - <Visible>false</Visible> |
| 51 | + <Visible>false</Visible> |
54 | 52 | </None> |
55 | 53 | <None Include="@(CefRedist64)"> |
56 | 54 | <Link>$(CefSharpTargetDir)\x64\%(RecursiveDir)%(FileName)%(Extension)</Link> |
57 | 55 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
58 | | - <Visible>false</Visible> |
| 56 | + <Visible>false</Visible> |
59 | 57 | </None> |
60 | 58 | <None Include="@(CefSharpCommonBinaries32)"> |
61 | 59 | <Link>$(CefSharpTargetDir)\x86\%(RecursiveDir)%(FileName)%(Extension)</Link> |
62 | 60 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
63 | | - <Visible>false</Visible> |
| 61 | + <Visible>false</Visible> |
64 | 62 | </None> |
65 | 63 | <None Include="@(CefSharpCommonBinaries64)"> |
66 | 64 | <Link>$(CefSharpTargetDir)\x64\%(RecursiveDir)%(FileName)%(Extension)</Link> |
67 | 65 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
68 | | - <Visible>false</Visible> |
| 66 | + <Visible>false</Visible> |
69 | 67 | </None> |
70 | 68 | </ItemGroup> |
71 | 69 | </Project> |
0 commit comments