Skip to content

Commit

Permalink
chore: deprecate Clocks.Net
Browse files Browse the repository at this point in the history
  • Loading branch information
hcoona committed Jul 29, 2024
1 parent e43e391 commit acf009c
Show file tree
Hide file tree
Showing 46 changed files with 5,639 additions and 8,223 deletions.
30 changes: 17 additions & 13 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,14 @@
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x64</Platform>

<!-- https://learn.microsoft.com/en-us/dotnet/core/runtime-config/globalization#invariant-mode -->
<InvariantGlobalization>true</InvariantGlobalization>

<ProduceReferenceAssembly Condition="'$(MSBuildProjectExtension)' == '.csproj'">true</ProduceReferenceAssembly>

<Deterministic>true</Deterministic>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
<!-- Pipeline build must follow lock file instead of update them. -->
<RestoreLockedMode Condition="'$(ContinuousIntegrationBuild)' == 'true'">true</RestoreLockedMode>
<RestorePackagesConfig>true</RestorePackagesConfig>
<RestoreUseStaticGraphEvaluation>true</RestoreUseStaticGraphEvaluation>
Expand All @@ -21,14 +25,22 @@
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
<EnablePackageVersionOverride>false</EnablePackageVersionOverride>
</PropertyGroup>

<!-- https://github.com/dotnet/fsharp/issues/12315 -->
<DisableImplicitFSharpCoreReference Condition="'$(MSBuildProjectExtension)' == '.fsproj'">true</DisableImplicitFSharpCoreReference>
<!-- https://github.com/NuGet/Home/issues/11949#issuecomment-1212508955 -->
<!-- Also for Microsoft.CodeAnalysis.NetAnalyzers -->
<NoWarn>NU1507</NoWarn>
<!-- TF_BUILD is automatically set in Azure Pipelines -->
<!-- https://docs.microsoft.com/en-us/azure/devops/pipelines/build/variables?view=azure-devops&tabs=yaml#system-variables-devops-services -->
<PropertyGroup Condition="'$(TF_BUILD)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>

<PropertyGroup Label="Nerdbank.GitVersioning">
<!--
https://github.com/dotnet/Nerdbank.GitVersioning/blob/v3.5.119/doc/msbuild.md#reducing-getbuildversion-invocations -->
<GitVersionBaseDirectory>$(MSBuildThisFileDirectory)</GitVersionBaseDirectory>
</PropertyGroup>

<Sdk Name="DotNet.ReproducibleBuilds.Isolated" />

<ItemGroup Label="Global References" Condition="'$(MSBuildProjectExtension)' != '.proj'">
<PackageReference Include="Nerdbank.GitVersioning" PrivateAssets="All" IncludeAssets="Analyzers;Build" />
<PackageReference Include="DotNet.ReproducibleBuilds" PrivateAssets="All" IncludeAssets="Analyzers;Build" />
Expand All @@ -37,14 +49,6 @@
<PackageReference Include="StyleCop.Analyzers" PrivateAssets="All" IncludeAssets="Analyzers;Build" />
</ItemGroup>

<!-- TF_BUILD is automatically set in Azure Pipelines -->
<!-- https://docs.microsoft.com/en-us/azure/devops/pipelines/build/variables?view=azure-devops&tabs=yaml#system-variables-devops-services -->
<PropertyGroup Condition="'$(TF_BUILD)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>

<Sdk Name="DotNet.ReproducibleBuilds.Isolated" />

<PropertyGroup Label="SourceLink">
<ProjectUrl>https://github.com/hcoona/OneDotNet</ProjectUrl>
<RepositoryUrl>https://github.com/hcoona/OneDotNet.git</RepositoryUrl>
Expand Down
3 changes: 3 additions & 0 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,13 @@
</ItemGroup>
<ItemGroup Label="Third-party">
<PackageVersion Include="CommandLineParser" Version="2.9.1" />
<PackageVersion Include="Clocks.Abstraction" Version="1.4.0" />
<PackageVersion Include="Clocks.System" Version="1.4.0" />
<PackageVersion Include="Google.OrTools" Version="9.10.4067" />
<PackageVersion Include="Google.Protobuf" Version="3.27.1 " />
<PackageVersion Include="HtmlAgilityPack" Version="1.11.61" />
<PackageVersion Include="Itc4net" Version="1.2.1" />
<PackageVersion Include="Microsoft.Bcl.TimeProvider" Version="8.0.1" />
<PackageVersion Include="Microsoft.Playwright" Version="1.44.0" />
<PackageVersion Include="Newtonsoft.Json" Version="13.0.3" />
<PackageVersion Include="Nito.Guids" Version="1.1.1" />
Expand Down
15 changes: 10 additions & 5 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,13 @@ dotnet pack <project_path> -c Release

These packages are deprecated and source code removed. The link can redirect you to the last commit before removing it.

