commit dccef49a6d247258d00018abbd0961117e8f89d2
Author: Rosmontis_Cloud <2451830085@qq.com>
Date: Wed Jul 1 15:42:23 2026 +0800
Initial commit: WebView2 demo project
diff --git a/App.xaml b/App.xaml
new file mode 100644
index 0000000..2ba4e10
--- /dev/null
+++ b/App.xaml
@@ -0,0 +1,9 @@
+
+
+
+
+
diff --git a/App.xaml.cs b/App.xaml.cs
new file mode 100644
index 0000000..8a81f09
--- /dev/null
+++ b/App.xaml.cs
@@ -0,0 +1,13 @@
+using System.Configuration;
+using System.Data;
+using System.Windows;
+
+namespace WebView2Demo;
+
+///
+/// Interaction logic for App.xaml
+///
+public partial class App : Application
+{
+}
+
diff --git a/AssemblyInfo.cs b/AssemblyInfo.cs
new file mode 100644
index 0000000..cc29e7f
--- /dev/null
+++ b/AssemblyInfo.cs
@@ -0,0 +1,10 @@
+using System.Windows;
+
+[assembly:ThemeInfo(
+ ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
+ //(used if a resource is not found in the page,
+ // or application resource dictionaries)
+ ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
+ //(used if a resource is not found in the page,
+ // app, or any theme specific resource dictionaries)
+)]
diff --git a/MainWindow.xaml b/MainWindow.xaml
new file mode 100644
index 0000000..d37b83b
--- /dev/null
+++ b/MainWindow.xaml
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/MainWindow.xaml.cs b/MainWindow.xaml.cs
new file mode 100644
index 0000000..bbfe347
--- /dev/null
+++ b/MainWindow.xaml.cs
@@ -0,0 +1,44 @@
+using System;
+using System.Windows;
+using Microsoft.Web.WebView2.Wpf;
+
+namespace WebView2Demo
+{
+ public partial class MainWindow : Window
+ {
+ public MainWindow()
+ {
+ InitializeComponent();
+ InitializeWebView();
+ }
+
+ private async void InitializeWebView()
+ {
+ try
+ {
+ // 初始化 WebView2
+ await WebView.EnsureCoreWebView2Async();
+ Console.WriteLine("WebView2 初始化成功!");
+
+ // 可以设置自定义 UserAgent
+ // WebView.CoreWebView2.Settings.UserAgent = "MyApp/1.0";
+
+ // 监听页面加载完成事件
+ WebView.CoreWebView2.NavigationCompleted += (s, e) =>
+ {
+ Console.WriteLine("页面加载完成, Success: " + e.IsSuccess);
+ };
+ }
+ catch (Exception ex)
+ {
+ MessageBox.Show($"WebView2 初始化失败: {ex.Message}\n请确保已安装 WebView2 Runtime",
+ "错误", MessageBoxButton.OK, MessageBoxImage.Error);
+ }
+ }
+
+ private void RefreshPage(object sender, RoutedEventArgs e)
+ {
+ WebView.Reload();
+ }
+ }
+}
diff --git a/WebView2Demo.csproj b/WebView2Demo.csproj
new file mode 100644
index 0000000..f0b70a0
--- /dev/null
+++ b/WebView2Demo.csproj
@@ -0,0 +1,15 @@
+
+
+
+ WinExe
+ net8.0-windows
+ enable
+ enable
+ true
+
+
+
+
+
+
+
diff --git a/obj/Debug/net8.0-windows/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs b/obj/Debug/net8.0-windows/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs
new file mode 100644
index 0000000..2217181
--- /dev/null
+++ b/obj/Debug/net8.0-windows/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs
@@ -0,0 +1,4 @@
+//
+using System;
+using System.Reflection;
+[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")]
diff --git a/obj/Debug/net8.0-windows/App.g.cs b/obj/Debug/net8.0-windows/App.g.cs
new file mode 100644
index 0000000..e1ff54e
--- /dev/null
+++ b/obj/Debug/net8.0-windows/App.g.cs
@@ -0,0 +1,70 @@
+#pragma checksum "..\..\..\App.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "F0F542B2B3024CA65F35885C9EA866081FA55664"
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+using System;
+using System.Diagnostics;
+using System.Windows;
+using System.Windows.Automation;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Controls.Ribbon;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Markup;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Media.Effects;
+using System.Windows.Media.Imaging;
+using System.Windows.Media.Media3D;
+using System.Windows.Media.TextFormatting;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+using System.Windows.Shell;
+using WebView2Demo;
+
+
+namespace WebView2Demo {
+
+
+ ///
+ /// App
+ ///
+ public partial class App : System.Windows.Application {
+
+ ///
+ /// InitializeComponent
+ ///
+ [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "8.0.28.0")]
+ public void InitializeComponent() {
+
+ #line 5 "..\..\..\App.xaml"
+ this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative);
+
+ #line default
+ #line hidden
+ }
+
+ ///
+ /// Application Entry Point.
+ ///
+ [System.STAThreadAttribute()]
+ [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "8.0.28.0")]
+ public static void Main() {
+ WebView2Demo.App app = new WebView2Demo.App();
+ app.InitializeComponent();
+ app.Run();
+ }
+ }
+}
+
diff --git a/obj/Debug/net8.0-windows/MainWindow.baml b/obj/Debug/net8.0-windows/MainWindow.baml
new file mode 100644
index 0000000..12fc0aa
Binary files /dev/null and b/obj/Debug/net8.0-windows/MainWindow.baml differ
diff --git a/obj/Debug/net8.0-windows/MainWindow.g.cs b/obj/Debug/net8.0-windows/MainWindow.g.cs
new file mode 100644
index 0000000..6599dec
--- /dev/null
+++ b/obj/Debug/net8.0-windows/MainWindow.g.cs
@@ -0,0 +1,97 @@
+#pragma checksum "..\..\..\MainWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "69BCCFAD6A1F84FCC9DF73D3B82763158668A03B"
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+using Microsoft.Web.WebView2.Wpf;
+using System;
+using System.Diagnostics;
+using System.Windows;
+using System.Windows.Automation;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Controls.Ribbon;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Markup;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Media.Effects;
+using System.Windows.Media.Imaging;
+using System.Windows.Media.Media3D;
+using System.Windows.Media.TextFormatting;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+using System.Windows.Shell;
+
+
+namespace WebView2Demo {
+
+
+ ///
+ /// MainWindow
+ ///
+ public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
+
+
+ #line 12 "..\..\..\MainWindow.xaml"
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+ internal Microsoft.Web.WebView2.Wpf.WebView2 WebView;
+
+ #line default
+ #line hidden
+
+ private bool _contentLoaded;
+
+ ///
+ /// InitializeComponent
+ ///
+ [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "8.0.28.0")]
+ public void InitializeComponent() {
+ if (_contentLoaded) {
+ return;
+ }
+ _contentLoaded = true;
+ System.Uri resourceLocater = new System.Uri("/WebView2Demo;component/mainwindow.xaml", System.UriKind.Relative);
+
+ #line 1 "..\..\..\MainWindow.xaml"
+ System.Windows.Application.LoadComponent(this, resourceLocater);
+
+ #line default
+ #line hidden
+ }
+
+ [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "8.0.28.0")]
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
+ void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
+ switch (connectionId)
+ {
+ case 1:
+ this.WebView = ((Microsoft.Web.WebView2.Wpf.WebView2)(target));
+ return;
+ case 2:
+
+ #line 17 "..\..\..\MainWindow.xaml"
+ ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.RefreshPage);
+
+ #line default
+ #line hidden
+ return;
+ }
+ this._contentLoaded = true;
+ }
+ }
+}
+
diff --git a/obj/Debug/net8.0-windows/WebView2Demo.AssemblyInfo.cs b/obj/Debug/net8.0-windows/WebView2Demo.AssemblyInfo.cs
new file mode 100644
index 0000000..647de85
--- /dev/null
+++ b/obj/Debug/net8.0-windows/WebView2Demo.AssemblyInfo.cs
@@ -0,0 +1,24 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+using System;
+using System.Reflection;
+
+[assembly: System.Reflection.AssemblyCompanyAttribute("WebView2Demo")]
+[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
+[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
+[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
+[assembly: System.Reflection.AssemblyProductAttribute("WebView2Demo")]
+[assembly: System.Reflection.AssemblyTitleAttribute("WebView2Demo")]
+[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
+[assembly: System.Runtime.Versioning.TargetPlatformAttribute("Windows7.0")]
+[assembly: System.Runtime.Versioning.SupportedOSPlatformAttribute("Windows7.0")]
+
+// 由 MSBuild WriteCodeFragment 类生成。
+
diff --git a/obj/Debug/net8.0-windows/WebView2Demo.AssemblyInfoInputs.cache b/obj/Debug/net8.0-windows/WebView2Demo.AssemblyInfoInputs.cache
new file mode 100644
index 0000000..e5e4de9
--- /dev/null
+++ b/obj/Debug/net8.0-windows/WebView2Demo.AssemblyInfoInputs.cache
@@ -0,0 +1 @@
+6f678735046a50135cfc693bf479a7211ebf0a20adab6750f610c0a87155c424
diff --git a/obj/Debug/net8.0-windows/WebView2Demo.GeneratedMSBuildEditorConfig.editorconfig b/obj/Debug/net8.0-windows/WebView2Demo.GeneratedMSBuildEditorConfig.editorconfig
new file mode 100644
index 0000000..47ec6da
--- /dev/null
+++ b/obj/Debug/net8.0-windows/WebView2Demo.GeneratedMSBuildEditorConfig.editorconfig
@@ -0,0 +1,13 @@
+is_global = true
+build_property.TargetFramework = net8.0-windows
+build_property.TargetPlatformMinVersion = 7.0
+build_property.UsingMicrosoftNETSdkWeb =
+build_property.ProjectTypeGuids =
+build_property.InvariantGlobalization =
+build_property.PlatformNeutralAssembly =
+build_property.EnforceExtendedAnalyzerRules =
+build_property._SupportedPlatformList = Linux,macOS,Windows
+build_property.RootNamespace = WebView2Demo
+build_property.ProjectDir = E:\CSharp-Learning\WebView2Demo\
+build_property.EnableComHosting =
+build_property.EnableGeneratedComInterfaceComImportInterop =
diff --git a/obj/Debug/net8.0-windows/WebView2Demo.GlobalUsings.g.cs b/obj/Debug/net8.0-windows/WebView2Demo.GlobalUsings.g.cs
new file mode 100644
index 0000000..08bb19f
--- /dev/null
+++ b/obj/Debug/net8.0-windows/WebView2Demo.GlobalUsings.g.cs
@@ -0,0 +1,6 @@
+//
+global using global::System;
+global using global::System.Collections.Generic;
+global using global::System.Linq;
+global using global::System.Threading;
+global using global::System.Threading.Tasks;
diff --git a/obj/Debug/net8.0-windows/WebView2Demo.assets.cache b/obj/Debug/net8.0-windows/WebView2Demo.assets.cache
new file mode 100644
index 0000000..bea34be
Binary files /dev/null and b/obj/Debug/net8.0-windows/WebView2Demo.assets.cache differ
diff --git a/obj/Debug/net8.0-windows/WebView2Demo.csproj.AssemblyReference.cache b/obj/Debug/net8.0-windows/WebView2Demo.csproj.AssemblyReference.cache
new file mode 100644
index 0000000..b181b14
Binary files /dev/null and b/obj/Debug/net8.0-windows/WebView2Demo.csproj.AssemblyReference.cache differ
diff --git a/obj/Debug/net8.0-windows/WebView2Demo.csproj.CoreCompileInputs.cache b/obj/Debug/net8.0-windows/WebView2Demo.csproj.CoreCompileInputs.cache
new file mode 100644
index 0000000..8f82633
--- /dev/null
+++ b/obj/Debug/net8.0-windows/WebView2Demo.csproj.CoreCompileInputs.cache
@@ -0,0 +1 @@
+2b4238706a52336505e15e3066d412e1db81f490fe0977c416bc2c1b71aaa2b9
diff --git a/obj/Debug/net8.0-windows/WebView2Demo.csproj.FileListAbsolute.txt b/obj/Debug/net8.0-windows/WebView2Demo.csproj.FileListAbsolute.txt
new file mode 100644
index 0000000..7f029aa
--- /dev/null
+++ b/obj/Debug/net8.0-windows/WebView2Demo.csproj.FileListAbsolute.txt
@@ -0,0 +1,11 @@
+E:\CSharp-Learning\WebView2Demo\obj\Debug\net8.0-windows\WebView2Demo.csproj.AssemblyReference.cache
+E:\CSharp-Learning\WebView2Demo\obj\Debug\net8.0-windows\MainWindow.baml
+E:\CSharp-Learning\WebView2Demo\obj\Debug\net8.0-windows\MainWindow.g.cs
+E:\CSharp-Learning\WebView2Demo\obj\Debug\net8.0-windows\App.g.cs
+E:\CSharp-Learning\WebView2Demo\obj\Debug\net8.0-windows\WebView2Demo_Content.g.cs
+E:\CSharp-Learning\WebView2Demo\obj\Debug\net8.0-windows\WebView2Demo_MarkupCompile.cache
+E:\CSharp-Learning\WebView2Demo\obj\Debug\net8.0-windows\WebView2Demo.g.resources
+E:\CSharp-Learning\WebView2Demo\obj\Debug\net8.0-windows\WebView2Demo.GeneratedMSBuildEditorConfig.editorconfig
+E:\CSharp-Learning\WebView2Demo\obj\Debug\net8.0-windows\WebView2Demo.AssemblyInfoInputs.cache
+E:\CSharp-Learning\WebView2Demo\obj\Debug\net8.0-windows\WebView2Demo.AssemblyInfo.cs
+E:\CSharp-Learning\WebView2Demo\obj\Debug\net8.0-windows\WebView2Demo.csproj.CoreCompileInputs.cache
diff --git a/obj/Debug/net8.0-windows/WebView2Demo.g.resources b/obj/Debug/net8.0-windows/WebView2Demo.g.resources
new file mode 100644
index 0000000..dd434a2
Binary files /dev/null and b/obj/Debug/net8.0-windows/WebView2Demo.g.resources differ
diff --git a/obj/Debug/net8.0-windows/WebView2Demo_Content.g.cs b/obj/Debug/net8.0-windows/WebView2Demo_Content.g.cs
new file mode 100644
index 0000000..feb354b
--- /dev/null
+++ b/obj/Debug/net8.0-windows/WebView2Demo_Content.g.cs
@@ -0,0 +1,14 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+[assembly: System.Windows.Resources.AssemblyAssociatedContentFileAttribute("webview2loader.dll")]
+[assembly: System.Windows.Resources.AssemblyAssociatedContentFileAttribute("webview2loader.dll")]
+[assembly: System.Windows.Resources.AssemblyAssociatedContentFileAttribute("webview2loader.dll")]
+
+
diff --git a/obj/Debug/net8.0-windows/WebView2Demo_MarkupCompile.cache b/obj/Debug/net8.0-windows/WebView2Demo_MarkupCompile.cache
new file mode 100644
index 0000000..ed5005e
--- /dev/null
+++ b/obj/Debug/net8.0-windows/WebView2Demo_MarkupCompile.cache
@@ -0,0 +1,20 @@
+WebView2Demo
+
+
+winexe
+C#
+.cs
+E:\CSharp-Learning\WebView2Demo\obj\Debug\net8.0-windows\
+WebView2Demo
+none
+false
+TRACE;DEBUG;NET;NET8_0;NETCOREAPP
+E:\CSharp-Learning\WebView2Demo\App.xaml
+11407045341
+3-1398119429
+41617472463
+201889356744
+MainWindow.xaml;
+
+False
+
diff --git a/obj/WebView2Demo.csproj.nuget.dgspec.json b/obj/WebView2Demo.csproj.nuget.dgspec.json
new file mode 100644
index 0000000..be17b5e
--- /dev/null
+++ b/obj/WebView2Demo.csproj.nuget.dgspec.json
@@ -0,0 +1,75 @@
+{
+ "format": 1,
+ "restore": {
+ "E:\\CSharp-Learning\\WebView2Demo\\WebView2Demo.csproj": {}
+ },
+ "projects": {
+ "E:\\CSharp-Learning\\WebView2Demo\\WebView2Demo.csproj": {
+ "version": "1.0.0",
+ "restore": {
+ "projectUniqueName": "E:\\CSharp-Learning\\WebView2Demo\\WebView2Demo.csproj",
+ "projectName": "WebView2Demo",
+ "projectPath": "E:\\CSharp-Learning\\WebView2Demo\\WebView2Demo.csproj",
+ "packagesPath": "C:\\Users\\Cloud.Liu\\.nuget\\packages\\",
+ "outputPath": "E:\\CSharp-Learning\\WebView2Demo\\obj\\",
+ "projectStyle": "PackageReference",
+ "configFilePaths": [
+ "C:\\Users\\Cloud.Liu\\AppData\\Roaming\\NuGet\\NuGet.Config"
+ ],
+ "originalTargetFrameworks": [
+ "net8.0-windows"
+ ],
+ "sources": {
+ "https://api.nuget.org/v3/index.json": {}
+ },
+ "frameworks": {
+ "net8.0-windows7.0": {
+ "targetAlias": "net8.0-windows",
+ "projectReferences": {}
+ }
+ },
+ "warningProperties": {
+ "warnAsError": [
+ "NU1605"
+ ]
+ },
+ "restoreAuditProperties": {
+ "enableAudit": "true",
+ "auditLevel": "low",
+ "auditMode": "direct"
+ }
+ },
+ "frameworks": {
+ "net8.0-windows7.0": {
+ "targetAlias": "net8.0-windows",
+ "dependencies": {
+ "Microsoft.Web.WebView2": {
+ "target": "Package",
+ "version": "[1.0.4022.49, )"
+ }
+ },
+ "imports": [
+ "net461",
+ "net462",
+ "net47",
+ "net471",
+ "net472",
+ "net48",
+ "net481"
+ ],
+ "assetTargetFallback": true,
+ "warn": true,
+ "frameworkReferences": {
+ "Microsoft.NETCore.App": {
+ "privateAssets": "all"
+ },
+ "Microsoft.WindowsDesktop.App.WPF": {
+ "privateAssets": "none"
+ }
+ },
+ "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.422/PortableRuntimeIdentifierGraph.json"
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/obj/WebView2Demo.csproj.nuget.g.props b/obj/WebView2Demo.csproj.nuget.g.props
new file mode 100644
index 0000000..c50d272
--- /dev/null
+++ b/obj/WebView2Demo.csproj.nuget.g.props
@@ -0,0 +1,18 @@
+
+
+
+ True
+ NuGet
+ $(MSBuildThisFileDirectory)project.assets.json
+ $(UserProfile)\.nuget\packages\
+ C:\Users\Cloud.Liu\.nuget\packages\
+ PackageReference
+ 6.11.2
+
+
+
+
+
+ C:\Users\Cloud.Liu\.nuget\packages\microsoft.web.webview2\1.0.4022.49
+
+
\ No newline at end of file
diff --git a/obj/WebView2Demo.csproj.nuget.g.targets b/obj/WebView2Demo.csproj.nuget.g.targets
new file mode 100644
index 0000000..37e59f4
--- /dev/null
+++ b/obj/WebView2Demo.csproj.nuget.g.targets
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/obj/project.assets.json b/obj/project.assets.json
new file mode 100644
index 0000000..d010efe
--- /dev/null
+++ b/obj/project.assets.json
@@ -0,0 +1,201 @@
+{
+ "version": 3,
+ "targets": {
+ "net8.0-windows7.0": {
+ "Microsoft.Web.WebView2/1.0.4022.49": {
+ "type": "package",
+ "build": {
+ "buildTransitive/Microsoft.Web.WebView2.targets": {}
+ },
+ "runtimeTargets": {
+ "runtimes/win-arm64/native/WebView2Loader.dll": {
+ "assetType": "native",
+ "rid": "win-arm64"
+ },
+ "runtimes/win-x64/native/WebView2Loader.dll": {
+ "assetType": "native",
+ "rid": "win-x64"
+ },
+ "runtimes/win-x86/native/WebView2Loader.dll": {
+ "assetType": "native",
+ "rid": "win-x86"
+ }
+ }
+ }
+ }
+ },
+ "libraries": {
+ "Microsoft.Web.WebView2/1.0.4022.49": {
+ "sha512": "Dwewh8bbbXoFiF2y0jT3MBEV5ZXZVA7FDbMl6DixUCCLQAoymLMxMwqibdBaY/eWCG/BBSAILUOFDIzJZ9lfNQ==",
+ "type": "package",
+ "path": "microsoft.web.webview2/1.0.4022.49",
+ "hasTools": true,
+ "files": [
+ ".nupkg.metadata",
+ ".signature.p7s",
+ "LICENSE.txt",
+ "NOTICE.txt",
+ "WebView2.idl",
+ "WebView2.tlb",
+ "build/Common.targets",
+ "build/Microsoft.Web.WebView2.targets",
+ "build/WebView2Rules.Project.xml",
+ "build/native/Microsoft.Web.WebView2.targets",
+ "build/native/arm64/WebView2Loader.dll",
+ "build/native/arm64/WebView2Loader.dll.lib",
+ "build/native/arm64/WebView2LoaderStatic.lib",
+ "build/native/include-winrt/WebView2Interop.h",
+ "build/native/include-winrt/WebView2Interop.idl",
+ "build/native/include-winrt/WebView2Interop.tlb",
+ "build/native/include/WebView2.h",
+ "build/native/include/WebView2EnvironmentOptions.h",
+ "build/native/x64/WebView2Loader.dll",
+ "build/native/x64/WebView2Loader.dll.lib",
+ "build/native/x64/WebView2LoaderStatic.lib",
+ "build/native/x86/WebView2Loader.dll",
+ "build/native/x86/WebView2Loader.dll.lib",
+ "build/native/x86/WebView2LoaderStatic.lib",
+ "build/wv2winrt.targets",
+ "buildTransitive/Microsoft.Web.WebView2.targets",
+ "lib/Microsoft.Web.WebView2.Core.winmd",
+ "lib/net462/Microsoft.Web.WebView2.Core.dll",
+ "lib/net462/Microsoft.Web.WebView2.Core.xml",
+ "lib/net462/Microsoft.Web.WebView2.WinForms.dll",
+ "lib/net462/Microsoft.Web.WebView2.WinForms.xml",
+ "lib/net462/Microsoft.Web.WebView2.Wpf.dll",
+ "lib/net462/Microsoft.Web.WebView2.Wpf.xml",
+ "lib_manual/net5.0-windows10.0.17763.0/Microsoft.Web.WebView2.Wpf.dll",
+ "lib_manual/net5.0-windows10.0.17763.0/Microsoft.Web.WebView2.Wpf.xml",
+ "lib_manual/net6.0-windows10.0.17763.0/Microsoft.Web.WebView2.Core.Projection.dll",
+ "lib_manual/net8.0-windows10.0.17763.0/Microsoft.Web.WebView2.Core.Projection.dll",
+ "lib_manual/netcoreapp3.0/Microsoft.Web.WebView2.Core.dll",
+ "lib_manual/netcoreapp3.0/Microsoft.Web.WebView2.Core.xml",
+ "lib_manual/netcoreapp3.0/Microsoft.Web.WebView2.WinForms.dll",
+ "lib_manual/netcoreapp3.0/Microsoft.Web.WebView2.WinForms.xml",
+ "lib_manual/netcoreapp3.0/Microsoft.Web.WebView2.Wpf.dll",
+ "lib_manual/netcoreapp3.0/Microsoft.Web.WebView2.Wpf.xml",
+ "microsoft.web.webview2.1.0.4022.49.nupkg.sha512",
+ "microsoft.web.webview2.nuspec",
+ "runtimes/win-arm64/native/WebView2Loader.dll",
+ "runtimes/win-arm64/native_uap/Microsoft.Web.WebView2.Core.dll",
+ "runtimes/win-x64/native/WebView2Loader.dll",
+ "runtimes/win-x64/native_uap/Microsoft.Web.WebView2.Core.dll",
+ "runtimes/win-x86/native/WebView2Loader.dll",
+ "runtimes/win-x86/native_uap/Microsoft.Web.WebView2.Core.dll",
+ "tools/VisualStudioToolsManifest.xml",
+ "tools/wv2winrt/Antlr3.Runtime.dll",
+ "tools/wv2winrt/Antlr4.StringTemplate.dll",
+ "tools/wv2winrt/System.Buffers.dll",
+ "tools/wv2winrt/System.CommandLine.DragonFruit.dll",
+ "tools/wv2winrt/System.CommandLine.Rendering.dll",
+ "tools/wv2winrt/System.CommandLine.dll",
+ "tools/wv2winrt/System.Memory.dll",
+ "tools/wv2winrt/System.Numerics.Vectors.dll",
+ "tools/wv2winrt/System.Runtime.CompilerServices.Unsafe.dll",
+ "tools/wv2winrt/codegen_util.dll",
+ "tools/wv2winrt/concrt140_app.dll",
+ "tools/wv2winrt/cs/System.CommandLine.resources.dll",
+ "tools/wv2winrt/de/System.CommandLine.resources.dll",
+ "tools/wv2winrt/es/System.CommandLine.resources.dll",
+ "tools/wv2winrt/fr/System.CommandLine.resources.dll",
+ "tools/wv2winrt/it/System.CommandLine.resources.dll",
+ "tools/wv2winrt/ja/System.CommandLine.resources.dll",
+ "tools/wv2winrt/ko/System.CommandLine.resources.dll",
+ "tools/wv2winrt/msvcp140_1_app.dll",
+ "tools/wv2winrt/msvcp140_2_app.dll",
+ "tools/wv2winrt/msvcp140_app.dll",
+ "tools/wv2winrt/pl/System.CommandLine.resources.dll",
+ "tools/wv2winrt/pt-BR/System.CommandLine.resources.dll",
+ "tools/wv2winrt/ru/System.CommandLine.resources.dll",
+ "tools/wv2winrt/tr/System.CommandLine.resources.dll",
+ "tools/wv2winrt/type_hierarchy.dll",
+ "tools/wv2winrt/vcamp140_app.dll",
+ "tools/wv2winrt/vccorlib140_app.dll",
+ "tools/wv2winrt/vcomp140_app.dll",
+ "tools/wv2winrt/vcruntime140_app.dll",
+ "tools/wv2winrt/winrt_winmd.dll",
+ "tools/wv2winrt/winrt_winmd.winmd",
+ "tools/wv2winrt/wv2winrt.exe",
+ "tools/wv2winrt/wv2winrt.exe.config",
+ "tools/wv2winrt/wv2winrt.xml",
+ "tools/wv2winrt/zh-Hans/System.CommandLine.resources.dll",
+ "tools/wv2winrt/zh-Hant/System.CommandLine.resources.dll"
+ ]
+ }
+ },
+ "projectFileDependencyGroups": {
+ "net8.0-windows7.0": [
+ "Microsoft.Web.WebView2 >= 1.0.4022.49"
+ ]
+ },
+ "packageFolders": {
+ "C:\\Users\\Cloud.Liu\\.nuget\\packages\\": {}
+ },
+ "project": {
+ "version": "1.0.0",
+ "restore": {
+ "projectUniqueName": "E:\\CSharp-Learning\\WebView2Demo\\WebView2Demo.csproj",
+ "projectName": "WebView2Demo",
+ "projectPath": "E:\\CSharp-Learning\\WebView2Demo\\WebView2Demo.csproj",
+ "packagesPath": "C:\\Users\\Cloud.Liu\\.nuget\\packages\\",
+ "outputPath": "E:\\CSharp-Learning\\WebView2Demo\\obj\\",
+ "projectStyle": "PackageReference",
+ "configFilePaths": [
+ "C:\\Users\\Cloud.Liu\\AppData\\Roaming\\NuGet\\NuGet.Config"
+ ],
+ "originalTargetFrameworks": [
+ "net8.0-windows"
+ ],
+ "sources": {
+ "https://api.nuget.org/v3/index.json": {}
+ },
+ "frameworks": {
+ "net8.0-windows7.0": {
+ "targetAlias": "net8.0-windows",
+ "projectReferences": {}
+ }
+ },
+ "warningProperties": {
+ "warnAsError": [
+ "NU1605"
+ ]
+ },
+ "restoreAuditProperties": {
+ "enableAudit": "true",
+ "auditLevel": "low",
+ "auditMode": "direct"
+ }
+ },
+ "frameworks": {
+ "net8.0-windows7.0": {
+ "targetAlias": "net8.0-windows",
+ "dependencies": {
+ "Microsoft.Web.WebView2": {
+ "target": "Package",
+ "version": "[1.0.4022.49, )"
+ }
+ },
+ "imports": [
+ "net461",
+ "net462",
+ "net47",
+ "net471",
+ "net472",
+ "net48",
+ "net481"
+ ],
+ "assetTargetFallback": true,
+ "warn": true,
+ "frameworkReferences": {
+ "Microsoft.NETCore.App": {
+ "privateAssets": "all"
+ },
+ "Microsoft.WindowsDesktop.App.WPF": {
+ "privateAssets": "none"
+ }
+ },
+ "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.422/PortableRuntimeIdentifierGraph.json"
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/obj/project.nuget.cache b/obj/project.nuget.cache
new file mode 100644
index 0000000..ff60010
--- /dev/null
+++ b/obj/project.nuget.cache
@@ -0,0 +1,10 @@
+{
+ "version": 2,
+ "dgSpecHash": "X6CdjKRt8co=",
+ "success": true,
+ "projectFilePath": "E:\\CSharp-Learning\\WebView2Demo\\WebView2Demo.csproj",
+ "expectedPackageFiles": [
+ "C:\\Users\\Cloud.Liu\\.nuget\\packages\\microsoft.web.webview2\\1.0.4022.49\\microsoft.web.webview2.1.0.4022.49.nupkg.sha512"
+ ],
+ "logs": []
+}
\ No newline at end of file