Skip to content

Commit cc2ec70

Browse files
committed
Use props file
1 parent 29a3ce5 commit cc2ec70

File tree

12 files changed

+24
-121
lines changed

12 files changed

+24
-121
lines changed

Directory.Build.props

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!-- Copyright (c) 2024 Files Community. Licensed under the MIT License. See the LICENSE. -->
2+
<Project>
3+
4+
<PropertyGroup Condition="'$(MSBuildProjectExtension)' == '.csproj'">
5+
<Configurations>Debug;Release;Stable;Preview;Store</Configurations>
6+
<Platforms>x86;x64;arm64</Platforms>
7+
<RuntimeIdentifiers>win-x86;win-x64;win-arm64</RuntimeIdentifiers>
8+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
9+
<Nullable>enable</Nullable>
10+
<DefineConstants Condition="'$(Configuration)' == 'Debug'">$(DefineConstants);TRACE;DEBUG;NETFX_CORE</DefineConstants>
11+
<DefineConstants Condition="'$(Configuration)' != 'Debug'">$(DefineConstants);TRACE;RELEASE;NETFX_CORE</DefineConstants>
12+
<Optimize Condition="'$(Configuration)' != 'Debug'">true</Optimize>
13+
</PropertyGroup>
14+
15+
</Project>

src/Files.App.BackgroundTasks/Files.App.BackgroundTasks.csproj

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
<DefaultLanguage>en-US</DefaultLanguage>
77
<TargetPlatformMinVersion>10.0.19041.0</TargetPlatformMinVersion>
88
<IsTrimmable>true</IsTrimmable>
9-
<Configurations>Debug;Release;Stable;Preview;Store</Configurations>
10-
<Platforms>x86;x64;ARM64</Platforms>
11-
<RuntimeIdentifiers>win-x86;win-x64;win-arm64</RuntimeIdentifiers>
129
</PropertyGroup>
1310

1411
<PropertyGroup>
@@ -17,14 +14,6 @@
1714
<CsWinRTGeneratedFilesDir>$(MSBuildProjectDirectory)\bin\$(Platform)\$(Configuration)</CsWinRTGeneratedFilesDir>
1815
</PropertyGroup>
1916

20-
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
21-
<DefineConstants>TRACE;DEBUG;NETFX_CORE</DefineConstants>
22-
</PropertyGroup>
23-
<PropertyGroup Condition="'$(Configuration)' != 'Debug'">
24-
<DefineConstants>TRACE;RELEASE;NETFX_CORE</DefineConstants>
25-
<Optimize>true</Optimize>
26-
</PropertyGroup>
27-
2817
<ItemGroup>
2918
<PackageReference Include="Microsoft.Windows.CsWinRT" Version="2.0.7" />
3019
</ItemGroup>

src/Files.App.Controls/Files.App.Controls.csproj

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,6 @@
66
<TargetPlatformMinVersion>10.0.19041.0</TargetPlatformMinVersion>
77
<UseWinUI>true</UseWinUI>
88
<SupportedOSPlatformVersion>10.0.19041.0</SupportedOSPlatformVersion>
9-
<Nullable>enable</Nullable>
10-
<Configurations>Debug;Release;Stable;Preview;Store</Configurations>
11-
<Platforms>x86;x64;arm64</Platforms>
12-
<RuntimeIdentifiers>win-x86;win-x64;win-arm64</RuntimeIdentifiers>
13-
<DefineConstants Condition="'$(Configuration)' == 'Debug'">TRACE;DEBUG;NETFX_CORE</DefineConstants>
14-
<DefineConstants Condition="'$(Configuration)' != 'Debug'">TRACE;RELEASE;NETFX_CORE</DefineConstants>
15-
<Optimize Condition="'$(Configuration)' != 'Debug'">true</Optimize>
169
</PropertyGroup>
1710

1811
<ItemGroup>

