Refactor and update test projects, remove obsolete tests, and upgrade dependencies
- Deleted obsolete test files for SchedulerAuditService and SchedulerMongoSessionFactory. - Removed unused TestDataFactory class. - Updated project files for Mongo.Tests to remove references to deleted files. - Upgraded BouncyCastle.Cryptography package to version 2.6.2 across multiple projects. - Replaced Microsoft.Extensions.Http.Polly with Microsoft.Extensions.Http.Resilience in Zastava.Webhook project. - Updated NetEscapades.Configuration.Yaml package to version 3.1.0 in Configuration library. - Upgraded Pkcs11Interop package to version 5.1.2 in Cryptography libraries. - Refactored Argon2idPasswordHasher to use BouncyCastle for hashing instead of Konscious. - Updated JsonSchema.Net package to version 7.3.2 in Microservice project. - Updated global.json to use .NET SDK version 10.0.101.
This commit is contained in:
@@ -2,23 +2,16 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<StellaOpsRepoRoot Condition="'$(StellaOpsRepoRoot)' == ''">$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)'))</StellaOpsRepoRoot>
|
||||
<StellaOpsLocalNuGetSource Condition="'$(StellaOpsLocalNuGetSource)' == ''">$([System.IO.Path]::GetFullPath('$(StellaOpsRepoRoot)local-nugets/'))</StellaOpsLocalNuGetSource>
|
||||
<StellaOpsDotNetPublicSource Condition="'$(StellaOpsDotNetPublicSource)' == ''">https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json</StellaOpsDotNetPublicSource>
|
||||
<StellaOpsNuGetOrgSource Condition="'$(StellaOpsNuGetOrgSource)' == ''">https://api.nuget.org/v3/index.json</StellaOpsNuGetOrgSource>
|
||||
<_StellaOpsDefaultRestoreSources>$(StellaOpsLocalNuGetSource);$(StellaOpsDotNetPublicSource);$(StellaOpsNuGetOrgSource)</_StellaOpsDefaultRestoreSources>
|
||||
<_StellaOpsOriginalRestoreSources Condition="'$(_StellaOpsOriginalRestoreSources)' == ''">$(RestoreSources)</_StellaOpsOriginalRestoreSources>
|
||||
<RestorePackagesPath Condition="'$(RestorePackagesPath)' == ''">$([System.IO.Path]::GetFullPath('$(StellaOpsRepoRoot).nuget/packages'))</RestorePackagesPath>
|
||||
<StellaOpsNuGetMirrorSource Condition="'$(StellaOpsNuGetMirrorSource)' == ''">https://mirrors.ablera.dev/nuget/nuget-mirror/v3/index.json</StellaOpsNuGetMirrorSource>
|
||||
<RestoreConfigFile Condition="'$(RestoreConfigFile)' == ''">$([System.IO.Path]::Combine('$(StellaOpsRepoRoot)','NuGet.config'))</RestoreConfigFile>
|
||||
<RestoreSources Condition="'$(_StellaOpsOriginalRestoreSources)' == ''">$(_StellaOpsDefaultRestoreSources)</RestoreSources>
|
||||
<RestoreSources Condition="'$(_StellaOpsOriginalRestoreSources)' != ''">$(_StellaOpsDefaultRestoreSources);$(_StellaOpsOriginalRestoreSources)</RestoreSources>
|
||||
<DisableImplicitNuGetFallbackFolder>true</DisableImplicitNuGetFallbackFolder>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<StellaOpsEnableCryptoPro Condition="'$(StellaOpsEnableCryptoPro)' == ''">false</StellaOpsEnableCryptoPro>
|
||||
<NoWarn>$(NoWarn);NU1608;NU1605</NoWarn>
|
||||
<WarningsNotAsErrors>$(WarningsNotAsErrors);NU1608;NU1605</WarningsNotAsErrors>
|
||||
<RestoreNoWarn>$(RestoreNoWarn);NU1608;NU1605</RestoreNoWarn>
|
||||
<NoWarn>$(NoWarn);NU1608;NU1605;NU1202</NoWarn>
|
||||
<WarningsNotAsErrors>$(WarningsNotAsErrors);NU1608;NU1605;NU1202</WarningsNotAsErrors>
|
||||
<RestoreNoWarn>$(RestoreNoWarn);NU1608;NU1605;NU1202</RestoreNoWarn>
|
||||
<RestoreWarningsAsErrors></RestoreWarningsAsErrors>
|
||||
<RestoreTreatWarningsAsErrors>false</RestoreTreatWarningsAsErrors>
|
||||
<RestoreDisableImplicitNuGetFallbackFolder>true</RestoreDisableImplicitNuGetFallbackFolder>
|
||||
@@ -31,6 +24,11 @@
|
||||
<DisableImplicitNuGetFallbackFolder>true</DisableImplicitNuGetFallbackFolder>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<PackageTargetFallback>$(PackageTargetFallback);net8.0;net7.0;net6.0;netstandard2.1;netstandard2.0</PackageTargetFallback>
|
||||
<AssetTargetFallback>$(AssetTargetFallback);net8.0;net7.0;net6.0;netstandard2.1;netstandard2.0</AssetTargetFallback>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(StellaOpsEnableCryptoPro)' == 'true'">
|
||||
<DefineConstants>$(DefineConstants);STELLAOPS_CRYPTO_PRO</DefineConstants>
|
||||
</PropertyGroup>
|
||||
@@ -43,4 +41,49 @@
|
||||
<PackageReference Update="Microsoft.Extensions.Configuration.Abstractions" Version="10.0.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<!-- .NET 10 compatible package version overrides -->
|
||||
<ItemGroup>
|
||||
<!-- Cryptography packages - updated for net10.0 compatibility -->
|
||||
<PackageReference Update="BouncyCastle.Cryptography" Version="2.6.2" />
|
||||
<PackageReference Update="Pkcs11Interop" Version="5.1.2" />
|
||||
|
||||
<!-- Resilience - Polly 8.x for .NET 6+ -->
|
||||
<PackageReference Update="Polly" Version="8.5.2" />
|
||||
<PackageReference Update="Polly.Core" Version="8.5.2" />
|
||||
|
||||
<!-- YAML - updated for net10.0 -->
|
||||
<PackageReference Update="YamlDotNet" Version="16.3.0" />
|
||||
|
||||
<!-- JSON Schema packages -->
|
||||
<PackageReference Update="JsonSchema.Net" Version="7.3.2" />
|
||||
<PackageReference Update="Json.More.Net" Version="2.1.0" />
|
||||
<PackageReference Update="JsonPointer.Net" Version="5.1.0" />
|
||||
|
||||
<!-- HTML parsing -->
|
||||
<PackageReference Update="AngleSharp" Version="1.2.0" />
|
||||
|
||||
<!-- Scheduling -->
|
||||
<PackageReference Update="Cronos" Version="0.9.0" />
|
||||
|
||||
<!-- Testing - xUnit 2.9.3 for .NET 10 -->
|
||||
<PackageReference Update="xunit" Version="2.9.3" />
|
||||
<PackageReference Update="xunit.assert" Version="2.9.3" />
|
||||
<PackageReference Update="xunit.extensibility.core" Version="2.9.3" />
|
||||
<PackageReference Update="xunit.extensibility.execution" Version="2.9.3" />
|
||||
<PackageReference Update="xunit.runner.visualstudio" Version="3.0.1" />
|
||||
<PackageReference Update="xunit.abstractions" Version="2.0.3" />
|
||||
|
||||
<!-- JSON -->
|
||||
<PackageReference Update="Newtonsoft.Json" Version="13.0.4" />
|
||||
|
||||
<!-- Annotations -->
|
||||
<PackageReference Update="JetBrains.Annotations" Version="2024.3.0" />
|
||||
|
||||
<!-- Async interfaces -->
|
||||
<PackageReference Update="Microsoft.Bcl.AsyncInterfaces" Version="10.0.0" />
|
||||
|
||||
<!-- HTTP Resilience integration (replaces Http.Polly) -->
|
||||
<PackageReference Update="Microsoft.Extensions.Http.Resilience" Version="10.0.0" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
Reference in New Issue
Block a user