Skip to content

Commit 258ff21

Browse files
authored
Revert "Revert "Fix nuget package errors"" (#33)
* Revert "Revert "Fix package error and .gitignore (#31)" (#32)" This reverts commit 73d455b. * Update README.md
1 parent 73d455b commit 258ff21

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
# VS Code
22
.vs/
33
.vscode/
4+
packages/
5+
6+
*.csproj.user
7+
*.vcxproj.user

WebView2APISample/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Clone the repository and open the solution in Visual Studio. WebView2 is already
2525
- Clone this repository
2626
- Open the solution in Visual Studio 2019**
2727
- Set the target you want to build (Debug/Release, x86/x64/ARM64)
28-
- Build the solution file: WebView2APISample.sln
28+
- Build the project file: `WebView2APISample.vcxproj`
2929

3030
That's it! Everything should be ready to just launch the app.
3131

@@ -73,7 +73,7 @@ This component handles commands from the Process menu, which involve interaction
7373

7474
#### 6. SettingsComponent.cpp
7575

76-
This component handles commands from the Settings menu, and is also in charge of copying settings from an old WebView when a new one is created. Most code that interacts with the ICoreWebView2Settings interface can be found here.
76+
This component handles commands from the Settings menu, and is also in charge of copying settings from an old WebView when a new one is created. Most code that interacts with the `ICoreWebView2Settings` interface can be found here.
7777

7878
#### 7. ViewComponent.cpp
7979

@@ -87,7 +87,7 @@ This component is created when you select the Scenario/Web Messaging menu item.
8787

8888
#### 9. ScenarioAddRemoteObject.cpp and ScenarioAddRemoteObject.html
8989

90-
This component is created when you select the Scenario/Remote Objects menu item. It demonstrates communication between the native app and the HTML webpage by means of remote object injection. The interface of the remote object is declared in RemoteObjectSample.idl, and the object itself is implemented in RemoteObjectSampleImpl.cpp.
90+
This component is created when you select the Scenario/Host Objects menu item. It demonstrates communication between the native app and the HTML webpage by means of remote object injection. The interface of the remote object is declared in `HostObjectSample.idl`, and the object itself is implemented in `HostObjectSampleImpl.cpp`.
9191

9292
## Key Functions
9393

@@ -194,7 +194,7 @@ First, navigate to the ScenarioWebMessage application within the Sample App, usi
194194
2. Click on Scenario
195195
3. Click on Web Messaging
196196

197-
The WebView should display a simple webpage titled: "WebMessage sample page". The code for this page can be found in the ScenarioWebMessage.html file.
197+
The WebView should display a simple webpage titled: "WebMessage sample page". The code for this page can be found in the `ScenarioWebMessage.html` file.
198198

199199
![alt text](documentation/screenshots/sample-app-webmessaging-screenshot.png)
200200

WebView2APISample/WebView2APISample.vcxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -250,14 +250,14 @@
250250
</ItemGroup>
251251
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
252252
<ImportGroup Label="ExtensionTargets">
253-
<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')" />
254-
<Import Project="packages\Microsoft.Web.WebView2.0.9.488-prerelease\build\native\Microsoft.Web.WebView2.targets" Condition="Exists('packages\Microsoft.Web.WebView2.0.9.488-prerelease\build\native\Microsoft.Web.WebView2.targets')" />
253+
<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')" />
254+
<Import Project="..\packages\Microsoft.Web.WebView2.0.9.488-prerelease\build\native\Microsoft.Web.WebView2.targets" Condition="Exists('..\packages\Microsoft.Web.WebView2.0.9.488-prerelease\build\native\Microsoft.Web.WebView2.targets')" />
255255
</ImportGroup>
256256
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
257257
<PropertyGroup>
258258
<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>
259259
</PropertyGroup>
260-
<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'))" />
261-
<Error Condition="!Exists('packages\Microsoft.Web.WebView2.0.9.488-prerelease\build\native\Microsoft.Web.WebView2.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\Microsoft.Web.WebView2.0.9.488-prerelease\build\native\Microsoft.Web.WebView2.targets'))" />
260+
<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'))" />
261+
<Error Condition="!Exists('..\packages\Microsoft.Web.WebView2.0.9.488-prerelease\build\native\Microsoft.Web.WebView2.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.Web.WebView2.0.9.488-prerelease\build\native\Microsoft.Web.WebView2.targets'))" />
262262
</Target>
263263
</Project>

0 commit comments

Comments
 (0)