Skip to content

Commit 8ddb670

Browse files
authored
Merge pull request #7 from MicrosoftEdge/user/peiche/fix-proj
Fix project dependencies
2 parents 0de9199 + 6af503f commit 8ddb670

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

WebView2APISample/AppWindow.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class AppWindow
103103
// Fullscreen related code
104104
WINDOWPLACEMENT m_previousPlacement;
105105
HMENU m_hMenu;
106-
BOOL m_containsFullscreenElement;
106+
BOOL m_containsFullscreenElement = FALSE;
107107
bool m_fullScreenAllowed = true;
108108
void EnterFullScreen();
109109
void ExitFullScreen();

WebView2APISample/WebView2APISample.vcxproj

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@
125125
<ClInclude Include="resource.h" />
126126
<ClInclude Include="ScenarioAddRemoteObject.h" />
127127
<ClInclude Include="ScenarioWebMessage.h" />
128+
<ClInclude Include="ScenarioWebViewEventMonitor.h" />
128129
<ClInclude Include="ScriptComponent.h" />
129130
<ClInclude Include="SettingsComponent.h" />
130131
<ClInclude Include="stdafx.h" />
@@ -143,6 +144,7 @@
143144
<ClCompile Include="RemoteObjectSampleImpl.cpp" />
144145
<ClCompile Include="ScenarioAddRemoteObject.cpp" />
145146
<ClCompile Include="ScenarioWebMessage.cpp" />
147+
<ClCompile Include="ScenarioWebViewEventMonitor.cpp" />
146148
<ClCompile Include="ScriptComponent.cpp" />
147149
<ClCompile Include="SettingsComponent.cpp" />
148150
<ClCompile Include="stdafx.cpp">
@@ -166,20 +168,21 @@
166168
<None Include="packages.config" />
167169
<CopyFileToFolders Include="ScenarioAddRemoteObject.html" />
168170
<CopyFileToFolders Include="ScenarioWebMessage.html" />
171+
<CopyFileToFolders Include="ScenarioWebViewEventMonitor.html" />
169172
</ItemGroup>
170173
<ItemGroup>
171174
<Midl Include="RemoteObjectSample.idl" TypeLibraryName="$(OutDir)WebView2APISample.tlb" />
172175
</ItemGroup>
173176
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
174177
<ImportGroup Label="ExtensionTargets">
175-
<Import Project="packages\Microsoft.Web.WebView2.0.8.314\build\native\Microsoft.Web.WebView2.targets" Condition="Exists('packages\Microsoft.Web.WebView2.0.8.314\build\native\Microsoft.Web.WebView2.targets')" />
178+
<Import Project="packages\Microsoft.Web.WebView2.0.8.355\build\native\Microsoft.Web.WebView2.targets" Condition="Exists('packages\Microsoft.Web.WebView2.0.8.355\build\native\Microsoft.Web.WebView2.targets')" />
176179
<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')" />
177180
</ImportGroup>
178181
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
179182
<PropertyGroup>
180183
<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>
181184
</PropertyGroup>
182-
<Error Condition="!Exists('packages\Microsoft.Web.WebView2.0.8.314\build\native\Microsoft.Web.WebView2.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\Microsoft.Web.WebView2.0.8.314\build\native\Microsoft.Web.WebView2.targets'))" />
185+
<Error Condition="!Exists('packages\Microsoft.Web.WebView2.0.8.355\build\native\Microsoft.Web.WebView2.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\Microsoft.Web.WebView2.0.8.355\build\native\Microsoft.Web.WebView2.targets'))" />
183186
<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'))" />
184187
</Target>
185188
</Project>

WebView2APISample/WebView2APISample.vcxproj.filters

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@
6060
<ClCompile Include="ViewComponent.cpp">
6161
<Filter>Source Files</Filter>
6262
</ClCompile>
63+
<ClCompile Include="ScenarioWebViewEventMonitor.cpp">
64+
<Filter>Source Files</Filter>
65+
</ClCompile>
6366
</ItemGroup>
6467
<ItemGroup>
6568
<ClInclude Include="AppWindow.h">
@@ -113,13 +116,17 @@
113116
<ClInclude Include="ViewComponent.h">
114117
<Filter>Header Files</Filter>
115118
</ClInclude>
119+
<ClInclude Include="ScenarioWebViewEventMonitor.h">
120+
<Filter>Header Files</Filter>
121+
</ClInclude>
116122
</ItemGroup>
117123
<ItemGroup>
118124
<ResourceCompile Include="WebView2APISample.rc">
119125
<Filter>Resource Files</Filter>
120126
</ResourceCompile>
121127
</ItemGroup>
122128
<ItemGroup>
129+
<None Include="ScenarioWebViewEventMonitor.html" />
123130
<None Include="packages.config" />
124131
</ItemGroup>
125132
<ItemGroup>

WebView2APISample/packages.config

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="0.8.314" targetFramework="native" />
3+
<package id="Microsoft.Web.WebView2" version="0.8.355" targetFramework="native" />
44
<package id="Microsoft.Windows.ImplementationLibrary" version="1.0.191107.2" targetFramework="native" />
55
</packages>

0 commit comments

Comments
 (0)