From dccef49a6d247258d00018abbd0961117e8f89d2 Mon Sep 17 00:00:00 2001
From: Rosmontis_Cloud <2451830085@qq.com>
Date: Wed, 1 Jul 2026 15:42:23 +0800
Subject: [PATCH] Initial commit: WebView2 demo project
---
App.xaml | 9 +
App.xaml.cs | 13 ++
AssemblyInfo.cs | 10 +
MainWindow.xaml | 22 ++
MainWindow.xaml.cs | 44 ++++
WebView2Demo.csproj | 15 ++
...CoreApp,Version=v8.0.AssemblyAttributes.cs | 4 +
obj/Debug/net8.0-windows/App.g.cs | 70 ++++++
obj/Debug/net8.0-windows/MainWindow.baml | Bin 0 -> 1661 bytes
obj/Debug/net8.0-windows/MainWindow.g.cs | 97 +++++++++
.../WebView2Demo.AssemblyInfo.cs | 24 +++
.../WebView2Demo.AssemblyInfoInputs.cache | 1 +
....GeneratedMSBuildEditorConfig.editorconfig | 13 ++
.../WebView2Demo.GlobalUsings.g.cs | 6 +
.../net8.0-windows/WebView2Demo.assets.cache | Bin 0 -> 1477 bytes
...ebView2Demo.csproj.AssemblyReference.cache | Bin 0 -> 4253 bytes
...ebView2Demo.csproj.CoreCompileInputs.cache | 1 +
.../WebView2Demo.csproj.FileListAbsolute.txt | 11 +
.../net8.0-windows/WebView2Demo.g.resources | Bin 0 -> 1889 bytes
.../net8.0-windows/WebView2Demo_Content.g.cs | 14 ++
.../WebView2Demo_MarkupCompile.cache | 20 ++
obj/WebView2Demo.csproj.nuget.dgspec.json | 75 +++++++
obj/WebView2Demo.csproj.nuget.g.props | 18 ++
obj/WebView2Demo.csproj.nuget.g.targets | 6 +
obj/project.assets.json | 201 ++++++++++++++++++
obj/project.nuget.cache | 10 +
26 files changed, 684 insertions(+)
create mode 100644 App.xaml
create mode 100644 App.xaml.cs
create mode 100644 AssemblyInfo.cs
create mode 100644 MainWindow.xaml
create mode 100644 MainWindow.xaml.cs
create mode 100644 WebView2Demo.csproj
create mode 100644 obj/Debug/net8.0-windows/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs
create mode 100644 obj/Debug/net8.0-windows/App.g.cs
create mode 100644 obj/Debug/net8.0-windows/MainWindow.baml
create mode 100644 obj/Debug/net8.0-windows/MainWindow.g.cs
create mode 100644 obj/Debug/net8.0-windows/WebView2Demo.AssemblyInfo.cs
create mode 100644 obj/Debug/net8.0-windows/WebView2Demo.AssemblyInfoInputs.cache
create mode 100644 obj/Debug/net8.0-windows/WebView2Demo.GeneratedMSBuildEditorConfig.editorconfig
create mode 100644 obj/Debug/net8.0-windows/WebView2Demo.GlobalUsings.g.cs
create mode 100644 obj/Debug/net8.0-windows/WebView2Demo.assets.cache
create mode 100644 obj/Debug/net8.0-windows/WebView2Demo.csproj.AssemblyReference.cache
create mode 100644 obj/Debug/net8.0-windows/WebView2Demo.csproj.CoreCompileInputs.cache
create mode 100644 obj/Debug/net8.0-windows/WebView2Demo.csproj.FileListAbsolute.txt
create mode 100644 obj/Debug/net8.0-windows/WebView2Demo.g.resources
create mode 100644 obj/Debug/net8.0-windows/WebView2Demo_Content.g.cs
create mode 100644 obj/Debug/net8.0-windows/WebView2Demo_MarkupCompile.cache
create mode 100644 obj/WebView2Demo.csproj.nuget.dgspec.json
create mode 100644 obj/WebView2Demo.csproj.nuget.g.props
create mode 100644 obj/WebView2Demo.csproj.nuget.g.targets
create mode 100644 obj/project.assets.json
create mode 100644 obj/project.nuget.cache
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 0000000000000000000000000000000000000000..12fc0aa188f755d247a82cb009b2d9cfcf1758ab
GIT binary patch
literal 1661
zcmb_d&1(}u6o32C^ux6HQ5CeM0arv!Hk)K8rj?+!>OpOhR;-5}oZU=x>F!S4-I(;|
zQM{{o5L5(35WI+Z@~ED~KS1!((q6sC^-Y`9AXHJh!^`Zvee-+o_vXDx5&))Q4kqC=
z&KGfYZBrzO@sUOt0G)R1fQP&q>GRAIa>Zedygpy6rc+l~5IWp1=X66ijeK4=$J42)
zx*OF4R`yvv3aFb-U8-BIV_#rPm-!;|%XwO&mRT}Pvyv|wId*XIqU{D5pL#5;QJYO{
z?ePQ+L*`lTQh95e16zLrAPMByk211Tf@Fux8RqfPQ2+_{cdPVi>iF}HU*Qb}w-Bkb
zcV33MO92a+AJGW;Pw{~LN=6Bjf#dIqDCDeap+t(bQYf0NKt>i6xY~_-F2I~Lc(Aw~
z;7kQNw-iRq(>FMU`V{x0fV-hS>sS`||HF%Q{5T~xDdxrtCNoOoBeOj)(}tg<;dW$Y
z_#BMih@#p=HXGVEm`6k1+bl_&d)bELSDV?qVHC4X>bcok*U6|Lg90k_0FgVVH=BT&
zb|S8#{Wh>3o{*a9e~ED;tb_V}8?ft32>%6zV*Vi)`M3
z3L0jFF+o{>#&$?}i74s}_N_K3L2o-+j8nkxM;RNG(F786ydKz0J1E0maa19eccanJ
zE$US2I-beN78z`BQI+Q{AUkm-;?t5J)rYyjgqn6eAVZ8?f!1<(L?Wfp6$V5`PTZ
tz}HyKkus^1_hrgoW<)1G2-o5|;
literal 0
HcmV?d00001
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 0000000000000000000000000000000000000000..bea34be4ecd346c2ae5180ec2ba38fa9d7d77c96
GIT binary patch
literal 1477
zcmcJO%Wl(95QYP|O+#sE6G%(Bite~LA&R0Dv8fWMtcECROWAni+LLmGFOhwm%aRQX
zmI#S8?2vc|HoOB*fmpHUpSm__o0fp+kv_>j=bxE>>^ZIVwbcu$RO(H$|LW_?`+Wc1
zw|4fs^7iNY-A6w@z5ZAfpXa`WAME9G5dC4D!Fm3vFnurZ+ERT^JIuDAUWp_5`1a`I
z!UMIamW!p5T3(r8Ef&kq0xqlo-k$_%FaZ%*=lGHnf
z`O?^>K!@zW;+*~%aZb`q56yrsH=_@^)&0qry$Ca-Okcr1n_dEJ`YJdT
z)78q~f9Y#5Gs^UJ?6c_`fKA^7@w$ZvrD-^H%xtH(F?_;vr-#NOrv;kRv4tt5J*ZP#
zxMWQ{G3_wV69e4S
zZ`|lwy8qXywl3l9ro(@{du!(LHRu01SpQpSa`%xpzj^E1sx3>CZ--7-x2?Q+>-33+
zpJRW0d3*fxb4@3YwQM|d{Q0BF)}LadI|n{K@ZpJ9#|zJFnEvzBg?FwsjosBv~?EQxn(C~hm3ZJDx~o+(mEqz
zOw2@M;b=4)=?L?PEXM(|d5#3RRyD~9kt1Ur^gnYOizw}MLd@7+J|y%tNAJ8|>?TMn
zQU%jODohw+Ue<;x!kg?G7-{^fZbvCzje}PajvudjmlsX5fMASXT`o$Jy*=E{Z|A@f
z@c(G0U)J_uLp5i0^W%HVT-`jiKn8hp9$xJX-ec$YQ$LSVMa*V>udP|K>LeJgFldTXWD9!E)ZfWs@_Cn$PEjQj9{K=;aI*Ma0hYSlDf%&hV!#|Ey6>G)7my;`B
zyzIuqTgM_7w0?bX)@Od7YH)pK?LyU7AAEQ%MqGH)
z_tRZgQ2EYxmq%!N__T7X-Rd3#nWRFCRC;?1QAK%d41-Ew`75!$a~=D(QWmVh5SsO_
zq3jk-6d3G*I$(3j@wq0LN_0~Zf;u;@Qj+7mceY9Ti-Ns4PkLMT3qp%qhrFustVXN@
z>nUX9WQmwyB|-M9$_=Gw$1by#Ao?-Bw{cgpf*)tElKL2TQ0TIZJLn>QeiamRIT1^5
z8hRH-s-YT|S^s_bN&4h3t46AB=aTxA}31hKW&H-N@3fODiiqpq+r|^
L_CSyPtOx!JdUkr<
literal 0
HcmV?d00001
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 0000000000000000000000000000000000000000..dd434a253582b42ec1fdef5407a1775eec1145d1
GIT binary patch
literal 1889
zcmb^yO>Y}T^m%vVd^Cv)O{qi^Vw6P))n2dd9oI=^L6g!0G*J{+O%FYEc0H!6?C!X`
zYwR455GTZq15_N403m^pkhmbk1#VC{fcgUvTvDYcq~6W)o@2XKtCSCAX5Y@t+c)p~
zz5V6qKfg->z`F=uZ8wUAZ)}N3wn9fl!`+tPbrEJWe&oo|bM0*AiU=cD235;2X=XEP
zEiZ0`q8f-+9C9z4*=*UK>%1yzK
zQluP>&GQ%Nnf>9dGj#kN;Taz|xDY_Q_pXD)odGsteej41o_!+?FpZmasKF|n$Mq7P
zt`8vv369jf0O0Gc6Us<7Vq;s_1Xo)Z{t-JmYpDqdma^xoZV1!|k2h(r+c7~{PrL-D{Fm46%jQo(MNDy+=wrLrYT
zZ2p=GS4a6?4ACcT8SWefbD;t6XV-yEk+CL&IFue{v}@Zk_#aXp&fod1G1%y{U**wJ
zcxCP)EZ>OZ=1M*vIX8sQBf}r2q$B-&+YK6>e9<(^`40EJd~+l+8YrNG24ldeY5p;a7Aw!?Xks-s^@;(oDTFo4~u!&i0yPg~G_S`tab8Nu#n%aK7c%*eY
zB4tpNi`bJEx-fRxjXj}12e5ee)<^rFzq$9$_j_O7+WYpsOfEAh&xzKmDuxJfif;9~0GLbhPl8p50IO6=i(M^PoCKYjXkl3tZ@Ed6RyK8cw0>=y^d6)c+i#GORx
zS^hG9B-5V2brwPWDS;f-!BAoS$@|Il-rL{YegCU_AAf!C!%t9CqCQ~T_gO*EOi%rR
zQd0C|(5HS&v;xbrn_YIIPpwb
+// 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