* link:https://github.com/hcoona/OneDotNet/tree/5ab8904/TimeLimiter[TimeLimiter]. This package is ill-designed & has performance issue. Please do not use it.
* link:https://github.com/hcoona/OneDotNet/tree/b687bee/SwigDoc2Latex[SwigDoc2Latex]. Converting link:https://www.swig.org/[SWIG(Simplified Wrapper and Interface Generator)] documents to LaTeX format. This application is unmaintained & may not work due to website changing.
* link:https://github.com/hcoona/OneDotNet/tree/73a338a/GeothermalResearchInstitute[GeothermalResearchInstitute]. This is a part-time work for Geothermal Research Institute. Didn't maintain.
* link:https://github.com/hcoona/OneDotNet/tree/7b14411/GrpcAdapter[
HCOONa.Grpc.MicrosoftExtension.Logging]. Deprecate this package due to `Grpc.Core` is deprecated. See link:https://github.com/grpc/grpc/tree/v1.49.1/src/csharp/README.md[gRPC C# README.md] for further details.
* link:https://github.com/hcoona/OneDotNet/tree/7cc2064/srcs/public/Clocks.Net[Clocks.Net].
This package is superseded by .NET 8.0 native API link:https://learn.microsoft.com/en-us/dotnet/api/system.timeprovider?view=net-8.0[TimeProvider] or backport package link:https://www.nuget.org/packages/Microsoft.Bcl.TimeProvider/[Microsoft.Bcl.TimeProvider].
* link:https://github.com/hcoona/OneDotNet/tree/5ab8904/TimeLimiter[TimeLimiter].
This package is ill-designed & has performance issue. Please do not use it.
* link:https://github.com/hcoona/OneDotNet/tree/b687bee/SwigDoc2Latex[SwigDoc2Latex].
Converting link:https://www.swig.org/[SWIG(Simplified Wrapper and Interface Generator)] documents to LaTeX format. This application is unmaintained & may not work due to website changing.
* link:https://github.com/hcoona/OneDotNet/tree/73a338a/GeothermalResearchInstitute[GeothermalResearchInstitute].
This is a part-time work for Geothermal Research Institute. Didn't maintain.
* link:https://github.com/hcoona/OneDotNet/tree/7b14411/GrpcAdapter[HCOONa.Grpc.MicrosoftExtension.Logging].
Deprecate this package due to `Grpc.Core` is deprecated. See link:https://github.com/grpc/grpc/tree/v1.49.1/src/csharp/README.md[gRPC C# README.md] for further details.
6 changes: 0 additions & 6 deletions codelab/dirs.proj

This file was deleted.

6 changes: 3 additions & 3 deletions dirs.proj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.Build.Traversal">
<ItemGroup>
<ProjectReference Include="codelab\dirs.proj" />
<ProjectReference Include="srcs\dirs.proj" />
<ProjectReference Include="tests\dirs.proj" />
<ProjectReference Include="codelab\**\*.*proj" />
<ProjectReference Include="srcs\**\*.*proj" />
<ProjectReference Include="tests\**\*.csproj" />
</ItemGroup>
</Project>
27 changes: 27 additions & 0 deletions packages.lock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"version": 2,
"dependencies": {
".NETFramework,Version=v4.5": {
"Microsoft.Build.CopyOnWrite": {
"type": "Direct",
"requested": "[1.0.315, )",
"resolved": "1.0.315",
"contentHash": "z0WkyvnBFWCzgLJ1ORD9t6R5nvQSlTl7ernOPq2a6bdfJEGWRQbgiew4TFD18hQjBE8JGRDtWAkFDzhkRK8LNg=="
},
"Microsoft.NETFramework.ReferenceAssemblies": {
"type": "Direct",
"requested": "[1.0.3, )",
"resolved": "1.0.3",
"contentHash": "vUc9Npcs14QsyOD01tnv/m8sQUnGTGOw1BCmKcv77LBJY7OxhJ+zJF7UD/sCL3lYNFuqmQEVlkfS4Quif6FyYg==",
"dependencies": {
"Microsoft.NETFramework.ReferenceAssemblies.net45": "1.0.3"
}
},
"Microsoft.NETFramework.ReferenceAssemblies.net45": {
"type": "Transitive",
"resolved": "1.0.3",
"contentHash": "dcSLNuUX2rfZejsyta2EWZ1W5U6ucbFt697lRg1qiTlTM5ZlYv4uAvuxE6ROy6xLWWhLhOaReCDxkhxcajRYtQ=="
}
}
}
}
6 changes: 0 additions & 6 deletions srcs/dirs.proj

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@

<ItemGroup>
<PackageReference Include="CommandLineParser" />
<PackageReference Include="Clocks.System" />
<PackageReference Include="Microsoft.Playwright" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="$(EnlistmentRoot)\srcs\public\Clocks.Net\Clocks.System\Clocks.System.csproj" />
<ProjectReference Include="$(EnlistmentRoot)\srcs\public\RateLimiter\RateLimiter.csproj" />
</ItemGroup>

Expand Down
Loading

0 comments on commit acf009c

Please sign in to comment.