Skip to content

Commit

Permalink
Merge branches 'exp/privatize-cache' (#9330) and 'exp/undo-Generating…
Browse files Browse the repository at this point in the history
…BindingRedirects-touch' (#9338) into vs17.8
  • Loading branch information
rainersigwald committed Oct 19, 2023
2 parents b052228 + 6f10465 commit 056b0c4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion eng/Versions.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the MIT license. See License.txt in the project root for full license information. -->
<Project>
<PropertyGroup>
<VersionPrefix>17.8.2</VersionPrefix><DotNetFinalVersionKind>release</DotNetFinalVersionKind>
<VersionPrefix>17.8.3</VersionPrefix><DotNetFinalVersionKind>release</DotNetFinalVersionKind>
<PackageValidationBaselineVersion>17.7.0</PackageValidationBaselineVersion>
<AssemblyVersion>15.1.0.0</AssemblyVersion>
<PreReleaseVersionLabel>preview</PreReleaseVersionLabel>
Expand Down
3 changes: 2 additions & 1 deletion src/Tasks.UnitTests/GenerateBindingRedirects_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,8 @@ public void AppConfigFileNotSavedWhenIdentical()
redirectResults2.TargetAppConfigContent.ShouldContain("<assemblyIdentity name=\"System\" publicKeyToken=\"b77a5c561934e089\" culture=\"neutral\" />");
redirectResults2.TargetAppConfigContent.ShouldContain("newVersion=\"40.0.0.0\"");

File.GetLastWriteTime(outputAppConfigFile).ShouldBeGreaterThan(oldTimestamp);
File.GetCreationTime(outputAppConfigFile).ShouldBe(oldTimestamp, TimeSpan.FromSeconds(5));
File.GetLastWriteTime(outputAppConfigFile).ShouldBe(oldTimestamp, TimeSpan.FromSeconds(5));
}

private BindingRedirectsExecutionResult GenerateBindingRedirects(string appConfigFile, string targetAppConfigFile,
Expand Down
9 changes: 1 addition & 8 deletions src/Tasks/AssemblyDependency/GenerateBindingRedirects.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using System;
Expand Down Expand Up @@ -139,13 +139,6 @@ public override bool Execute()
doc.Save(stream);
}
}
else if (outputExists)
{
// if the file exists and the content is up to date, then touch the output file.
var now = DateTime.Now;
File.SetLastAccessTime(OutputAppConfigFile.ItemSpec, now);
File.SetLastWriteTime(OutputAppConfigFile.ItemSpec, now);
}

return !Log.HasLoggedErrors;
}
Expand Down

0 comments on commit 056b0c4

Please sign in to comment.