修改库名为 YwxAppWpfBarrage
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:danmu="clr-namespace:YwxAppWpfDanMu.Controls;assembly=YwxAppWpfDanMu"
|
||||
xmlns:danmu="clr-namespace:YwxAppWpfBarrage.Controls;assembly=YwxAppWpfBarrage"
|
||||
mc:Ignorable="d"
|
||||
Title="弹幕演示" Height="450" Width="800">
|
||||
<Grid>
|
||||
@@ -16,7 +16,7 @@
|
||||
<RowDefinition Height="7*"/>
|
||||
<RowDefinition Height="3*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<danmu:DanMuControl x:Name="DanMuControl" Grid.Row="0" LineCount="10" />
|
||||
<danmu:BarrageControl x:Name="BarrageControl" Grid.Row="0" LineCount="10" />
|
||||
</Grid>
|
||||
<StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center">
|
||||
<Button Content="暂停" Width="80" Margin="5" Click="PauseButton_Click"/>
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
using System.Windows;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using YwxAppWpfDanMu;
|
||||
using YwxAppWpfDanMu.Controls;
|
||||
using YwxAppWpfDanMu.Models;
|
||||
using YwxAppWpfBarrage;
|
||||
using YwxAppWpfBarrage.Controls;
|
||||
using YwxAppWpfBarrage.Models;
|
||||
|
||||
namespace WpfApp1;
|
||||
|
||||
@@ -19,61 +19,61 @@ public partial class MainWindow : Window
|
||||
InitializeComponent();
|
||||
|
||||
// 订阅事件
|
||||
DanMuControl.DanMuClick += OnDanMuClick;
|
||||
DanMuControl.DanMuAdded += OnDanMuAdded;
|
||||
DanMuControl.DanMuRemoved += OnDanMuRemoved;
|
||||
BarrageControl.BarrageClick += OnBarrageClick;
|
||||
BarrageControl.BarrageAdded += OnBarrageAdded;
|
||||
BarrageControl.BarrageRemoved += OnBarrageRemoved;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void OnDanMuClick(object sender, DanMuEventArgs e)
|
||||
private void OnBarrageClick(object sender, BarrageEventArgs e)
|
||||
{
|
||||
MessageBox.Show($"点击了弹幕: {e.Message.Content}");
|
||||
}
|
||||
|
||||
private void OnDanMuAdded(object sender, DanMuEventArgs e)
|
||||
private void OnBarrageAdded(object sender, BarrageEventArgs e)
|
||||
{
|
||||
// 可以在这里处理弹幕添加事件
|
||||
}
|
||||
|
||||
private void OnDanMuRemoved(object sender, DanMuEventArgs e)
|
||||
private void OnBarrageRemoved(object sender, BarrageEventArgs e)
|
||||
{
|
||||
// 可以在这里处理弹幕移除事件
|
||||
}
|
||||
|
||||
private void PauseButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
DanMuControl.IsPaused = true;
|
||||
BarrageControl.IsPaused = true;
|
||||
}
|
||||
|
||||
private void ResumeButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
DanMuControl.IsPaused = false;
|
||||
BarrageControl.IsPaused = false;
|
||||
}
|
||||
|
||||
private void ClearButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
DanMuControl.ClearAll();
|
||||
BarrageControl.ClearAll();
|
||||
}
|
||||
|
||||
private void Button_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
|
||||
// 方法1: 添加单条弹幕
|
||||
AddSingleTestDanMu();
|
||||
AddSingleTestBarrage();
|
||||
|
||||
// 方法2: 添加多条弹幕(批量)
|
||||
// AddMultipleTestDanMu(5);
|
||||
// AddMultipleTestBarrage(5);
|
||||
}
|
||||
|
||||
|
||||
// 添加单条测试弹幕
|
||||
private void AddSingleTestDanMu()
|
||||
private void AddSingleTestBarrage()
|
||||
{
|
||||
var colors = new[] { Colors.Red, Colors.Green, Colors.Blue, Colors.Yellow, Colors.White, Colors.Cyan, Colors.Magenta };
|
||||
var fonts = new[] { "Microsoft YaHei", "SimSun", "Arial", "Segoe UI" };
|
||||
var message = new DanMuMessage
|
||||
var message = new BarrageMessage
|
||||
{
|
||||
// Content = $"这是单条测试弹幕 {DateTime.Now:HH:mm:ss}",
|
||||
Content = $"这是单条测试弹幕 ",
|
||||
@@ -85,19 +85,19 @@ public partial class MainWindow : Window
|
||||
// Opacity = 0.7 + _random.NextDouble() * 0.3,
|
||||
AvatarUrl = "https://unpkg.com/outeres@0.0.10/demo/avatar/1.jpg" // 使用占位图作为头像
|
||||
};
|
||||
DanMuControl.AddDanMu(message);
|
||||
BarrageControl.AddBarrage(message);
|
||||
}
|
||||
|
||||
// 添加多条测试弹幕
|
||||
private void AddMultipleTestDanMu(int count)
|
||||
private void AddMultipleTestBarrage(int count)
|
||||
{
|
||||
var messages = new List<DanMuMessage>();
|
||||
var messages = new List<BarrageMessage>();
|
||||
var colors = new[] { Colors.Red, Colors.Green, Colors.Blue, Colors.Yellow, Colors.White, Colors.Cyan, Colors.Magenta };
|
||||
var fonts = new[] { "Microsoft YaHei", "SimSun", "Arial", "Segoe UI" };
|
||||
|
||||
for (int i = 0; i < count; i++)
|
||||
{
|
||||
messages.Add(new DanMuMessage
|
||||
messages.Add(new BarrageMessage
|
||||
{
|
||||
Content = $"批量测试弹幕 {i + 1} - {DateTime.Now:HH:mm:ss}",
|
||||
Color = colors[_random.Next(colors.Length)],
|
||||
@@ -110,6 +110,6 @@ public partial class MainWindow : Window
|
||||
});
|
||||
}
|
||||
|
||||
DanMuControl.AddDanMuBatch(messages);
|
||||
BarrageControl.AddBarrageBatch(messages);
|
||||
}
|
||||
}
|
||||
@@ -20,7 +20,7 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\YwxAppWpfDanMu\YwxAppWpfDanMu.csproj" />
|
||||
<ProjectReference Include="..\YwxAppWpfBarrage\YwxAppWpfBarrage.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -61,7 +61,7 @@ namespace WpfApp1 {
|
||||
return;
|
||||
}
|
||||
_contentLoaded = true;
|
||||
System.Uri resourceLocater = new System.Uri("/WpfApp1;component/mainwindow.xaml", System.UriKind.Relative);
|
||||
System.Uri resourceLocater = new System.Uri("/WpfApp1;V1.0.0.0;component/mainwindow.xaml", System.UriKind.Relative);
|
||||
|
||||
#line 1 "..\..\..\MainWindow.xaml"
|
||||
System.Windows.Application.LoadComponent(this, resourceLocater);
|
||||
|
||||
25
WpfApp1/obj/Debug/net8.0-windows/WpfApp1.AssemblyInfo.cs
Normal file
25
WpfApp1/obj/Debug/net8.0-windows/WpfApp1.AssemblyInfo.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("WpfApp1")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+07479c8c6b5d1bc1a226e3f92169457cefc591c0")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("WpfApp1")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("WpfApp1")]
|
||||
[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 @@
|
||||
5870e39427d95ecaf95f3e7f0d2696bd9ded97099c3d61bcee307afeed84777f
|
||||
@@ -0,0 +1,16 @@
|
||||
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 = WpfApp1
|
||||
build_property.ProjectDir = D:\repos\YwxAppWpfBarrage\WpfApp1\
|
||||
build_property.EnableComHosting =
|
||||
build_property.EnableGeneratedComInterfaceComImportInterop =
|
||||
build_property.CsWinRTUseWindowsUIXamlProjections = false
|
||||
build_property.EffectiveAnalysisLevelStyle = 8.0
|
||||
build_property.EnableCodeStyleSeverity =
|
||||
Binary file not shown.
@@ -1,20 +0,0 @@
|
||||
WpfApp1
|
||||
1.0.0.0
|
||||
|
||||
winexe
|
||||
C#
|
||||
.cs
|
||||
D:\repos\YwxAppWpfDanMu\WpfApp1\obj\Debug\net8.0-windows\
|
||||
WpfApp1
|
||||
none
|
||||
false
|
||||
TRACE;DEBUG;NET;NET8_0;NETCOREAPP;WINDOWS;WINDOWS7_0;NET5_0_OR_GREATER;NET6_0_OR_GREATER;NET7_0_OR_GREATER;NET8_0_OR_GREATER;NETCOREAPP3_0_OR_GREATER;NETCOREAPP3_1_OR_GREATER;WINDOWS7_0_OR_GREATER
|
||||
D:\repos\YwxAppWpfDanMu\WpfApp1\App.xaml
|
||||
11407045341
|
||||
|
||||
6-294469655
|
||||
1991235962195
|
||||
MainWindow.xaml;
|
||||
|
||||
False
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")]
|
||||
71
WpfApp1/obj/Release/net8.0-windows/App.g.i.cs
Normal file
71
WpfApp1/obj/Release/net8.0-windows/App.g.i.cs
Normal file
@@ -0,0 +1,71 @@
|
||||
#pragma checksum "..\..\..\App.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "DCC59813AB95D23CF72F07367E2D9621042BF6D9"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </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 WpfApp1;
|
||||
|
||||
|
||||
namespace WpfApp1 {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// App
|
||||
/// </summary>
|
||||
public partial class App : System.Windows.Application {
|
||||
|
||||
/// <summary>
|
||||
/// InitializeComponent
|
||||
/// </summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "9.0.3.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", "9.0.3.0")]
|
||||
public static void Main() {
|
||||
WpfApp1.App app = new WpfApp1.App();
|
||||
app.InitializeComponent();
|
||||
app.Run();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
25
WpfApp1/obj/Release/net8.0-windows/WpfApp1.AssemblyInfo.cs
Normal file
25
WpfApp1/obj/Release/net8.0-windows/WpfApp1.AssemblyInfo.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("WpfApp1")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+07479c8c6b5d1bc1a226e3f92169457cefc591c0")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("WpfApp1")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("WpfApp1")]
|
||||
[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 @@
|
||||
29dbf76db50ae405a4c1163e544ff28dfe0654e089379128e7499a0c5aa0a08b
|
||||
@@ -0,0 +1,16 @@
|
||||
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 = WpfApp1
|
||||
build_property.ProjectDir = D:\repos\YwxAppWpfDanMu\WpfApp1\
|
||||
build_property.EnableComHosting =
|
||||
build_property.EnableGeneratedComInterfaceComImportInterop =
|
||||
build_property.CsWinRTUseWindowsUIXamlProjections = false
|
||||
build_property.EffectiveAnalysisLevelStyle = 8.0
|
||||
build_property.EnableCodeStyleSeverity =
|
||||
@@ -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
WpfApp1/obj/Release/net8.0-windows/WpfApp1.assets.cache
Normal file
BIN
WpfApp1/obj/Release/net8.0-windows/WpfApp1.assets.cache
Normal file
Binary file not shown.
@@ -1,17 +1,17 @@
|
||||
{
|
||||
"format": 1,
|
||||
"restore": {
|
||||
"D:\\repos\\YwxAppWpfDanMu\\WpfApp1\\WpfApp1.csproj": {}
|
||||
"D:\\repos\\YwxAppWpfBarrage\\WpfApp1\\WpfApp1.csproj": {}
|
||||
},
|
||||
"projects": {
|
||||
"D:\\repos\\YwxAppWpfDanMu\\WpfApp1\\WpfApp1.csproj": {
|
||||
"D:\\repos\\YwxAppWpfBarrage\\WpfApp1\\WpfApp1.csproj": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "D:\\repos\\YwxAppWpfDanMu\\WpfApp1\\WpfApp1.csproj",
|
||||
"projectUniqueName": "D:\\repos\\YwxAppWpfBarrage\\WpfApp1\\WpfApp1.csproj",
|
||||
"projectName": "WpfApp1",
|
||||
"projectPath": "D:\\repos\\YwxAppWpfDanMu\\WpfApp1\\WpfApp1.csproj",
|
||||
"projectPath": "D:\\repos\\YwxAppWpfBarrage\\WpfApp1\\WpfApp1.csproj",
|
||||
"packagesPath": "C:\\Users\\shiy7\\.nuget\\packages\\",
|
||||
"outputPath": "D:\\repos\\YwxAppWpfDanMu\\WpfApp1\\obj\\",
|
||||
"outputPath": "D:\\repos\\YwxAppWpfBarrage\\WpfApp1\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"fallbackFolders": [
|
||||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
||||
@@ -32,8 +32,8 @@
|
||||
"net8.0-windows7.0": {
|
||||
"targetAlias": "net8.0-windows",
|
||||
"projectReferences": {
|
||||
"D:\\repos\\YwxAppWpfDanMu\\YwxAppWpfDanMu\\YwxAppWpfDanMu.csproj": {
|
||||
"projectPath": "D:\\repos\\YwxAppWpfDanMu\\YwxAppWpfDanMu\\YwxAppWpfDanMu.csproj"
|
||||
"D:\\repos\\YwxAppWpfBarrage\\YwxAppWpfBarrage\\YwxAppWpfBarrage.csproj": {
|
||||
"projectPath": "D:\\repos\\YwxAppWpfBarrage\\YwxAppWpfBarrage\\YwxAppWpfBarrage.csproj"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -75,74 +75,6 @@
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.201/PortableRuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"D:\\repos\\YwxAppWpfDanMu\\YwxAppWpfDanMu\\YwxAppWpfDanMu.csproj": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "D:\\repos\\YwxAppWpfDanMu\\YwxAppWpfDanMu\\YwxAppWpfDanMu.csproj",
|
||||
"projectName": "YwxAppWpfDanMu",
|
||||
"projectPath": "D:\\repos\\YwxAppWpfDanMu\\YwxAppWpfDanMu\\YwxAppWpfDanMu.csproj",
|
||||
"packagesPath": "C:\\Users\\shiy7\\.nuget\\packages\\",
|
||||
"outputPath": "D:\\repos\\YwxAppWpfDanMu\\YwxAppWpfDanMu\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"fallbackFolders": [
|
||||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
||||
],
|
||||
"configFilePaths": [
|
||||
"C:\\Users\\shiy7\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
||||
],
|
||||
"originalTargetFrameworks": [
|
||||
"net8.0-windows"
|
||||
],
|
||||
"sources": {
|
||||
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
||||
"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"
|
||||
},
|
||||
"SdkAnalysisLevel": "9.0.200"
|
||||
},
|
||||
"frameworks": {
|
||||
"net8.0-windows7.0": {
|
||||
"targetAlias": "net8.0-windows",
|
||||
"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\\9.0.201/PortableRuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
<?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>
|
||||
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">False</RestoreSuccess>
|
||||
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
||||
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
||||
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
|
||||
|
||||
@@ -1,32 +1,12 @@
|
||||
{
|
||||
"version": 3,
|
||||
"targets": {
|
||||
"net8.0-windows7.0": {
|
||||
"YwxAppWpfDanMu/1.0.0": {
|
||||
"type": "project",
|
||||
"framework": ".NETCoreApp,Version=v8.0",
|
||||
"compile": {
|
||||
"bin/placeholder/YwxAppWpfDanMu.dll": {}
|
||||
},
|
||||
"runtime": {
|
||||
"bin/placeholder/YwxAppWpfDanMu.dll": {}
|
||||
},
|
||||
"frameworkReferences": [
|
||||
"Microsoft.WindowsDesktop.App.WPF"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"YwxAppWpfDanMu/1.0.0": {
|
||||
"type": "project",
|
||||
"path": "../YwxAppWpfDanMu/YwxAppWpfDanMu.csproj",
|
||||
"msbuildProject": "../YwxAppWpfDanMu/YwxAppWpfDanMu.csproj"
|
||||
}
|
||||
"net8.0-windows7.0": {}
|
||||
},
|
||||
"libraries": {},
|
||||
"projectFileDependencyGroups": {
|
||||
"net8.0-windows7.0": [
|
||||
"YwxAppWpfDanMu >= 1.0.0"
|
||||
"D:\\repos\\YwxAppWpfBarrage\\YwxAppWpfBarrage\\YwxAppWpfBarrage.csproj"
|
||||
]
|
||||
},
|
||||
"packageFolders": {
|
||||
@@ -36,11 +16,11 @@
|
||||
"project": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "D:\\repos\\YwxAppWpfDanMu\\WpfApp1\\WpfApp1.csproj",
|
||||
"projectUniqueName": "D:\\repos\\YwxAppWpfBarrage\\WpfApp1\\WpfApp1.csproj",
|
||||
"projectName": "WpfApp1",
|
||||
"projectPath": "D:\\repos\\YwxAppWpfDanMu\\WpfApp1\\WpfApp1.csproj",
|
||||
"projectPath": "D:\\repos\\YwxAppWpfBarrage\\WpfApp1\\WpfApp1.csproj",
|
||||
"packagesPath": "C:\\Users\\shiy7\\.nuget\\packages\\",
|
||||
"outputPath": "D:\\repos\\YwxAppWpfDanMu\\WpfApp1\\obj\\",
|
||||
"outputPath": "D:\\repos\\YwxAppWpfBarrage\\WpfApp1\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"fallbackFolders": [
|
||||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
||||
@@ -61,8 +41,8 @@
|
||||
"net8.0-windows7.0": {
|
||||
"targetAlias": "net8.0-windows",
|
||||
"projectReferences": {
|
||||
"D:\\repos\\YwxAppWpfDanMu\\YwxAppWpfDanMu\\YwxAppWpfDanMu.csproj": {
|
||||
"projectPath": "D:\\repos\\YwxAppWpfDanMu\\YwxAppWpfDanMu\\YwxAppWpfDanMu.csproj"
|
||||
"D:\\repos\\YwxAppWpfBarrage\\YwxAppWpfBarrage\\YwxAppWpfBarrage.csproj": {
|
||||
"projectPath": "D:\\repos\\YwxAppWpfBarrage\\YwxAppWpfBarrage\\YwxAppWpfBarrage.csproj"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -104,5 +84,16 @@
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.201/PortableRuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"logs": [
|
||||
{
|
||||
"code": "NU1105",
|
||||
"level": "Error",
|
||||
"message": "找不到“D:\\repos\\YwxAppWpfBarrage\\YwxAppWpfBarrage\\YwxAppWpfBarrage.csproj”的项目信息。如果使用 Visual Studio,这可能是因为该项目已被卸载或不属于当前解决方案,因此请从命令行运行还原。否则,项目文件可能无效或缺少还原所需的目标。",
|
||||
"libraryId": "D:\\repos\\YwxAppWpfBarrage\\YwxAppWpfBarrage\\YwxAppWpfBarrage.csproj",
|
||||
"targetGraphs": [
|
||||
"net8.0-windows7.0"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
18
WpfApp1/obj/project.nuget.cache
Normal file
18
WpfApp1/obj/project.nuget.cache
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"version": 2,
|
||||
"dgSpecHash": "YlqQWizSB44=",
|
||||
"success": false,
|
||||
"projectFilePath": "D:\\repos\\YwxAppWpfBarrage\\WpfApp1\\WpfApp1.csproj",
|
||||
"expectedPackageFiles": [],
|
||||
"logs": [
|
||||
{
|
||||
"code": "NU1105",
|
||||
"level": "Error",
|
||||
"message": "找不到“D:\\repos\\YwxAppWpfBarrage\\YwxAppWpfBarrage\\YwxAppWpfBarrage.csproj”的项目信息。如果使用 Visual Studio,这可能是因为该项目已被卸载或不属于当前解决方案,因此请从命令行运行还原。否则,项目文件可能无效或缺少还原所需的目标。",
|
||||
"libraryId": "D:\\repos\\YwxAppWpfBarrage\\YwxAppWpfBarrage\\YwxAppWpfBarrage.csproj",
|
||||
"targetGraphs": [
|
||||
"net8.0-windows7.0"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user