-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathSystemTools.csproj
More file actions
177 lines (162 loc) · 9.83 KB
/
Copy pathSystemTools.csproj
File metadata and controls
177 lines (162 loc) · 9.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net10.0-windows10.0.19041.0</TargetFramework>
<Nullable>enable</Nullable>
<LangVersion>latest</LangVersion>
<UseWindowsForms>true</UseWindowsForms>
<Platforms>x64</Platforms>
<EnableDynamicLoading>true</EnableDynamicLoading>
<CreateCipx>true</CreateCipx>
<ClassIslandSourceRoot Condition="'$(ClassIslandSourceRoot)' == ''">E:\ClassIsland-git-misha</ClassIslandSourceRoot>
<UseLocalClassIslandSdk Condition="'$(UseLocalClassIslandSdk)' == '' And Exists('$(ClassIslandSourceRoot)\ClassIsland.PluginSdk\ClassIsland.PluginSdk.csproj')">true</UseLocalClassIslandSdk>
<UseLocalClassIslandSdk Condition="'$(UseLocalClassIslandSdk)' == ''">false</UseLocalClassIslandSdk>
<ClassIslandPluginSdkVersion Condition="'$(ClassIslandPluginSdkVersion)' == ''">2.1.1.1</ClassIslandPluginSdkVersion>
<ClassIslandPowerShellExecutable Condition="'$(ClassIslandPowerShellExecutable)' == '' And Exists('D:\PowerShell-7.7.0-preview.4-win-x64\pwsh.exe')">D:\PowerShell-7.7.0-preview.4-win-x64\pwsh.exe</ClassIslandPowerShellExecutable>
<ClassIslandPowerShellExecutable Condition="'$(ClassIslandPowerShellExecutable)' == '' And Exists('C:\Program Files\PowerShell\7\pwsh.exe')">C:\Program Files\PowerShell\7\pwsh.exe</ClassIslandPowerShellExecutable>
<ClassIslandPowerShellExecutable Condition="'$(ClassIslandPowerShellExecutable)' == '' And Exists('C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe')">C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe</ClassIslandPowerShellExecutable>
</PropertyGroup>
<ItemGroup>
<None Include=".github\workflows\dotnet-build.yml" />
<!-- The CI workflow checks out ClassIsland inside the workspace so its SDK can be built.
Keep that dependency tree out of SystemTools' default recursive item globs. -->
<Compile Remove="ClassIsland\**" />
<EmbeddedResource Remove="ClassIsland\**" />
<None Remove="ClassIsland\**" />
<AdditionalFiles Remove="ClassIsland\**" />
<AvaloniaXaml Remove="ClassIsland\**" />
<AvaloniaResource Remove="ClassIsland\**" />
<None Remove="VoskWorker\**" />
<None Remove="cipx\**" />
<None Remove="ThirdParty\LiquidGlassAvaloniaUI\Assets\Shaders\*.sksl" />
<AvaloniaResource Include="Themes\CardTypeComponent\Theme.axaml.txt" />
<AvaloniaResource Include="Themes\ClassWidgets\Theme.axaml.txt" />
<AvaloniaResource Include="Themes\NotchStyle\Theme.axaml.txt" />
<AvaloniaResource Include="Themes\ClassWidgets\上课.png" />
<AvaloniaResource Include="Themes\ClassWidgets\课间休息.png" />
<AvaloniaResource Include="Themes\ClassWidgets\无课程.png" />
<AvaloniaResource Include="ThirdParty\LiquidGlassAvaloniaUI\Assets\Shaders\*.sksl" />
<None Remove="Themes\VerticalSidebar\Theme.axaml.txt" />
</ItemGroup>
<ItemGroup>
<PackageReference Condition="'$(UseLocalClassIslandSdk)' != 'true' Or !Exists('$(ClassIslandSourceRoot)\ClassIsland.PluginSdk\ClassIsland.PluginSdk.csproj')"
Include="ClassIsland.PluginSdk" Version="$(ClassIslandPluginSdkVersion)">
<ExcludeAssets>runtime;native</ExcludeAssets>
</PackageReference>
<PackageReference Include="DlibDotNet" Version="19.21.0.20220724" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="10.0.10" />
<PackageReference Include="Microsoft.Windows.CsWin32" Version="0.3.298">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="OpenCvSharp4" Version="4.9.0.20240103" />
<PackageReference Include="OpenCvSharp4.Extensions" Version="4.5.3.20211225" />
<PackageReference Include="OpenCvSharp4.runtime.win" Version="4.9.0.20240103" />
<PackageReference Include="System.Management" Version="8.0.0" />
<PackageReference Include="System.Speech" Version="8.0.0" />
</ItemGroup>
<ItemGroup>
<Compile Remove="VoskWorker\**\*.cs" />
<Compile Remove="VoskWorker\**" />
<Compile Remove="cipx\**" />
</ItemGroup>
<Target Name="CopyVoskWorkerToPluginOutput" AfterTargets="Build">
<ItemGroup>
<VoskWorkerFiles Include="$(MSBuildProjectDirectory)\VoskWorker\bin\$(Configuration)\net10.0\win-x64\**\*" />
</ItemGroup>
<RemoveDir Directories="$(OutDir)VoskWorker" />
<Copy SourceFiles="@(VoskWorkerFiles)" DestinationFiles="@(VoskWorkerFiles->'$(OutDir)VoskWorker\%(RecursiveDir)%(Filename)%(Extension)')" SkipUnchangedFiles="true" />
<ItemGroup>
<FileWrites Include="@(VoskWorkerFiles->'$(OutDir)VoskWorker\%(RecursiveDir)%(Filename)%(Extension)')" />
</ItemGroup>
</Target>
<Target Name="VerifyClassIslandSource" BeforeTargets="PrepareForBuild"
Condition="'$(UseLocalClassIslandSdk)' == 'true'">
<Error Condition="!Exists('$(ClassIslandSourceRoot)\ClassIsland.PluginSdk\ClassIsland.PluginSdk.csproj')"
Text="ClassIsland source was not found at '$(ClassIslandSourceRoot)'. Set ClassIslandSourceRoot to the develop/v2/misha-alpha checkout or build with UseLocalClassIslandSdk=false." />
</Target>
<Target Name="VerifyClassIslandPowerShell" BeforeTargets="PrepareForBuild"
Condition="'$(UseLocalClassIslandSdk)' == 'true'">
<Error Condition="'$(ClassIslandPowerShellExecutable)' == ''"
Text="PowerShell executable was not found. Set ClassIslandPowerShellExecutable to the full path of pwsh.exe." />
</Target>
<Target Name="StripClassIslandHostDependencies" BeforeTargets="CreateCipx"
Condition="'$(UseLocalClassIslandSdk)' == 'true'
And Exists('$(ClassIslandSourceRoot)\ClassIsland.PluginSdk\ClassIsland.PluginSdk.csproj')
And Exists('$(ClassIslandSourceRoot)\ClassIsland.Desktop\bin\Debug\net10.0-windows10.0.19041.0')">
<PropertyGroup>
<PluginOutputDirectory>$([System.String]::Copy('$([System.IO.Path]::GetFullPath('$(OutDir)'))').TrimEnd([char]92))</PluginOutputDirectory>
</PropertyGroup>
<Message Importance="High" Text="Using PowerShell executable: $(ClassIslandPowerShellExecutable)" />
<Exec Command=""$(ClassIslandPowerShellExecutable)" -NoLogo -NoProfile -ExecutionPolicy Bypass -File "$(MSBuildProjectDirectory)\Strip-ClassIslandHostDependencies.ps1" -OutputDirectory "$(PluginOutputDirectory)." -ClassIslandDebugDirectory "$(ClassIslandSourceRoot)\ClassIsland.Desktop\bin\Debug\net10.0-windows10.0.19041.0"" />
</Target>
<ItemGroup>
<None Update="manifest.yml">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="version.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="README-1.md">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="README.md">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="README-2.md">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="icon.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="title.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="black.html">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="jinyongshubiao.bat">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="jinyongshubiao.ps1">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="huifu.bat">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="huifu.ps1">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="Lyricify Lite - README.md">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<AvaloniaXaml Remove="VoskWorker\**" />
<AvaloniaXaml Remove="cipx\**" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Remove="VoskWorker\**" />
<EmbeddedResource Remove="cipx\**" />
</ItemGroup>
<ItemGroup>
<AdditionalFiles Remove="VoskWorker\**" />
<AdditionalFiles Remove="cipx\**" />
</ItemGroup>
<ItemGroup>
<AvaloniaResource Remove="VoskWorker\**" />
<AvaloniaResource Remove="cipx\**" />
</ItemGroup>
<ItemGroup Condition="'$(UseLocalClassIslandSdk)' == 'true' And Exists('$(ClassIslandSourceRoot)\ClassIsland.PluginSdk\ClassIsland.PluginSdk.csproj')">
<ProjectReference Include="$(ClassIslandSourceRoot)\ClassIsland.PluginSdk\ClassIsland.PluginSdk.csproj">
<ReferenceOutputAssembly>true</ReferenceOutputAssembly>
<Private>false</Private>
<GlobalPropertiesToRemove>CreateCipx</GlobalPropertiesToRemove>
</ProjectReference>
</ItemGroup>
<Import Project="$(ClassIslandSourceRoot)\ClassIsland.PluginSdk\ClassIsland.PluginSdk.targets"
Condition="'$(UseLocalClassIslandSdk)' == 'true' And Exists('$(ClassIslandSourceRoot)\ClassIsland.PluginSdk\ClassIsland.PluginSdk.targets')" />
<!-- The SDK target invokes PowerShell for CIPX hash generation. Keep it aligned with the executable above. -->
<PropertyGroup Condition="'$(ClassIslandPowerShellExecutable)' != ''">
<PowershellBinaryName>"$(ClassIslandPowerShellExecutable)"</PowershellBinaryName>
</PropertyGroup>
</Project>