Skip to content

Commit 7e7c324

Browse files
committed
Bump NuGet Dependencies like ApiDescription and IdentityModel assemblies [PublishToPSGalleryAsPreview]
1 parent 3c20dc4 commit 7e7c324

File tree

6 files changed

+28
-26
lines changed

6 files changed

+28
-26
lines changed

Doc/ReleaseNotes-ISHRemote-8.1.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ The contract of what you put on the BackgroundTask message queue under `InputDat
3838
| *custom* | when not specified you have to pass `-RawInputData` | *custom* | value of `-RawInputData` should match your BackgroundTask handler implementation |
3939

4040
### Example using SMARTTAG
41-
Add BackgroundTask with event type `SMARTTAG` for the objects located under the `General\MyFolder\Topics` path. One BackgroundTask message will appear per folder containing a list of all latest version English content objects in the InputData of the message. Note that there is no devide on `$ishSession.MetadataBatchSize` (default was 999) anymore in this version of ISHRemote.
41+
Add BackgroundTask with event type `SMARTTAG` for the objects located under the `General\MyFolder\Topics` path. One BackgroundTask message will appear per folder containing a list of all latest version English (`en`) content objects in the InputData of the message. Note that there is no devide on `$ishSession.MetadataBatchSize` (default was 999) anymore since this v8.1 version of ISHRemote.
4242
```powershell
4343
Get-IshFolder -FolderPath "General\Myfolder\Topics" -FolderTypeFilter @("ISHModule", "ISHMasterDoc", "ISHLibrary") -Recurse |
4444
ForEach-Object -Process {
@@ -48,9 +48,9 @@ ForEach-Object -Process {
4848
```
4949

5050
### Example using SYNCHRONIZEMETRICS
51-
Rebuilding the Metrics subsystem, introduced in Tridion Docs 15.1, is optimally done in the order of Images, Topics and Publications. Add BackgroundTask with event type `SYNCHRONIZEMETRICS` for the objects located under the `General` path (`Data` folder). One BackgroundTask message will appear per folder containing a list of LogicalIds in the `InputData` of the message, hence the content of one folder is passed in one message.
51+
Rebuilding the Metrics subsystem, introduced in Tridion Docs 15.1 Update 1 (15.1.1), is optimally done in the order of Images, Topics and Publications. Add BackgroundTask with event type `SYNCHRONIZEMETRICS` for the objects located under the `General` path (`Data` folder). One BackgroundTask message will appear per folder containing a list of LogicalIds in the `InputData` of the message, hence the content of one folder is passed in one message.
5252

53-
Note that a more complex script will be offered in the product (IShCD) that covers error handling, logging transcript and more. The below illustrates that ISHRemote cmdlets are an enabler for the feature.
53+
Note that a more complex script will be offered in the product (IShCD) that covers error handling, logging transcript and more. The below illustrates that ISHRemote cmdlets are an enabler for the feature and offering variations like partial rebuilds and more.
5454
```powershell
5555
# First Images
5656
Get-IshFolder -BaseFolder Data -FolderTypeFilter @("ISHIllustration") -Recurse |
@@ -110,7 +110,8 @@ n/a
110110

111111
## Breaking Changes - Platform
112112

113-
n/a
113+
* Security and Platform Updates, bumped version of System.Text.Json to 8.0.4; Duende's IdentityModel libraries to 6.0.0 and 7.0.0; Microsoft.Extensions.ApiDescription.Client to 8.0.8 and matching NSwag.ApiDescription.Client to 14.1.0; and Microsoft.PowerShell.Commands.Management to 7.2.23, the latest to support the technically obsolete PowerShell 7.2+/NET6+ combination.
114+
* Note that `Microsoft.Extensions.Logging.dll` is no longer preloaded by `AppDomainModuleAssemblyInitializer.cs` as a side-effect of the above assembly version bumps where bugs where fixed in the third party libraries.
114115

115116

116117
## Known Issues
@@ -138,8 +139,8 @@ Below is not an official performance compare, but a recurring thing noticed alon
138139
| Name | Client Platform | Protocol | Test Results |
139140
|--------------------------|-------------------------------------|----------------------|----------------|
140141
| ISHRemote 8.0.10919.0 | PowerShell 7.4.0 on .NET 8.0.0 | WcfSoapWithOpenIdConnect | Tests completed in 449.72s AND Tests Passed: 1057, Failed: 0, Skipped: 3 NotRun: 0 |
141-
| ISHRemote 8.0.11207.0 | Windows PowerShell 5.1 on .NET 4.8.1 | WcfSoapWithOpenIdConnect | Tests completed in 464.79s AND Tests Passed: 1062, Failed: 0, Skipped: 3 NotRun: 0 |
142-
| ISHRemote 8.1.11503.0 | PowerShell 7.4.3 on .NET 8.0.0 | WcfSoapWithOpenIdConnect | Tests completed in 552.74s AND Tests Passed: 1062, Failed: 0, Skipped: 3 NotRun: 0 |
142+
| ISHRemote 8.1.11623.0 | Windows PowerShell 5.1 on .NET 4.8.1 | WcfSoapWithOpenIdConnect | Tests completed in 515.62s AND Tests Passed: 1063, Failed: 0, Skipped: 4 NotRun: 0 |
143+
| ISHRemote 8.1.11623.0 | PowerShell 7.4.5 on .NET 8.0.0 | WcfSoapWithOpenIdConnect | Tests completed in 467s AND Tests Passed: 1063, Failed: 0, Skipped: 4 NotRun: 0 |
143144

144145

145146

Source/ISHRemote/Trisoft.ISHRemote.OpenApiAM10/Trisoft.ISHRemote.OpenApiAM10.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919
</ItemGroup>
2020

2121
<ItemGroup>
22-
<PackageReference Include="Microsoft.Extensions.ApiDescription.Client" Version="8.0.3">
22+
<PackageReference Include="Microsoft.Extensions.ApiDescription.Client" Version="8.0.8">
2323
<PrivateAssets>all</PrivateAssets>
2424
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2525
</PackageReference>
2626
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
27-
<PackageReference Include="NSwag.ApiDescription.Client" Version="14.0.7">
27+
<PackageReference Include="NSwag.ApiDescription.Client" Version="14.1.0">
2828
<PrivateAssets>all</PrivateAssets>
2929
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
3030
</PackageReference>

Source/ISHRemote/Trisoft.ISHRemote.OpenApiISH30/Trisoft.ISHRemote.OpenApiISH30.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919
</ItemGroup>
2020

2121
<ItemGroup>
22-
<PackageReference Include="Microsoft.Extensions.ApiDescription.Client" Version="8.0.3">
22+
<PackageReference Include="Microsoft.Extensions.ApiDescription.Client" Version="8.0.8">
2323
<PrivateAssets>all</PrivateAssets>
2424
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2525
</PackageReference>
2626
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
27-
<PackageReference Include="NSwag.ApiDescription.Client" Version="14.0.7">
27+
<PackageReference Include="NSwag.ApiDescription.Client" Version="14.1.0">
2828
<PrivateAssets>all</PrivateAssets>
2929
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
3030
</PackageReference>

Source/ISHRemote/Trisoft.ISHRemote/Cmdlets/Session/SessionCmdlet.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ protected override void BeginProcessing()
4040
{
4141
base.BeginProcessing();
4242
#if NET48
43-
WriteVerbose("ISHRemote module on PS5.1/NET48 forces Assembly Redirects for System.Runtime.CompilerServices.Unsafe.dll/System.Text.Json.dll/IdentityModel.OidcClient.dll/Microsoft.Bcl.AsyncInterfaces.dll/System.Text.Encodings.Web.dll/System.Memory.dll/System.ComponentModel.Annotations.dll/Microsoft.Extensions.Logging.dll");
43+
WriteVerbose("ISHRemote module on PS5.1/NET48 forces Assembly Redirects for System.Runtime.CompilerServices.Unsafe.dll/System.Text.Json.dll/IdentityModel.OidcClient.dll/Microsoft.Bcl.AsyncInterfaces.dll/System.Text.Encodings.Web.dll/System.Memory.dll/System.ComponentModel.Annotations.dll");
4444
#else
4545
WriteVerbose("ISHRemote module on PS7.2+/NET60+ forces Assembly Redirects for IdentityModel.dll");
4646
#endif

Source/ISHRemote/Trisoft.ISHRemote/HelperClasses/AppDomainModuleAssemblyInitializer.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,10 @@ public void OnImport()
101101
assembly = Assembly.LoadFrom(filePath);
102102
_forcedLoadedAssemblies.GetOrAdd("System.ComponentModel.Annotations", assembly);
103103

104-
filePath = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), @"Microsoft.Extensions.Logging.dll");
105-
assembly = Assembly.LoadFrom(filePath);
106-
_forcedLoadedAssemblies.GetOrAdd("Microsoft.Extensions.Logging", assembly);
104+
// No longer required since version bump of 3 IdentityModel.OidcClient assemblies from 5.2.1->6.0.0, so ISHRemote v8.1
105+
//filePath = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), @"Microsoft.Extensions.Logging.dll");
106+
//assembly = Assembly.LoadFrom(filePath);
107+
//_forcedLoadedAssemblies.GetOrAdd("Microsoft.Extensions.Logging", assembly);
107108
#else
108109
AssemblyLoadContext.Default.Resolving += ResolveAssembly_NetCore;
109110

Source/ISHRemote/Trisoft.ISHRemote/Trisoft.ISHRemote.csproj

Lines changed: 12 additions & 12 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
<TargetFrameworks>net48;net6.0</TargetFrameworks>
@@ -14,23 +14,23 @@
1414
</PropertyGroup>
1515

1616
<ItemGroup>
17-
<PackageReference Include="IdentityModel.OidcClient" Version="5.2.1" />
18-
<PackageReference Include="IdentityModel.OidcClient.IdentityTokenValidator" Version="5.2.1" />
19-
<PackageReference Include="IdentityModel" Version="6.2.0" />
17+
<PackageReference Include="IdentityModel.OidcClient" Version="6.0.0" />
18+
<PackageReference Include="IdentityModel.OidcClient.IdentityTokenValidator" Version="6.0.0" />
19+
<PackageReference Include="IdentityModel" Version="7.0.0" />
2020
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
2121
<PackageReference Include="PowerShellStandard.Library" Version="5.1.1" Condition="'$(TargetFramework)' == 'net48'" />
22-
<PackageReference Include="Microsoft.PowerShell.Commands.Management" Version="7.2.18" Condition="'$(TargetFramework)' != 'net48'" />
23-
<PackageReference Include="System.Drawing.Common" Version="8.0.3" />
22+
<PackageReference Include="Microsoft.PowerShell.Commands.Management" Version="7.2.23" Condition="'$(TargetFramework)' != 'net48'" /><!-- last version for PS7.2 -->
23+
<PackageReference Include="System.Drawing.Common" Version="8.0.8" />
2424
<PackageReference Include="System.Net.Http" Version="4.3.4" />
2525
<PackageReference Include="System.Reflection.Emit" Version="4.7.0" />
2626
<PackageReference Include="System.Reflection.Emit.ILGeneration" Version="4.7.0" />
2727
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="6.0.0" />
28-
<PackageReference Include="System.ServiceModel.Duplex" Version="4.10.3" />
29-
<PackageReference Include="System.ServiceModel.Federation" Version="4.10.3" Condition="'$(TargetFramework)' != 'net48'" />
30-
<PackageReference Include="System.ServiceModel.Http" Version="4.10.3" />
31-
<PackageReference Include="System.ServiceModel.NetTcp" Version="4.10.3" />
32-
<PackageReference Include="System.ServiceModel.Primitives" Version="4.10.3" />
33-
<PackageReference Include="System.ServiceModel.Security" Version="4.10.3" />
28+
<PackageReference Include="System.ServiceModel.Duplex" Version="4.10.3" /><!-- last version with net48 support -->
29+
<PackageReference Include="System.ServiceModel.Federation" Version="4.10.3" Condition="'$(TargetFramework)' != 'net48'" /><!-- last version with net48 support -->
30+
<PackageReference Include="System.ServiceModel.Http" Version="4.10.3" /><!-- last version with net48 support -->
31+
<PackageReference Include="System.ServiceModel.NetTcp" Version="4.10.3" /><!-- last version with net48 support -->
32+
<PackageReference Include="System.ServiceModel.Primitives" Version="4.10.3" /><!-- last version with net48 support -->
33+
<PackageReference Include="System.ServiceModel.Security" Version="4.10.3" /><!-- last version with net48 support -->
3434
<PackageReference Include="System.Private.ServiceModel" Version="4.10.3" />
3535
<PackageReference Include="System.Numerics.Vectors" Version="4.5.0" />
3636
<PackageReference Include="System.Text.Encodings.Web" Version="8.0.0" />

0 commit comments

Comments
 (0)