Skip to content

Commit c38c894

Browse files
author
Ognjen Sobajic
committed
Update all projects to 1.0.781-prerelease. Fix PlatformTarget in WPF and WinForms.
1 parent c8de3c3 commit c38c894

File tree

4 files changed

+15
-6
lines changed

4 files changed

+15
-6
lines changed

SampleApps/WebView2APISample/WebView2APISample.vcxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,13 +502,13 @@
502502
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
503503
<ImportGroup Label="ExtensionTargets">
504504
<Import Project="..\packages\Microsoft.Windows.ImplementationLibrary.1.0.191107.2\build\native\Microsoft.Windows.ImplementationLibrary.targets" Condition="Exists('..\packages\Microsoft.Windows.ImplementationLibrary.1.0.191107.2\build\native\Microsoft.Windows.ImplementationLibrary.targets')" />
505-
<Import Project="..\packages\Microsoft.Web.WebView2.1.0.721-prerelease\build\native\Microsoft.Web.WebView2.targets" Condition="Exists('..\packages\Microsoft.Web.WebView2.1.0.721-prerelease\build\native\Microsoft.Web.WebView2.targets')" />
505+
<Import Project="..\packages\Microsoft.Web.WebView2.1.0.781-prerelease\build\native\Microsoft.Web.WebView2.targets" Condition="Exists('..\packages\Microsoft.Web.WebView2.1.0.781-prerelease\build\native\Microsoft.Web.WebView2.targets')" />
506506
</ImportGroup>
507507
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
508508
<PropertyGroup>
509509
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
510510
</PropertyGroup>
511511
<Error Condition="!Exists('..\packages\Microsoft.Windows.ImplementationLibrary.1.0.191107.2\build\native\Microsoft.Windows.ImplementationLibrary.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.Windows.ImplementationLibrary.1.0.191107.2\build\native\Microsoft.Windows.ImplementationLibrary.targets'))" />
512-
<Error Condition="!Exists('..\packages\Microsoft.Web.WebView2.1.0.721-prerelease\build\native\Microsoft.Web.WebView2.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.Web.WebView2.1.0.721-prerelease\build\native\Microsoft.Web.WebView2.targets'))" />
512+
<Error Condition="!Exists('..\packages\Microsoft.Web.WebView2.1.0.781-prerelease\build\native\Microsoft.Web.WebView2.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.Web.WebView2.1.0.781-prerelease\build\native\Microsoft.Web.WebView2.targets'))" />
513513
</Target>
514514
</Project>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="Microsoft.Web.WebView2" version="1.0.721-prerelease" targetFramework="native" />
3+
<package id="Microsoft.Web.WebView2" version="1.0.781-prerelease" targetFramework="native" />
44
<package id="Microsoft.Windows.ImplementationLibrary" version="1.0.191107.2" targetFramework="native" />
55
</packages>

SampleApps/WebView2WindowsFormsBrowser/WebView2WindowsFormsBrowser.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
<PlatformTarget>x86</PlatformTarget>
1717
</PropertyGroup>
1818
<PropertyGroup Condition="'$(Platform)'=='AnyCPU'">
19-
<PlatformTarget>x86</PlatformTarget>
19+
<PlatformTarget>AnyCPU</PlatformTarget>
2020
</PropertyGroup>
2121
<ItemGroup>
22-
<PackageReference Include="Microsoft.Web.WebView2" Version="1.0.721-prerelease" />
22+
<PackageReference Include="Microsoft.Web.WebView2" Version="1.0.781-prerelease" />
2323
</ItemGroup>
2424
<ItemGroup>
2525
<None Update="assets\EdgeWebView2-80.jpg">

SampleApps/WebView2WpfBrowser/WebView2WpfBrowser.csproj

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,21 @@
1010
<NoWin32Manifest>true</NoWin32Manifest>
1111
<Configurations>Debug;Release;Win7 Release;Win7 Debug</Configurations>
1212
</PropertyGroup>
13+
<PropertyGroup Condition="'$(Platform)'=='x64'">
14+
<PlatformTarget>x64</PlatformTarget>
15+
</PropertyGroup>
16+
<PropertyGroup Condition="'$(Platform)'=='x86'">
17+
<PlatformTarget>x86</PlatformTarget>
18+
</PropertyGroup>
19+
<PropertyGroup Condition="'$(Platform)'=='AnyCPU'">
20+
<PlatformTarget>AnyCPU</PlatformTarget>
21+
</PropertyGroup>
1322
<ItemGroup>
1423
<Content Include="assets\EdgeWebView2-80.jpg">
1524
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
1625
</Content>
1726
</ItemGroup>
1827
<ItemGroup>
19-
<PackageReference Include="Microsoft.Web.WebView2" Version="1.0.721-prerelease" />
28+
<PackageReference Include="Microsoft.Web.WebView2" Version="1.0.781-prerelease" />
2029
</ItemGroup>
2130
</Project>

0 commit comments

Comments
 (0)