mirror of
https://github.com/yaobiao131/downkyicore.git
synced 2025-08-10 00:52:31 +00:00
fix: 修复vs打开项目兼容性
This commit is contained in:
6
Directory.Build.props
Normal file
6
Directory.Build.props
Normal file
@@ -0,0 +1,6 @@
|
||||
<Project>
|
||||
<PropertyGroup>
|
||||
<Nullable>enable</Nullable>
|
||||
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
2
Directory.Build.targets
Normal file
2
Directory.Build.targets
Normal file
@@ -0,0 +1,2 @@
|
||||
<Project>
|
||||
</Project>
|
||||
20
Directory.Packages.props
Normal file
20
Directory.Packages.props
Normal file
@@ -0,0 +1,20 @@
|
||||
<Project ToolsVersion="15.0">
|
||||
<ItemGroup>
|
||||
<PackageVersion Include="Avalonia" Version="11.2.7"/>
|
||||
<PackageVersion Include="Avalonia.Controls.DataGrid" Version="11.2.7"/>
|
||||
<PackageVersion Include="Avalonia.Desktop" Version="11.2.7"/>
|
||||
<PackageVersion Include="Avalonia.Fonts.Inter" Version="11.2.7"/>
|
||||
<PackageVersion Include="Avalonia.Diagnostics" Version="11.2.7"/>
|
||||
<PackageVersion Include="Avalonia.Themes.Simple" Version="11.2.7"/>
|
||||
<PackageVersion Include="Xaml.Behaviors" Version="11.2.7"/>
|
||||
<PackageVersion Include="Downloader" Version="3.3.4"/>
|
||||
<PackageVersion Include="Prism.Avalonia" Version="8.1.97.11073"/>
|
||||
<PackageVersion Include="Prism.DryIoc.Avalonia" Version="8.1.97.11073"/>
|
||||
<PackageVersion Include="FFMpegCore" Version="5.1.0"/>
|
||||
<PackageVersion Include="Google.Protobuf" Version="3.25.1"/>
|
||||
<PackageVersion Include="Microsoft.Data.Sqlite.Core" Version="9.0.4"/>
|
||||
<PackageVersion Include="Newtonsoft.Json" Version="13.0.3"/>
|
||||
<PackageVersion Include="QRCoder" Version="1.6.0"/>
|
||||
<PackageVersion Include="SQLitePCLRaw.bundle_e_sqlcipher" Version="2.1.11"/>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -1,28 +1,66 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<RuntimeIdentifier>$([System.Runtime.InteropServices.RuntimeInformation]::RuntimeIdentifier)</RuntimeIdentifier>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Avalonia" Version="11.2.6" />
|
||||
<PackageReference Include="FFMpegCore" Version="5.2.0" />
|
||||
<PackageReference Include="Google.Protobuf" Version="3.25.1"/>
|
||||
<PackageReference Include="Microsoft.Data.Sqlite.Core" Version="9.0.3" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3"/>
|
||||
<PackageReference Include="QRCoder" Version="1.6.0" />
|
||||
<PackageReference Include="SQLitePCLRaw.bundle_e_sqlcipher" Version="2.1.11" />
|
||||
<PackageReference Include="Avalonia"/>
|
||||
<PackageReference Include="FFMpegCore"/>
|
||||
<PackageReference Include="Google.Protobuf"/>
|
||||
<PackageReference Include="Microsoft.Data.Sqlite.Core"/>
|
||||
<PackageReference Include="Newtonsoft.Json"/>
|
||||
<PackageReference Include="QRCoder"/>
|
||||
<PackageReference Include="SQLitePCLRaw.bundle_e_sqlcipher"/>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Update="Binary/$(RuntimeIdentifier)/aria2/*" Link="aria2/%(Filename)%(Extension)" Visible="false">
|
||||
<ItemGroup Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))' And '$([System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture)'=='X64'">
|
||||
<None Update="Binary/win-x64/aria2/*" Link="aria2/%(Filename)%(Extension)" Visible="false">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Update="Binary/$(RuntimeIdentifier)/ffmpeg/*" Link="ffmpeg/%(Filename)%(Extension)" Visible="false">
|
||||
<None Update="Binary/win-x64/ffmpeg/*" Link="ffmpeg/%(Filename)%(Extension)" Visible="false">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))' And '$([System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture)'=='X86'">
|
||||
<None Update="Binary/win-x86/aria2/*" Link="aria2/%(Filename)%(Extension)" Visible="false">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Update="Binary/win-x86/ffmpeg/*" Link="ffmpeg/%(Filename)%(Extension)" Visible="false">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))' And '$([System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture)'=='Arm64'">
|
||||
<None Update="Binary/linux-arm64/aria2/*" Link="aria2/%(Filename)%(Extension)" Visible="false">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Update="Binary/linux-arm64/ffmpeg/*" Link="ffmpeg/%(Filename)%(Extension)" Visible="false">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))' And '$([System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture)'=='X64'">
|
||||
<None Update="Binary/linux-x64/aria2/*" Link="aria2/%(Filename)%(Extension)" Visible="false">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Update="Binary/linux-x64/ffmpeg/*" Link="ffmpeg/%(Filename)%(Extension)" Visible="false">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::OSX)))' And '$([System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture)'=='X64'">
|
||||
<None Update="Binary/osx-x64/aria2/*" Link="aria2/%(Filename)%(Extension)" Visible="false">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Update="Binary/osx-x64/ffmpeg/*" Link="ffmpeg/%(Filename)%(Extension)" Visible="false">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::OSX)))' And '$([System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture)'=='Arm64'">
|
||||
<None Update="Binary/osx-arm64/aria2/*" Link="aria2/%(Filename)%(Extension)" Visible="false">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Update="Binary/osx-arm64/ffmpeg/*" Link="ffmpeg/%(Filename)%(Extension)" Visible="false">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
13
DownKyi.sln
13
DownKyi.sln
@@ -4,6 +4,19 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DownKyi", "DownKyi\DownKyi.
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DownKyi.Core", "DownKyi.Core\DownKyi.Core.csproj", "{153A9B2C-7494-411C-BA0A-121A1024C08E}"
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{0C40188E-3DE3-4D14-8838-5D2931466DE0}"
|
||||
ProjectSection(SolutionItems) = preProject
|
||||
.gitignore = .gitignore
|
||||
CHANGELOG.md = CHANGELOG.md
|
||||
cliff.toml = cliff.toml
|
||||
Directory.Build.props = Directory.Build.props
|
||||
Directory.Build.targets = Directory.Build.targets
|
||||
README.md = README.md
|
||||
version.txt = version.txt
|
||||
Directory.Packages.props = Directory.Packages.props
|
||||
LICENSE = LICENSE
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
|
||||
@@ -11,33 +11,33 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<AvaloniaResource Include="Resources\**" />
|
||||
<AvaloniaResource Include="Resources\**"/>
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Avalonia" Version="11.2.6" />
|
||||
<PackageReference Include="Avalonia.Controls.DataGrid" Version="11.2.6" />
|
||||
<PackageReference Include="Avalonia.Desktop" Version="11.2.6" />
|
||||
<PackageReference Include="Avalonia.Fonts.Inter" Version="11.2.6" />
|
||||
<PackageReference Include="Avalonia"/>
|
||||
<PackageReference Include="Avalonia.Controls.DataGrid"/>
|
||||
<PackageReference Include="Avalonia.Desktop"/>
|
||||
<PackageReference Include="Avalonia.Fonts.Inter"/>
|
||||
<!--Condition below is needed to remove Avalonia.Diagnostics package from build output in Release configuration.-->
|
||||
<PackageReference Condition="'$(Configuration)' == 'Debug'" Include="Avalonia.Diagnostics" Version="11.2.6" />
|
||||
<PackageReference Include="Avalonia.Themes.Simple" Version="11.2.6" />
|
||||
<PackageReference Include="Downloader" Version="3.3.4" />
|
||||
<PackageReference Include="Prism.Avalonia" Version="8.1.97.11073" />
|
||||
<PackageReference Include="Prism.DryIoc.Avalonia" Version="8.1.97.11073" />
|
||||
<PackageReference Include="Xaml.Behaviors" Version="11.2.0.14" />
|
||||
<PackageReference Condition="'$(Configuration)' == 'Debug'" Include="Avalonia.Diagnostics"/>
|
||||
<PackageReference Include="Avalonia.Themes.Simple"/>
|
||||
<PackageReference Include="Downloader"/>
|
||||
<PackageReference Include="Prism.Avalonia"/>
|
||||
<PackageReference Include="Prism.DryIoc.Avalonia"/>
|
||||
<PackageReference Include="Xaml.Behaviors"/>
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\DownKyi.Core\DownKyi.Core.csproj" />
|
||||
<ProjectReference Include="..\DownKyi.Core\DownKyi.Core.csproj"/>
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Update="Views\Dialogs\NewVersionAvailableDialog.axaml.cs">
|
||||
<DependentUpon>NewVersionAvailableDialog.axaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Update="Views\Dialogs\NewVersionAvailableDialog.axaml.cs">
|
||||
<DependentUpon>NewVersionAvailableDialog.axaml</DependentUpon>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
||||
Reference in New Issue
Block a user