Skip to content

Commit 7842ae3

Browse files
wtgodbedotnet-maestro[bot]ViktorHofer
authored
Update Microsoft.AspNetCore.Watch.BrowserRefresh to net8.0 (#47509)
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> Co-authored-by: Viktor Hofer <[email protected]>
1 parent 28f62d3 commit 7842ae3

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

eng/Version.Details.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -506,9 +506,9 @@
506506
<SourceBuild RepoName="source-build-externals" ManagedOnly="true" />
507507
</Dependency>
508508
<!-- Intermediate is necessary for source build. -->
509-
<Dependency Name="Microsoft.SourceBuild.Intermediate.source-build-reference-packages" Version="10.0.616001">
509+
<Dependency Name="Microsoft.SourceBuild.Intermediate.source-build-reference-packages" Version="10.0.616401">
510510
<Uri>https://github.com/dotnet/source-build-reference-packages</Uri>
511-
<Sha>8f9f6fa14523b2f2475ea0a86be1cf60b5de5336</Sha>
511+
<Sha>c3d4c372a15c2de79a2f26fe2b6b3644996d8550</Sha>
512512
<SourceBuild RepoName="source-build-reference-packages" ManagedOnly="true" />
513513
</Dependency>
514514
<Dependency Name="Microsoft.Deployment.DotNet.Releases" Version="2.0.0-preview.1.25124.1">

src/BuiltInTools/BrowserRefresh/BrowserRefreshMiddleware.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ private void AttachWebAssemblyHeaders(HttpContext context)
8282
{
8383
if (_dotnetModifiableAssemblies != null)
8484
{
85-
context.Response.Headers.Add("DOTNET-MODIFIABLE-ASSEMBLIES", _dotnetModifiableAssemblies);
85+
context.Response.Headers.Append("DOTNET-MODIFIABLE-ASSEMBLIES", _dotnetModifiableAssemblies);
8686
}
8787
else
8888
{
@@ -98,7 +98,7 @@ private void AttachWebAssemblyHeaders(HttpContext context)
9898
{
9999
if (_aspnetcoreBrowserTools != null)
100100
{
101-
context.Response.Headers.Add("ASPNETCORE-BROWSER-TOOLS", _aspnetcoreBrowserTools);
101+
context.Response.Headers.Append("ASPNETCORE-BROWSER-TOOLS", _aspnetcoreBrowserTools);
102102
}
103103
else
104104
{

src/BuiltInTools/BrowserRefresh/Microsoft.AspNetCore.Watch.BrowserRefresh.csproj

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<!-- Intentionally pinned. This feature is supported in projects targeting 6.0 or newer.-->
4-
<TargetFramework>net6.0</TargetFramework>
3+
<!-- Intentionally pinned. This feature is supported in projects targeting 8.0 or newer.-->
4+
<!-- This should always use the oldest supported TFM -->
5+
<TargetFramework>net8.0</TargetFramework>
56
<StrongNameKeyId>MicrosoftAspNetCore</StrongNameKeyId>
67

78
<IsPackable>false</IsPackable>
@@ -16,9 +17,9 @@
1617
</ItemGroup>
1718

1819
<ItemGroup Condition="'$(DotNetBuildSourceOnly)' == 'true'">
19-
<!-- Reference 6.0.2 targeting packs in Source Build - this was the earliest version after the API surface stabilized -->
20-
<FrameworkReference Update="Microsoft.AspNetCore.App" TargetingPackVersion="6.0.2" />
21-
<FrameworkReference Update="Microsoft.NETCore.App" TargetingPackVersion="6.0.2" />
20+
<!-- Reference 8.0.0 targeting packs in Source Build -->
21+
<FrameworkReference Update="Microsoft.AspNetCore.App" TargetingPackVersion="8.0.0" />
22+
<FrameworkReference Update="Microsoft.NETCore.App" TargetingPackVersion="8.0.0" />
2223
</ItemGroup>
2324

2425
<ItemGroup>

0 commit comments

Comments
 (0)