|
1 | 1 | <Project> |
2 | 2 | <Import Project="Version.props" /> |
3 | 3 | <PropertyGroup> |
4 | | - <!--统一所有项目输出目录--> |
5 | | - <!--$(Platform)--> |
6 | | - <OutputPath>$(SolutionDir)Output\bin\$(Configuration)</OutputPath> |
7 | | - <PackageOutputPath>$(OutputPath)</PackageOutputPath> |
8 | | - <!--<BaseIntermediateOutputPath>$(SolutionDir)Output\obj\$(Platform)</BaseIntermediateOutputPath>--> |
9 | | - <IntermediateOutputPath>$(SolutionDir)Output\obj\$(Configuration)\$(MSBuildProjectName)</IntermediateOutputPath> |
10 | | - <UseHostCompilerIfAvailable>false</UseHostCompilerIfAvailable> |
11 | 4 | <TargetFrameworks>net46;net461;netcoreapp3.1;net5.0-windows;net6.0-windows</TargetFrameworks> |
12 | 5 | <Platforms>AnyCPU;x64;x86</Platforms> |
13 | | - <LangVersion>9.0</LangVersion> |
| 6 | + <UseWPF>true</UseWPF> |
| 7 | + <UseWindowsForms>true</UseWindowsForms> |
| 8 | + <LangVersion>latest</LangVersion> |
| 9 | + <OutputPath>$(SolutionDir)Output\bin\$(Configuration)\$(MSBuildProjectName)</OutputPath> |
| 10 | + <PackageOutputPath>$(OutputPath)</PackageOutputPath> |
| 11 | + <BaseIntermediateOutputPath>$(SolutionDir)Output\obj\$(Configuration)\$(MSBuildProjectName)</BaseIntermediateOutputPath> |
| 12 | + <!--<IntermediateOutputPath>$(SolutionDir)Output\obj\$(Configuration)\$(MSBuildProjectName)</IntermediateOutputPath>--> |
| 13 | + <UseHostCompilerIfAvailable>false</UseHostCompilerIfAvailable> |
| 14 | + <!--设定语言--> |
| 15 | + <SatelliteResourceLanguages>zh-Hans</SatelliteResourceLanguages> |
| 16 | + <!--不生成ReferenceAssembly,即ref文件夹--> |
| 17 | + <ProduceReferenceAssembly>false</ProduceReferenceAssembly> |
14 | 18 | <!--指示编译器是否应为相同的输入产生相同的程序集--> |
15 | 19 | <Deterministic>true</Deterministic> |
16 | 20 | <WarningLevel>4</WarningLevel> |
|
29 | 33 | <PackageTags>xaml,wpf,ui,controls,windows,desktop,cookpopularcontrol,library</PackageTags> |
30 | 34 | <RepositoryUrl>https://gitee.com/cook-csharp/$(MSBuildProjectName)</RepositoryUrl> |
31 | 35 | <PackageProjectUrl>https://github.com/chancezheng/CookPopularControl</PackageProjectUrl> |
32 | | - <PackageReleaseNotes>预发行版</PackageReleaseNotes> |
| 36 | + <PackageReleaseNotes>兼容.NetFramework与.NetCore/.Net的WPF控件库</PackageReleaseNotes> |
33 | 37 | </PropertyGroup> |
34 | 38 |
|
35 | 39 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> |
36 | 40 | <OutputPath>$(SolutionDir)Output\bin\Debug</OutputPath> |
37 | 41 | </PropertyGroup> |
38 | 42 |
|
39 | 43 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'"> |
40 | | - <OutputPath>$(SolutionDir)Output\bin\Release</OutputPath> |
| 44 | + <OutputPath>$(SolutionDir)Output\bin\Release\$(MSBuildProjectName)</OutputPath> |
| 45 | + <DebugType>none</DebugType> |
| 46 | + <DebugSymbols>false</DebugSymbols> |
41 | 47 | </PropertyGroup> |
| 48 | + |
| 49 | + <Target Name="RemoveWpfTempFolder" AfterTargets="Build"> |
| 50 | + <ItemGroup> |
| 51 | + <WpfTempDirectories Include="$([System.IO.Directory]::GetDirectories("$(MSBuildThisFileDirectory)Output\bin\$(Configuration)","$(MSBuildProjectName)_*_wpftmp"))" /> |
| 52 | + </ItemGroup> |
| 53 | + <RemoveDir Directories="@(WpfTempDirectories)" /> |
| 54 | + </Target> |
| 55 | + |
42 | 56 | </Project> |
0 commit comments