src/Files.App.CsWin32/Files.App.CsWin32.csproj

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
1-
<!-- Copyright (c) 2024 Files Community. Licensed under the MIT License. See the LICENSE. -->
1+
<!-- Copyright (c) 2024 Files Community. Licensed under the MIT License. See the LICENSE. -->
22
<Project Sdk="Microsoft.NET.Sdk">
33

44
<PropertyGroup>
55
<TargetFramework>net8.0-windows10.0.22621.0</TargetFramework>
66
<TargetPlatformMinVersion>10.0.19041.0</TargetPlatformMinVersion>
7-
<Nullable>enable</Nullable>
87
<IsTrimmable>true</IsTrimmable>
9-
<Configurations>Debug;Release;Stable;Preview;Store</Configurations>
10-
<Platforms>x86;x64;arm64</Platforms>
11-
<RuntimeIdentifiers>win-x86;win-x64;win-arm64</RuntimeIdentifiers>
12-
<DefineConstants Condition="'$(Configuration)' == 'Debug'">TRACE;DEBUG;NETFX_CORE</DefineConstants>
13-
<DefineConstants Condition="'$(Configuration)' != 'Debug'">TRACE;RELEASE;NETFX_CORE</DefineConstants>
14-
<Optimize Condition="'$(Configuration)' != 'Debug'">true</Optimize>
158
</PropertyGroup>
169

1710
<ItemGroup>

src/Files.App.Server/Files.App.Server.csproj

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<OutputType>WinExe</OutputType>
@@ -8,15 +8,10 @@
88
<TargetFramework>net8.0-windows10.0.22621.0</TargetFramework>
99
<TargetPlatformMinVersion>10.0.19041.0</TargetPlatformMinVersion>
1010
<ImplicitUsings>enable</ImplicitUsings>
11-
<Nullable>enable</Nullable>
12-
<Configurations>Debug;Release;Stable;Preview;Store</Configurations>
13-
<Platforms>x86;x64;arm64</Platforms>
1411
<SelfContained>true</SelfContained>
15-
<RuntimeIdentifiers>win-x86;win-x64;win-arm64</RuntimeIdentifiers>
1612
<RuntimeIdentifier Condition="'$(Platform)' == 'x86'">win-x86</RuntimeIdentifier>
1713
<RuntimeIdentifier Condition="'$(Platform)' == 'x64'">win-x64</RuntimeIdentifier>
1814
<RuntimeIdentifier Condition="'$(Platform)' == 'arm64'">win-arm64</RuntimeIdentifier>
19-
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
2015
<CsWinRTComponent>true</CsWinRTComponent>
2116
<CsWinRTWindowsMetadata>10.0.22621.0</CsWinRTWindowsMetadata>
2217
<ApplicationManifest>app.manifest</ApplicationManifest>
@@ -28,14 +23,6 @@
2823
<CsWinRTEnableLogging>true</CsWinRTEnableLogging>
2924
</PropertyGroup>
3025

31-
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
32-
<DefineConstants>TRACE;DEBUG;NETFX_CORE</DefineConstants>
33-
</PropertyGroup>
34-
<PropertyGroup Condition="'$(Configuration)' != 'Debug'">
35-
<DefineConstants>TRACE;RELEASE;NETFX_CORE</DefineConstants>
36-
<Optimize>true</Optimize>
37-
</PropertyGroup>
38-
3926
<ItemGroup>
4027
<Manifest Include="app.manifest" />
4128
<TrimmerRootAssembly Include="Files.App.Server" />

src/Files.App.Storage/Files.App.Storage.csproj

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,16 @@
1-
<!-- Copyright (c) 2024 Files Community. Licensed under the MIT License. See the LICENSE. -->
1+
<!-- Copyright (c) 2024 Files Community. Licensed under the MIT License. See the LICENSE. -->
22
<Project Sdk="Microsoft.NET.Sdk">
33

