Skip to content

Commit 2bb320a

Browse files
committed
Remove final conditional property groups
1 parent 4eb486f commit 2bb320a

File tree

4 files changed

+3
-34
lines changed

4 files changed

+3
-34
lines changed

source/Calamari.Common/Calamari.Common.csproj

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,10 @@
66
<PlatformTarget>anycpu</PlatformTarget>
77
<TargetFramework>netstandard2.1</TargetFramework>
88
</PropertyGroup>
9-
<PropertyGroup Condition=" '$(TargetFramework)' == 'net462' ">
10-
<DefineConstants>$(DefineConstants);USE_ALPHAFS_FOR_LONG_FILE_PATH_SUPPORT;HAS_SSL3</DefineConstants>
11-
</PropertyGroup>
12-
<PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard2.1' ">
9+
<PropertyGroup>
1310
<DefineConstants>$(DefineConstants);USE_NUGET_V3_LIBS;WORKAROUND_FOR_EMPTY_STRING_BUG;HAS_NULLABLE_REF_TYPES</DefineConstants>
1411
</PropertyGroup>
1512

16-
<PropertyGroup Condition="'$(TargetFramework)' == 'net462' ">
17-
<NoWarn>CS8600;CS8601;CS8602;CS8603;CS8604</NoWarn>
18-
</PropertyGroup>
19-
2013
<ItemGroup>
2114
<PackageReference Include="NuGet.Commands" Version="5.11.5" />
2215
<PackageReference Include="System.IO.FileSystem.AccessControl" Version="4.3.0" />

source/Calamari.Shared/Calamari.Shared.csproj

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,9 @@
2525
<Nullable>enable</Nullable>
2626
<TargetFramework>netstandard2.1</TargetFramework>
2727
</PropertyGroup>
28-
<PropertyGroup Condition=" '$(TargetFramework)' == 'net462' ">
29-
<DefineConstants>$(DefineConstants);NETFX;USE_NUGET_V2_LIBS;USE_OCTODIFF_EXE;</DefineConstants>
30-
<PlatformTarget>anycpu</PlatformTarget>
31-
</PropertyGroup>
32-
<PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard2.1' ">
28+
<PropertyGroup>
3329
<DefineConstants>$(DefineConstants);USE_NUGET_V3_LIBS</DefineConstants>
3430
</PropertyGroup>
35-
<PropertyGroup Condition="'$(TargetFramework)' == 'net462' ">
36-
<NoWarn>CS8600;CS8601;CS8602;CS8603;CS8604;DE0003;DE0004</NoWarn>
37-
</PropertyGroup>
3831

3932
<ItemGroup>
4033
<ProjectReference Include="..\Calamari.CloudAccounts\Calamari.CloudAccounts.csproj" />

