Skip to content

Commit d1ace12

Browse files
authored
Merge branch 'release/10.0.1xx' into locfiles/114ff122-307b-459a-9a37-95ef0325e014
2 parents ee9bc9e + d1c9c0c commit d1ace12

File tree

29 files changed

+471
-178
lines changed

29 files changed

+471
-178
lines changed

Directory.Build.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
<ItemGroup Condition="$(MicrosoftAspNetCoreAppRefPackageVersion.StartsWith('$(_TargetFrameworkVersionWithoutV)'))">
7474
<KnownFrameworkReference Update="Microsoft.AspNetCore.App">
7575
<LatestRuntimeFrameworkVersion>$(MicrosoftAspNetCoreAppRefPackageVersion)</LatestRuntimeFrameworkVersion>
76-
<RuntimePackRuntimeIdentifiers>${SupportedRuntimeIdentifiers}</RuntimePackRuntimeIdentifiers>
76+
<RuntimePackRuntimeIdentifiers>$(SupportedRuntimeIdentifiers)</RuntimePackRuntimeIdentifiers>
7777
<TargetingPackVersion>$(MicrosoftAspNetCoreAppRefPackageVersion)</TargetingPackVersion>
7878
<DefaultRuntimeFrameworkVersion>$(MicrosoftAspNetCoreAppRefPackageVersion)</DefaultRuntimeFrameworkVersion>
7979
</KnownFrameworkReference>

eng/Version.Details.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ This file should be imported by eng/Versions.props
140140
<!-- dotnet/core-setup dependencies -->
141141
<NETStandardLibraryRefPackageVersion>2.1.0</NETStandardLibraryRefPackageVersion>
142142
<!-- microsoft/testfx dependencies -->
143-
<MicrosoftTestingPlatformPackageVersion>1.9.0-preview.25467.1</MicrosoftTestingPlatformPackageVersion>
144-
<MSTestPackageVersion>3.11.0-preview.25467.1</MSTestPackageVersion>
143+
<MicrosoftTestingPlatformPackageVersion>1.9.0-preview.25470.1</MicrosoftTestingPlatformPackageVersion>
144+
<MSTestPackageVersion>3.11.0-preview.25470.1</MSTestPackageVersion>
145145
</PropertyGroup>
146146
<!--Property group for alternate package version names-->
147147
<PropertyGroup>

eng/Version.Details.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -553,13 +553,13 @@
553553
<Uri>https://github.com/dotnet/dotnet</Uri>
554554
<Sha>eac14590f69f6876d418cef9e8fdd3f44f6ef0b2</Sha>
555555
</Dependency>
556-
<Dependency Name="Microsoft.Testing.Platform" Version="1.9.0-preview.25467.1">
556+
<Dependency Name="Microsoft.Testing.Platform" Version="1.9.0-preview.25470.1">
557557
<Uri>https://github.com/microsoft/testfx</Uri>
558-
<Sha>a65b77ad062d0a16ecd9452b828174d9efa8c89f</Sha>
558+
<Sha>7812bf1fe7289e9f528ced8a230502c1e0bfe50f</Sha>
559559
</Dependency>
560-
<Dependency Name="MSTest" Version="3.11.0-preview.25467.1">
560+
<Dependency Name="MSTest" Version="3.11.0-preview.25470.1">
561561
<Uri>https://github.com/microsoft/testfx</Uri>
562-
<Sha>a65b77ad062d0a16ecd9452b828174d9efa8c89f</Sha>
562+
<Sha>7812bf1fe7289e9f528ced8a230502c1e0bfe50f</Sha>
563563
</Dependency>
564564
<Dependency Name="Microsoft.Extensions.Configuration.Ini" Version="10.0.0-rc.2.25460.104">
565565
<Uri>https://github.com/dotnet/dotnet</Uri>

sdk.slnx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@
312312
<Project Path="test/dotnet-format.UnitTests/dotnet-format.UnitTests.csproj" />
313313
<Project Path="test/dotnet-MsiInstallation.Tests/dotnet-MsiInstallation.Tests.csproj" />
314314
<Project Path="test/dotnet-new.IntegrationTests/dotnet-new.IntegrationTests.csproj" />
315+
<Project Path="test/dotnet-watch-test-browser/dotnet-watch-test-browser.csproj" />
315316
<Project Path="test/dotnet-watch.Tests/dotnet-watch.Tests.csproj" />
316317
<Project Path="test/dotnet.Tests/dotnet.Tests.csproj" />
317318
<Project Path="test/EndToEnd.Tests/EndToEnd.Tests.csproj" />