44
<PropertyGroup>
55
<TargetFramework>net8.0-windows10.0.22621.0</TargetFramework>
66
<TargetPlatformMinVersion>10.0.19041.0</TargetPlatformMinVersion>
7-
<Nullable>enable</Nullable>
87
<IsTrimmable>true</IsTrimmable>
9-
<Configurations>Debug;Release;Stable;Preview;Store</Configurations>
10-
<Platforms>x86;x64;arm64</Platforms>
11-
<RuntimeIdentifiers>win-x86;win-x64;win-arm64</RuntimeIdentifiers>
128
</PropertyGroup>
139

1410
<ItemGroup>
1511
<PackageReference Include="FluentFTP" Version="43.0.1" />
1612
</ItemGroup>
1713

18-
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
19-
<DefineConstants>TRACE;DEBUG;NETFX_CORE</DefineConstants>
20-
</PropertyGroup>
21-
<PropertyGroup Condition="'$(Configuration)' != 'Debug'">
22-
<DefineConstants>TRACE;RELEASE;NETFX_CORE</DefineConstants>
23-
<Optimize>true</Optimize>
24-
</PropertyGroup>
25-
2614
<ItemGroup>
2715
<ProjectReference Include="..\Files.Core.Storage\Files.Core.Storage.csproj" />
2816
<ProjectReference Include="..\Files.Shared\Files.Shared.csproj" />

src/Files.App/Files.App.csproj

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- Copyright (c) 2024 Files Community. Licensed under the MIT License. See the LICENSE. -->
1+
<!-- Copyright (c) 2024 Files Community. Licensed under the MIT License. See the LICENSE. -->
22
<Project Sdk="Microsoft.NET.Sdk">
33

44
<PropertyGroup>
@@ -17,28 +17,17 @@
1717
<DisableXbfLineInfo>False</DisableXbfLineInfo>
1818
<AppxBundlePlatforms>x86|x64|arm64</AppxBundlePlatforms>
1919
<HoursBetweenUpdateChecks>0</HoursBetweenUpdateChecks>
20-
<Nullable>Enable</Nullable>
2120
<ApplicationManifest>app.manifest</ApplicationManifest>
22-
<Platforms>x86;x64;arm64</Platforms>
23-
<RuntimeIdentifiers>win-x86;win-x64;win-arm64</RuntimeIdentifiers>
2421
<UseWinUI>true</UseWinUI>
2522
<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
26-
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
27-
<Configurations>Debug;Release;Stable;Preview;Store</Configurations>
2823
<CsWinRTIncludes>Files.App.Server;Microsoft.UI.Content.ContentExternalOutputLink;Microsoft.UI.Content.IContentExternalOutputLink</CsWinRTIncludes>
2924
<PublishDir>bin\$(Configuration)\$(TargetFramework)\$(RuntimeIdentifier)\publish\</PublishDir>
3025
<PublishReadyToRun Condition="'$(Configuration)' == 'Debug'">False</PublishReadyToRun>
3126
<PublishReadyToRun Condition="'$(Configuration)' != 'Debug'">True</PublishReadyToRun>
3227
<PublishReadyToRunComposite Condition="'$(Configuration)' != 'Debug'">True</PublishReadyToRunComposite>
3328
<ApplicationIcon>..\Files.App (Package)\Assets\AppTiles\Dev\Logo.ico</ApplicationIcon>
34-
</PropertyGroup>
35-
36-
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
37-
<DefineConstants>TRACE;DEBUG;NETFX_CORE;DISABLE_XAML_GENERATED_MAIN</DefineConstants>
38-
</PropertyGroup>
39-
<PropertyGroup Condition="'$(Configuration)' != 'Debug'">
40-
<DefineConstants>TRACE;RELEASE;NETFX_CORE;DISABLE_XAML_GENERATED_MAIN</DefineConstants>
41-
<Optimize>true</Optimize>
29+
<DefineConstants Condition="'$(Configuration)' == 'Debug'">DISABLE_XAML_GENERATED_MAIN</DefineConstants>
30+
<DefineConstants Condition="'$(Configuration)' != 'Debug'">DISABLE_XAML_GENERATED_MAIN</DefineConstants>
4231
</PropertyGroup>
4332

