-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
56 lines (51 loc) · 2.22 KB
/
Directory.Build.props
File metadata and controls
56 lines (51 loc) · 2.22 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
<Project>
<PropertyGroup>
<Nullable>disable</Nullable>
<!--App版本-->
<AppVersion>2.7.0</AppVersion>
<!--Avalonia版本-->
<AvaloniaVersion>11.3.14</AvaloniaVersion>
<!--FzLib版本-->
<FzLibVersion>3.3.4</FzLibVersion>
<!--是否使用本地最新的FzLib。非开发者本人应当设置为T。-->
<UseLocalFzLib>false</UseLocalFzLib>
<!--是否指定调试时的输出目录,以及指定目录位置-->
<SpecialOutputDir>true</SpecialOutputDir>
<OutputDir>C:\CodeTemp</OutputDir>
</PropertyGroup>
<!--指定bin目录和obj目录位置-->
<PropertyGroup Condition="'$(SpecialOutputDir)' == 'true'">
<OutputPath>$(OutputDir)\$(SolutionName)\bin\$(Configuration)\$(MSBuildProjectName)</OutputPath>
<BaseIntermediateOutputPath>$(OutputDir)\$(SolutionName)\obj\$(Configuration)\$(MSBuildProjectName)</BaseIntermediateOutputPath>
</PropertyGroup>
<!--包含所有Avalonia资产-->
<ItemGroup>
<AvaloniaResource Include="Assets\**"/>
</ItemGroup>
<!--使用本地FzLib-->
<ItemGroup Condition="'$(Configuration)' == 'Debug' and '$(UseLocalFzLib)' == 'true'">
<Reference Include="FzLib">
<HintPath>..\..\FzLib\Publish\libs\FzLib.dll</HintPath>
</Reference>
<Reference Include="FzLib.Avalonia">
<HintPath>..\..\FzLib\Publish\libs\FzLib.Avalonia.dll</HintPath>
</Reference>
</ItemGroup>
<!--使用Nuget中的FzLib-->
<ItemGroup Condition="! ('$(Configuration)' == 'Debug' and '$(UseLocalFzLib)' == 'true')">
<PackageReference Include="FzLib"/>
<PackageReference Include="FzLib.Avalonia"/>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Avalonia"/>
<PackageReference Include="Avalonia.Controls.DataGrid"/>
<PackageReference Include="Avalonia.Themes.Fluent"/>
<PackageReference Include="Avalonia.Controls.ColorPicker" />
<PackageReference Include="Xaml.Behaviors.Avalonia"/>
<PackageReference Include="CommunityToolkit.Mvvm"/>
<PackageReference Include="Serilog"/>
<PackageReference Include="Serilog.Sinks.File"/>
<PackageReference Include="Microsoft.Extensions.DependencyInjection"/>
<PackageReference Condition="'$(Configuration)' == 'Debug'" Include="Avalonia.Diagnostics"/>
</ItemGroup>
</Project>