Skip to content

Commit 61902ba

Browse files
authored
Clean-up files in repo (#2590)
* Clean-up files in repo * Update Directory.Build.props
1 parent 28ad8f7 commit 61902ba

File tree

15 files changed

+25
-93
lines changed

15 files changed

+25
-93
lines changed

Directory.Build.props

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
<Project>
22

3-
<Import Project="Sdk.props"
4-
Sdk="Microsoft.DotNet.Arcade.Sdk"
5-
Condition="'$(DisableArcade)' != '1'" />
3+
<Import Project="Sdk.props" Sdk="Microsoft.DotNet.Arcade.Sdk" Condition="'$(DisableArcade)' != '1'" />
64

75
<PropertyGroup>
8-
<NoWarn>$(NoWarn);NU5125;CS0618</NoWarn>
96
<PackageLicenseExpression>MIT</PackageLicenseExpression>
10-
<LangVersion>13.0</LangVersion>
117
<PackageProjectUrl>https://github.com/dotnet/command-line-api</PackageProjectUrl>
8+
<LangVersion>latest</LangVersion>
9+
<TreatWarningsAsErrors Condition="'$(TreatWarningsAsErrors)' == '' and '$(ContinuousIntegrationBuild)' == 'true'">true</TreatWarningsAsErrors>
1210
</PropertyGroup>
1311

1412
<PropertyGroup>
15-
<TargetFrameworkForNETSDK Condition="'$(DotNetBuildSourceOnly)' == 'true'">$(NetCurrent)</TargetFrameworkForNETSDK>
16-
<TargetFrameworkForNETSDK Condition="'$(DotNetBuildSourceOnly)' != 'true'">net8.0</TargetFrameworkForNETSDK>
13+
<NetMinimum Condition="'$(DotNetBuildSourceOnly)' == 'true'">$(NetCurrent)</NetMinimum>
14+
<NetFrameworkMinimum>net472</NetFrameworkMinimum>
1715
</PropertyGroup>
1816

1917
</Project>

Directory.Build.targets

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<Project>
22

3-
<Import Project="Sdk.targets"
4-
Sdk="Microsoft.DotNet.Arcade.Sdk"
5-
Condition="'$(DisableArcade)' != '1'" />
3+
<Import Project="Sdk.targets" Sdk="Microsoft.DotNet.Arcade.Sdk" Condition="'$(DisableArcade)' != '1'" />
64

75
<PropertyGroup Condition="'$(DisableArcade)' == '1' and $(MSBuildProjectName.EndsWith('.Tests'))">
86
<DefaultExcludesInProjectFolder>$(DefaultExcludesInProjectFolder);TestResults\**</DefaultExcludesInProjectFolder>

Directory.Packages.props

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,27 @@
22

33
<PropertyGroup>
44
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
5-
<CentralPackageTransitivePinningEnabled>false</CentralPackageTransitivePinningEnabled>
5+
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
66
<!-- Using multiple feeds isn't supported by Maestro: https://github.com/dotnet/arcade/issues/14155. -->
77
<NoWarn>$(NoWarn);NU1507</NoWarn>
88
</PropertyGroup>
99

1010
<ItemGroup>
1111
<!-- Roslyn dependencies -->
12-
<PackageVersion Include="Microsoft.CodeAnalysis" Version="4.0.1" />
13-
<PackageVersion Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.3" />
14-
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp" Version="4.0.1" />
1512
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp.Scripting" Version="4.0.1" />
16-
<!-- Runtime dependencies -->
17-
<PackageVersion Include="Microsoft.Extensions.Configuration.CommandLine" Version="8.0.0" />
18-
<PackageVersion Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.2" />
19-
<PackageVersion Include="Microsoft.Extensions.Hosting" Version="8.0.1" />
2013
<!-- external dependencies -->
2114
<PackageVersion Include="ApprovalTests" Version="7.0.0-beta.3" />
2215
<PackageVersion Include="BenchmarkDotNet" Version="0.13.1" />
2316
<PackageVersion Include="AwesomeAssertions" Version="8.1.0" />
24-
<PackageVersion Include="Microsoft.CSharp" Version="4.7.0" />
2517
<PackageVersion Include="Microsoft.DotNet.PlatformAbstractions" Version="3.1.6" />
2618
<PackageVersion Include="Newtonsoft.Json" Version="13.0.3" />
27-
<PackageVersion Include="System.Memory" Version="4.5.4" />
28-
<PackageVersion Include="system.reactive.core" Version="6.0.0" />
19+
<PackageVersion Include="System.Memory" Version="4.5.5" />
2920
</ItemGroup>
3021

3122
<ItemGroup Condition="'$(DisableArcade)' == '1'">
3223
<!-- The xunit version should be kept in sync with the one that Arcade promotes -->
33-
<PackageVersion Include="xunit" Version="2.4.2" />
34-
<PackageVersion Include="xunit.runner.visualstudio" Version="2.4.3" />
24+
<PackageVersion Include="xunit" Version="2.9.2" />
25+
<PackageVersion Include="xunit.runner.visualstudio" Version="3.0.2" />
3526
</ItemGroup>
3627

3728
</Project>

NuGet.config

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<configuration>
3-
<!-- Only specify feed for Arcade SDK (see https://github.com/Microsoft/msbuild/issues/2982) -->
43
<packageSources>
54
<clear />
65
<add key="dotnet-public" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json" />
7-
<add key="dotnet5" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet5/nuget/v3/index.json" />
8-
<add key="dotnet5-transport" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet5-transport/nuget/v3/index.json" />
96
<add key="dotnet-eng" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json" />
107
<add key="dotnet-tools" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json" />
118
<add key="dotnet-libraries" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-libraries/nuget/v3/index.json" />
12-
<add key="dotnet8" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8/nuget/v3/index.json" />
139
</packageSources>
1410
<disabledPackageSources />
1511
</configuration>

System.CommandLine.v3.ncrunchsolution

Lines changed: 0 additions & 12 deletions
This file was deleted.

repack.ps1

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/System.CommandLine.ApiCompatibility.Tests/System.CommandLine.ApiCompatibility.Tests.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>$(TargetFrameworkForNETSDK)</TargetFramework>
5-
<NoWarn>$(NoWarn);IDE1006</NoWarn>
4+
<TargetFramework>$(NetMinimum)</TargetFramework>
65
</PropertyGroup>
76

87
<ItemGroup>

src/System.CommandLine.Benchmarks/System.CommandLine.Benchmarks.csproj

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,13 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4+
<TargetFramework>$(NetMinimum)</TargetFramework>
45
<OutputType>Exe</OutputType>
5-
<PlatformTarget>AnyCPU</PlatformTarget>
6-
7-
<!-- Avoid spawning any-long living compiler processes to avoid BenchmarkDotNet issues with "file in use",
8-
and automation failing to clean up the folders once the runs are over -->
9-
<UseSharedCompilation>false</UseSharedCompilation>
10-
11-
<!-- Supported target frameworks -->
12-
<TargetFramework>$(TargetFrameworkForNETSDK)</TargetFramework>
13-
14-
<!-- This repo does not produce any libraries, therefore generating docs is disabled -->
15-
<GenerateDocumentationFile>False</GenerateDocumentationFile>
16-
17-
<!-- every warning is important, we want to enforce best practices here to keep high quality of the code and avoid common mistakes -->
18-
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
19-
<WarningLevel>4</WarningLevel>
20-
21-
<SignAssembly>false</SignAssembly>
226
</PropertyGroup>
237

248
<ItemGroup>
259
<Compile Remove="Input\Sample1.Main.cs" />
26-
</ItemGroup>
27-
28-
<ItemGroup>
29-
<None Include="Input\Sample1.Main.cs">
30-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
31-
</None>
10+
<None Include="Input\Sample1.Main.cs" CopyToOutputDirectory="PreserveNewest" />
3211
</ItemGroup>
3312

3413
<ItemGroup>

src/System.CommandLine.Suggest.Tests/EndToEndTestApp/EndToEndTestApp.csproj

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

33
<PropertyGroup>
4+
<TargetFramework>$(NetMinimum)</TargetFramework>
45
<OutputType>Exe</OutputType>
5-
<TargetFramework>$(TargetFrameworkForNETSDK)</TargetFramework>
66
<RuntimeIdentifiers>win-x64;linux-x64;osx-x64;osx-arm64</RuntimeIdentifiers>
77
<IsTestUtilityProject>true</IsTestUtilityProject>
88
</PropertyGroup>

src/System.CommandLine.Suggest.Tests/dotnet-suggest.Tests.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>$(TargetFrameworkForNETSDK)</TargetFramework>
4+
<TargetFramework>$(NetMinimum)</TargetFramework>
55
<DefaultExcludesInProjectFolder>$(DefaultExcludesInProjectFolder);EndToEndTestApp\**</DefaultExcludesInProjectFolder>
66
</PropertyGroup>
77

0 commit comments

Comments
 (0)