4433
<ItemGroup>

src/Files.Core.SourceGenerator/Files.Core.SourceGenerator.csproj

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,14 @@
1-
<!-- Copyright (c) 2024 Files Community. Licensed under the MIT License. See the LICENSE. -->
1+
<!-- Copyright (c) 2024 Files Community. Licensed under the MIT License. See the LICENSE. -->
22
<Project Sdk="Microsoft.NET.Sdk">
33

44
<PropertyGroup>
55
<TargetFramework>netstandard2.0</TargetFramework>
66
<LangVersion>latest</LangVersion>
7-
<Nullable>enable</Nullable>
87
<IncludeBuildOutput>false</IncludeBuildOutput>
98
<PlatformTarget>AnyCPU</PlatformTarget>
109
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
1110
</PropertyGroup>
1211

13-
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
14-
<DefineConstants>TRACE;DEBUG;NETFX_CORE</DefineConstants>
15-
</PropertyGroup>
16-
<PropertyGroup Condition="'$(Configuration)' != 'Debug'">
17-
<DefineConstants>TRACE;RELEASE;NETFX_CORE</DefineConstants>
18-
<Optimize>true</Optimize>
19-
</PropertyGroup>
20-
2112
<ItemGroup>
2213
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.11.0" PrivateAssets="all" />
2314
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.4" PrivateAssets="all" />
Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,9 @@
1-
<!-- Copyright (c) 2024 Files Community. Licensed under the MIT License. See the LICENSE. -->
1+
<!-- Copyright (c) 2024 Files Community. Licensed under the MIT License. See the LICENSE. -->
22
<Project Sdk="Microsoft.NET.Sdk">
33

44
<PropertyGroup>
55
<TargetFramework>net8.0</TargetFramework>
6-
<Nullable>enable</Nullable>
76
<IsTrimmable>true</IsTrimmable>
8-
<Configurations>Debug;Release;Stable;Preview;Store</Configurations>
9-
<Platforms>x86;x64;arm64</Platforms>
10-
<RuntimeIdentifiers>win-x86;win-x64;win-arm64</RuntimeIdentifiers>
11-
</PropertyGroup>
12-
13-
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
14-
<DefineConstants>TRACE;DEBUG;NETFX_CORE</DefineConstants>
15-
</PropertyGroup>
16-
<PropertyGroup Condition="'$(Configuration)' != 'Debug'">
17-
<DefineConstants>TRACE;RELEASE;NETFX_CORE</DefineConstants>
18-
<Optimize>true</Optimize>
197
</PropertyGroup>
208

219
</Project>

src/Files.Shared/Files.Shared.csproj

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,7 @@
33

44
<PropertyGroup>
55
<TargetFramework>net8.0</TargetFramework>
6-
<Nullable>enable</Nullable>
76
<IsTrimmable>true</IsTrimmable>
8-
<Configurations>Debug;Release;Stable;Preview;Store</Configurations>
9-
<Platforms>x86;x64;arm64</Platforms>
10-
<RuntimeIdentifiers>win-x86;win-x64;win-arm64</RuntimeIdentifiers>
11-
</PropertyGroup>
12-
13-
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
14-
<DefineConstants>TRACE;DEBUG;NETFX_CORE</DefineConstants>
15-
</PropertyGroup>
16-
<PropertyGroup Condition="'$(Configuration)' != 'Debug'">
17-
<DefineConstants>TRACE;RELEASE;NETFX_CORE</DefineConstants>
18-
<Optimize>true</Optimize>
197
</PropertyGroup>
208

219
<ItemGroup>

0 commit comments

Comments
 (0)