Initial commit: WebView2 demo project
This commit is contained in:
commit
dccef49a6d
9
App.xaml
Normal file
9
App.xaml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<Application x:Class="WebView2Demo.App"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="clr-namespace:WebView2Demo"
|
||||
StartupUri="MainWindow.xaml">
|
||||
<Application.Resources>
|
||||
|
||||
</Application.Resources>
|
||||
</Application>
|
||||
13
App.xaml.cs
Normal file
13
App.xaml.cs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
using System.Configuration;
|
||||
using System.Data;
|
||||
using System.Windows;
|
||||
|
||||
namespace WebView2Demo;
|
||||
|
||||
/// <summary>
|
||||
/// Interaction logic for App.xaml
|
||||
/// </summary>
|
||||
public partial class App : Application
|
||||
{
|
||||
}
|
||||
|
||||
10
AssemblyInfo.cs
Normal file
10
AssemblyInfo.cs
Normal file
|
|
@ -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)
|
||||
)]
|
||||
22
MainWindow.xaml
Normal file
22
MainWindow.xaml
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<Window x:Class="WebView2Demo.MainWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:wv2="clr-namespace:Microsoft.Web.WebView2.Wpf;assembly=Microsoft.Web.WebView2.Wpf"
|
||||
mc:Ignorable="d"
|
||||
Title="无言势字幕 - WebView2 Demo" Height="500" Width="450"
|
||||
Background="#0a0a0a">
|
||||
<Grid>
|
||||
<!-- WebView2 控件 -->
|
||||
<wv2:WebView2 x:Name="WebView"
|
||||
Source="https://www.baidu.com"/>
|
||||
|
||||
<!-- 底部按钮栏 -->
|
||||
<StackPanel VerticalAlignment="Bottom" Background="#141414" Height="50">
|
||||
<Button Content="刷新页面" Click="RefreshPage"
|
||||
Background="#1e1e1e" Foreground="White"
|
||||
Padding="15,5" Margin="10"/>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</Window>
|
||||
44
MainWindow.xaml.cs
Normal file
44
MainWindow.xaml.cs
Normal file
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
15
WebView2Demo.csproj
Normal file
15
WebView2Demo.csproj
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<TargetFramework>net8.0-windows</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<UseWPF>true</UseWPF>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Web.WebView2" Version="1.0.4022.49" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")]
|
||||
70
obj/Debug/net8.0-windows/App.g.cs
Normal file
70
obj/Debug/net8.0-windows/App.g.cs
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
#pragma checksum "..\..\..\App.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "F0F542B2B3024CA65F35885C9EA866081FA55664"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
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 {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// App
|
||||
/// </summary>
|
||||
public partial class App : System.Windows.Application {
|
||||
|
||||
/// <summary>
|
||||
/// InitializeComponent
|
||||
/// </summary>
|
||||
[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
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Application Entry Point.
|
||||
/// </summary>
|
||||
[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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
BIN
obj/Debug/net8.0-windows/MainWindow.baml
Normal file
BIN
obj/Debug/net8.0-windows/MainWindow.baml
Normal file
Binary file not shown.
97
obj/Debug/net8.0-windows/MainWindow.g.cs
Normal file
97
obj/Debug/net8.0-windows/MainWindow.g.cs
Normal file
|
|
@ -0,0 +1,97 @@
|
|||
#pragma checksum "..\..\..\MainWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "69BCCFAD6A1F84FCC9DF73D3B82763158668A03B"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
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 {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// MainWindow
|
||||
/// </summary>
|
||||
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;
|
||||
|
||||
/// <summary>
|
||||
/// InitializeComponent
|
||||
/// </summary>
|
||||
[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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
24
obj/Debug/net8.0-windows/WebView2Demo.AssemblyInfo.cs
Normal file
24
obj/Debug/net8.0-windows/WebView2Demo.AssemblyInfo.cs
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
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 类生成。
|
||||
|
||||
|
|
@ -0,0 +1 @@
|
|||
6f678735046a50135cfc693bf479a7211ebf0a20adab6750f610c0a87155c424
|
||||
|
|
@ -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 =
|
||||
6
obj/Debug/net8.0-windows/WebView2Demo.GlobalUsings.g.cs
Normal file
6
obj/Debug/net8.0-windows/WebView2Demo.GlobalUsings.g.cs
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
// <auto-generated/>
|
||||
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;
|
||||
BIN
obj/Debug/net8.0-windows/WebView2Demo.assets.cache
Normal file
BIN
obj/Debug/net8.0-windows/WebView2Demo.assets.cache
Normal file
Binary file not shown.
Binary file not shown.
|
|
@ -0,0 +1 @@
|
|||
2b4238706a52336505e15e3066d412e1db81f490fe0977c416bc2c1b71aaa2b9
|
||||
|
|
@ -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
|
||||
BIN
obj/Debug/net8.0-windows/WebView2Demo.g.resources
Normal file
BIN
obj/Debug/net8.0-windows/WebView2Demo.g.resources
Normal file
Binary file not shown.
14
obj/Debug/net8.0-windows/WebView2Demo_Content.g.cs
Normal file
14
obj/Debug/net8.0-windows/WebView2Demo_Content.g.cs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
[assembly: System.Windows.Resources.AssemblyAssociatedContentFileAttribute("webview2loader.dll")]
|
||||
[assembly: System.Windows.Resources.AssemblyAssociatedContentFileAttribute("webview2loader.dll")]
|
||||
[assembly: System.Windows.Resources.AssemblyAssociatedContentFileAttribute("webview2loader.dll")]
|
||||
|
||||
|
||||
20
obj/Debug/net8.0-windows/WebView2Demo_MarkupCompile.cache
Normal file
20
obj/Debug/net8.0-windows/WebView2Demo_MarkupCompile.cache
Normal file
|
|
@ -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
|
||||
|
||||
75
obj/WebView2Demo.csproj.nuget.dgspec.json
Normal file
75
obj/WebView2Demo.csproj.nuget.dgspec.json
Normal file
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
18
obj/WebView2Demo.csproj.nuget.g.props
Normal file
18
obj/WebView2Demo.csproj.nuget.g.props
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
|
||||
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
||||
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
||||
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
|
||||
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\Cloud.Liu\.nuget\packages\</NuGetPackageFolders>
|
||||
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
||||
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.11.2</NuGetToolVersion>
|
||||
</PropertyGroup>
|
||||
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<SourceRoot Include="C:\Users\Cloud.Liu\.nuget\packages\" />
|
||||
</ItemGroup>
|
||||
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<PkgMicrosoft_Web_WebView2 Condition=" '$(PkgMicrosoft_Web_WebView2)' == '' ">C:\Users\Cloud.Liu\.nuget\packages\microsoft.web.webview2\1.0.4022.49</PkgMicrosoft_Web_WebView2>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
6
obj/WebView2Demo.csproj.nuget.g.targets
Normal file
6
obj/WebView2Demo.csproj.nuget.g.targets
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<Import Project="$(NuGetPackageRoot)microsoft.web.webview2\1.0.4022.49\buildTransitive\Microsoft.Web.WebView2.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.web.webview2\1.0.4022.49\buildTransitive\Microsoft.Web.WebView2.targets')" />
|
||||
</ImportGroup>
|
||||
</Project>
|
||||
201
obj/project.assets.json
Normal file
201
obj/project.assets.json
Normal file
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
10
obj/project.nuget.cache
Normal file
10
obj/project.nuget.cache
Normal file
|
|
@ -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": []
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user