src/BuiltInTools/HotReloadClient/HotReloadClients.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ public async Task ApplyStaticAssetUpdatesAsync(IEnumerable<(string filePath, str
173173
#endif
174174
content = ImmutableCollectionsMarshal.AsImmutableArray(blob);
175175
}
176-
catch (Exception e)
176+
catch (Exception e) when (e is not OperationCanceledException)
177177
{
178178
ClientLogger.LogError("Failed to read file {FilePath}: {Message}", filePath, e.Message);
179179
continue;

src/BuiltInTools/HotReloadClient/Logging/LogEvents.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,5 @@ public static void Log(this ILogger logger, LogEvent logEvent, params object[] a
3030
public static readonly LogEvent UpdatingDiagnostics = Create(LogLevel.Debug, "Updating diagnostics.");
3131
public static readonly LogEvent SendingStaticAssetUpdateRequest = Create(LogLevel.Debug, "Sending static asset update request to connected browsers: '{0}'.");
3232
public static readonly LogEvent RefreshServerRunningAt = Create(LogLevel.Debug, "Refresh server running at {0}.");
33+
public static readonly LogEvent ConnectedToRefreshServer = Create(LogLevel.Debug, "Connected to refresh server.");
3334
}

src/BuiltInTools/HotReloadClient/Web/AbstractBrowserRefreshServer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public async Task WaitForClientConnectionAsync(CancellationToken cancellationTok
163163
}, progressCancellationSource.Token);
164164

165165
// Work around lack of Task.WaitAsync(cancellationToken) on .NET Framework:
166-
cancellationToken.Register(() => _browserConnected.SetCanceled());
166+
cancellationToken.Register(() => _browserConnected.TrySetCanceled());
167167

168168
try
169169
{

src/BuiltInTools/HotReloadClient/Web/BrowserConnection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public BrowserConnection(WebSocket clientSocket, string? sharedSecret, ILoggerFa
3737
ServerLogger = loggerFactory.CreateLogger(ServerLogComponentName, displayName);
3838
AgentLogger = loggerFactory.CreateLogger(AgentLogComponentName, displayName);
3939

40-
ServerLogger.LogDebug("Connected to referesh server.");
40+
ServerLogger.Log(LogEvents.ConnectedToRefreshServer);
4141
}
4242

4343
public void Dispose()

src/BuiltInTools/dotnet-format/Formatters/CharsetFormatter.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ private static byte[] GetEncodedBytes(string text, Encoding encoding)
6868
private static bool TryGetCharset(AnalyzerConfigOptions analyzerConfigOptions, [NotNullWhen(true)] out Encoding? encoding)
6969
{
7070
if (analyzerConfigOptions != null &&
71-
analyzerConfigOptions.TryGetValue("charset", out var charsetOption))
71+
analyzerConfigOptions.TryGetValue("charset", out var charsetOption) &&
72+
charsetOption != "unset")
7273
{
7374
encoding = GetCharset(charsetOption);
7475
return true;

src/BuiltInTools/dotnet-watch.slnf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@
1818
"src\\BuiltInTools\\HotReloadClient\\Microsoft.DotNet.HotReload.Client.shproj",
1919
"src\\BuiltInTools\\dotnet-watch\\dotnet-watch.csproj",
2020
"test\\Microsoft.AspNetCore.Watch.BrowserRefresh.Tests\\Microsoft.AspNetCore.Watch.BrowserRefresh.Tests.csproj",
21+
"test\\Microsoft.DotNet.HotReload.Client.Tests\\Microsoft.DotNet.HotReload.Client.Tests.csproj",
2122
"test\\Microsoft.Extensions.DotNetDeltaApplier.Tests\\Microsoft.Extensions.DotNetDeltaApplier.Tests.csproj",
2223
"test\\Microsoft.NET.TestFramework\\Microsoft.NET.TestFramework.csproj",
2324
"test\\Microsoft.WebTools.AspireService.Tests\\Microsoft.WebTools.AspireService.Tests.csproj",
24-
"test\\Microsoft.DotNet.HotReload.Client.Tests\\Microsoft.DotNet.HotReload.Client.Tests.csproj",
25+
"test\\dotnet-watch-test-browser\\dotnet-watch-test-browser.csproj",
2526
"test\\dotnet-watch.Tests\\dotnet-watch.Tests.csproj"
2627
]
2728
}

0 commit comments

Comments
 (0)