Skip to content
This repository was archived by the owner on Dec 18, 2023. It is now read-only.

Commit 4f6f173

Browse files
committed
fixed project settings
1 parent 1d9d18d commit 4f6f173

File tree

3 files changed

+27
-13
lines changed

3 files changed

+27
-13
lines changed

CookPopularCSharpToolkit/CookPopularCSharpToolkit.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<!--<TargetFrameworks Condition="$(BuildingForNet6)">$(TargetFrameworks);net6.0-ios;net6.0-maccatalyst;net6.0-tvos;net6.0-macos;net6.0-android</TargetFrameworks>-->
54
<DefineConstants>$(DefineConstants);COOK</DefineConstants>
65
<UseWPF>true</UseWPF>
76
<UseWindowsForms>true</UseWindowsForms>

Directory.Build.props

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
<Project>
22
<Import Project="Version.props" />
33
<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>
114
<TargetFrameworks>net46;net461;netcoreapp3.1;net5.0-windows;net6.0-windows</TargetFrameworks>
125
<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>
1418
<!--指示编译器是否应为相同的输入产生相同的程序集-->
1519
<Deterministic>true</Deterministic>
1620
<WarningLevel>4</WarningLevel>
@@ -29,14 +33,24 @@
2933
<PackageTags>xaml,wpf,ui,controls,windows,desktop,cookpopularcontrol,library</PackageTags>
3034
<RepositoryUrl>https://gitee.com/cook-csharp/$(MSBuildProjectName)</RepositoryUrl>
3135
<PackageProjectUrl>https://github.com/chancezheng/CookPopularControl</PackageProjectUrl>
32-
<PackageReleaseNotes>预发行版</PackageReleaseNotes>
36+
<PackageReleaseNotes>兼容.NetFramework与.NetCore/.Net的WPF控件库</PackageReleaseNotes>
3337
</PropertyGroup>
3438

3539
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
3640
<OutputPath>$(SolutionDir)Output\bin\Debug</OutputPath>
3741
</PropertyGroup>
3842

3943
<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>
4147
</PropertyGroup>
48+
49+
<Target Name="RemoveWpfTempFolder" AfterTargets="Build">
50+
<ItemGroup>
51+
<WpfTempDirectories Include="$([System.IO.Directory]::GetDirectories(&quot;$(MSBuildThisFileDirectory)Output\bin\$(Configuration)&quot;,&quot;$(MSBuildProjectName)_*_wpftmp&quot;))" />
52+
</ItemGroup>
53+
<RemoveDir Directories="@(WpfTempDirectories)" />
54+
</Target>
55+
4256
</Project>

MvvmTestDemo/MvvmTestDemo.csproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
<PropertyGroup>
44
<OutputType>WinExe</OutputType>
5-
<OutputPath />
6-
<IntermediateOutputPath />
5+
<!--<OutputPath />-->
6+
<!--<BaseIntermediateOutputPath />-->
7+
<!--<IntermediateOutputPath />-->
78
<TargetFrameworks>net461;net5.0-windows</TargetFrameworks>
89
<UseWPF>true</UseWPF>
910
<UseWindowsForms>true</UseWindowsForms>

0 commit comments

Comments
 (0)