source/Calamari.Tests/Calamari.Tests.csproj

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,9 @@
1313
<LangVersion>10</LangVersion>
1414
<TargetFramework>net6.0</TargetFramework>
1515
</PropertyGroup>
16-
<PropertyGroup Condition=" '$(TargetFramework)' == 'net6.0' ">
16+
<PropertyGroup>
1717
<DefineConstants>$(DefineConstants);NETCORE;AZURE_CORE;JAVA_SUPPORT</DefineConstants>
1818
</PropertyGroup>
19-
<PropertyGroup Condition=" '$(TargetFramework)' == 'net462' ">
20-
<DefineConstants>$(DefineConstants);NETFX;IIS_SUPPORT;USE_NUGET_V2_LIBS;USE_OCTODIFF_EXE;</DefineConstants>
21-
</PropertyGroup>
2219
<ItemGroup>
2320
<PackageReference Include="System.DirectoryServices.AccountManagement" Version="4.7.0" />
2421
<PackageReference Include="WireMock.Net" Version="1.6.9" />
@@ -247,24 +244,18 @@
247244
<CreateItem Include="@(PackageDefinitions)" Condition="'%(Name)' == 'ScriptCS'">
248245
<Output TaskParameter="Include" ItemName="ScriptCSRef" />
249246
</CreateItem>
250-
<CreateItem Include="@(PackageDefinitions)" Condition=" '$(TargetFramework)' == 'net462' And '%(Name)' == 'NuGet.CommandLine'">
251-
<Output TaskParameter="Include" ItemName="NuGetCommandLineRef" />
252-
</CreateItem>
253247
<PropertyGroup>
254248
<ScriptCS>@(ScriptCSRef->'%(ResolvedPath)')/tools/*.*</ScriptCS>
255249
<ScriptCSExe Condition="'$(TargetFramework)' == 'net6.0'">@(ScriptCSRef->'%(ResolvedPath)')/tools/*.exe</ScriptCSExe>
256-
<NuGetCommandLine>@(NuGetCommandLineRef->'%(ResolvedPath)')/tools/*.*</NuGetCommandLine>
257250
</PropertyGroup>
258251
<ItemGroup>
259252
<ScriptCSFiles Include="$(ScriptCS)" />
260253
<ScriptCSFilesExe Condition="'$(TargetFramework)' == 'net6.0'" Include="$(ScriptCSExe)" />
261254
<DotnetScriptFiles Condition="'$(TargetFramework)' == 'net6.0'" Include="$(MSBuildProjectDirectory)/../Calamari.Scripting/DotnetScript/dotnet-script.*.zip" />
262255
<DotnetScriptFilesExe Condition="'$(TargetFramework)' == 'net6.0'" Include="$(OutDir)/dotnet-script/*.sh;$(OutDir)/dotnet-script/*.exe" />
263-
<NuGetFiles Include="$(NuGetCommandLine)" Condition=" '$(TargetFramework)' == 'net462'" />
264256
</ItemGroup>
265257
<Exec Command="chmod +x %(ScriptCSFilesExe.Identity)" IgnoreExitCode="true" Condition="'$(TargetFramework)' == 'net6.0'" />
266258
<Copy SourceFiles="@(ScriptCSFiles)" DestinationFolder="$(OutDir)/ScriptCS/" SkipUnchangedFiles="true" />
267-
<Copy SourceFiles="@(NuGetFiles)" DestinationFolder="$(OutDir)/NuGet/" SkipUnchangedFiles="true" Condition="'$(TargetFramework)' == 'net462'" />
268259
<Unzip SourceFiles="@(DotnetScriptFiles)" DestinationFolder="$(OutDir)/" SkipUnchangedFiles="true" />
269260
<Exec Command="chmod +x %(DotnetScriptFilesExe.Identity)" IgnoreExitCode="true" Condition="'$(TargetFramework)' == 'net6.0'" />
270261
<Copy SourceFiles="@(ScriptCSFiles)" DestinationFolder="$(PublishDir)/ScriptCS/" Condition="'$(PublishDir)' != ''" />

source/Calamari/Calamari.csproj

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,9 @@
2121
<LangVersion>10</LangVersion>
2222
<TargetFramework>net6.0</TargetFramework>
2323
</PropertyGroup>
24-
<PropertyGroup Condition=" '$(TargetFramework)' == 'net462' ">
25-
<DefineConstants>$(DefineConstants);IIS_SUPPORT;</DefineConstants>
26-
<PlatformTarget>anycpu</PlatformTarget>
27-
</PropertyGroup>
2824
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
2925
<DefineConstants>$(DefineConstants);DEBUG</DefineConstants>
3026
</PropertyGroup>
31-
<!--
32-
The net462 build is the one that pulls in the AWS and Azure extensions. We treat
33-
this build as the "Cloud" build.
34-
-->
3527
<ItemGroup>
3628
<ProjectReference Include="..\Calamari.Aws\Calamari.Aws.csproj" />
3729
<ProjectReference Include="..\Calamari.Azure\Calamari.Azure.csproj" />

0 commit comments

Comments
 (0)