This repository has been archived by the owner on Dec 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Directory.Build.props
65 lines (59 loc) · 3.3 KB
/
Directory.Build.props
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
<Project>
<Import Project="Version.props" />
<PropertyGroup>
<TargetFrameworks>net46;netcoreapp3.1;net6.0-windows</TargetFrameworks>
<UseWPF>true</UseWPF>
<UseWindowsForms>true</UseWindowsForms>
<Platforms>AnyCPU;x64;x86</Platforms>
<PlatformTarget>AnyCPU</PlatformTarget>
<LangVersion>latest</LangVersion>
<OutputPath>$(SolutionDir)Output\bin\$(Configuration)\$(MSBuildProjectName)</OutputPath>
<BaseIntermediateOutputPath>$(SolutionDir)Output\obj\$(Configuration)\$(MSBuildProjectName)</BaseIntermediateOutputPath>
<!--<IntermediateOutputPath>$(SolutionDir)Output\obj\$(Configuration)\$(MSBuildProjectName)</IntermediateOutputPath>-->
<UseHostCompilerIfAvailable>false</UseHostCompilerIfAvailable>
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
<!--是否将引用的nuget包复制到输出目录-->
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<!--是否生成.config文件-->
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<!--是否将Framework运行时输出-->
<AppendTargetFrameworkToOutputPath>true</AppendTargetFrameworkToOutputPath>
<!--<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<AppendRuntimeIdentifierToOutputPath>true</AppendRuntimeIdentifierToOutputPath>-->
<!--设定语言-->
<SatelliteResourceLanguages>zh-Hans</SatelliteResourceLanguages>
<!--不生成ReferenceAssembly,即ref文件夹-->
<ProduceReferenceAssembly>false</ProduceReferenceAssembly>
<!--指示编译器是否应为相同的输入产生相同的程序集-->
<Deterministic>true</Deterministic>
<WarningLevel>4</WarningLevel>
<!--CookPopularControl Nuget包说明配置 $(MSBuildToolsPath)-->
<PackageId>$(MSBuildProjectName)</PackageId>
<Authors>写代码的厨子</Authors>
<Company>写代码的厨子</Company>
<Product>$(MSBuildProjectName)</Product>
<Title>$(MSBuildProjectName)</Title>
<Description>兼容.NetFramework与.NetCore/.Net的WPF控件库</Description>
<Copyright>Copyright © $(MSBuildProjectName) 2019-2023</Copyright>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<PackageOutputPath>$(SolutionDir)Output\bin\$(Configuration)</PackageOutputPath>
<PackageTags>xaml,wpf,ui,controls,windows,desktop,cookpopularcontrol,library</PackageTags>
<RepositoryUrl>https://gitee.com/cook-csharp/$(MSBuildProjectName)</RepositoryUrl>
<PackageProjectUrl>https://github.com/chancezheng/CookPopularControl</PackageProjectUrl>
<PackageReleaseNotes>兼容.NetFramework与.NetCore/.Net的WPF控件库</PackageReleaseNotes>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<OutputPath>$(SolutionDir)Output\bin\Debug\$(MSBuildProjectName)</OutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<OutputPath>$(SolutionDir)Output\bin\Release\$(MSBuildProjectName)</OutputPath>
<DebugType>none</DebugType>
<DebugSymbols>false</DebugSymbols>
</PropertyGroup>
<Target Name="RemoveWpfTempFolder" AfterTargets="Build">
<ItemGroup>
<WpfTempDirectories Include="$([System.IO.Directory]::GetDirectories("$(MSBuildThisFileDirectory)Output\bin\$(Configuration)","$(MSBuildProjectName)_*_wpftmp"))" />
</ItemGroup>
<RemoveDir Directories="@(WpfTempDirectories)" />
</Target>
</Project>