-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[release/10.0.3xx] Backport #52816 #52881
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -22,7 +22,6 @@ dotnet new --debug:ephemeral-hive | |||||
|
|
||||||
| # We downloaded a special zip of files to the .nuget folder so add that as a source | ||||||
|
||||||
| # We downloaded a special zip of files to the .nuget folder so add that as a source | |
| # Add the local test packages directory as a NuGet source for this test run |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,26 +1,19 @@ | ||
| <Project Sdk="Microsoft.NET.Sdk.Razor"> | ||
| <Project Sdk="Microsoft.NET.Sdk"> | ||
|
|
||
| <PropertyGroup> | ||
| <TargetFramework>$(SdkTargetFramework)</TargetFramework> | ||
| <TargetFramework>net10.0</TargetFramework> | ||
| <GenerateDocumentationFile>false</GenerateDocumentationFile> | ||
| <GenerateDependencyFile>false</GenerateDependencyFile> | ||
| <LangVersion>preview</LangVersion> | ||
| <AllowUnsafeBlocks>true</AllowUnsafeBlocks> | ||
|
|
||
| <!-- NuGet --> | ||
| <IsPackable>true</IsPackable> | ||
| <IsShipping>true</IsShipping> | ||
| <IsShippingPackage>true</IsShippingPackage> | ||
| <PackageId>Microsoft.DotNet.HotReload.WebAssembly.Browser</PackageId> | ||
| <Description>HotReload package for WebAssembly</Description> | ||
| <!-- Remove once https://github.com/NuGet/Home/issues/8583 is fixed --> | ||
| <NoWarn>$(NoWarn);NU5128</NoWarn> | ||
| </PropertyGroup> | ||
|
|
||
| <Import Project="..\HotReloadAgent\Microsoft.DotNet.HotReload.Agent.projitems" Label="Shared" /> | ||
| <Import Project="..\HotReloadAgent.Data\Microsoft.DotNet.HotReload.Agent.Data.projitems" Label="Shared" /> | ||
|
|
||
| <ItemGroup> | ||
| <Content Include="wwwroot\**\*.*" CopyToOutputDirectory="PreserveNewest" /> | ||
| <InternalsVisibleTo Include="DynamicProxyGenAssembly2" Key="$(MoqPublicKey)" /> | ||
| </ItemGroup> | ||
|
|
||
| </Project> |
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -16,15 +16,58 @@ Copyright (c) .NET Foundation. All rights reserved. | |||||||||
| <Import Sdk="Microsoft.NET.Sdk" Project="Sdk.targets" Condition="'$(RuntimeIdentifier)' == 'wasi-wasm' and '$(_WasmSdkImportsMicrosoftNetSdk)' == 'true'" /> | ||||||||||
|
|
||||||||||
| <PropertyGroup> | ||||||||||
| <!-- Implicit HotReload package reference for .NET 10+ if not explicitly turned off --> | ||||||||||
| <_WasmEnableHotReload>$(WasmEnableHotReload)</_WasmEnableHotReload> | ||||||||||
| <_WasmEnableHotReload Condition="'$(_WasmEnableHotReload)' == '' and '$(Configuration)' != 'Debug'">false</_WasmEnableHotReload> | ||||||||||
| <_WasmEnableHotReload Condition="'$(_WasmEnableHotReload)' == '' and '$(TargetFrameworkIdentifier)' == '.NETCoreApp' and $([MSBuild]::VersionGreaterThanOrEquals('$(TargetFrameworkVersion)', '10.0'))">true</_WasmEnableHotReload> | ||||||||||
| </PropertyGroup> | ||||||||||
| <Target Name="_ImplicitlyReferenceHotReload" BeforeTargets="ProcessFrameworkReferences"> | ||||||||||
| <ItemGroup Condition="'$(_WasmEnableHotReload)' == 'true'"> | ||||||||||
| <PackageReference Include="Microsoft.DotNet.HotReload.WebAssembly.Browser" Version="$(NETCoreSdkVersion)" IsImplicitlyDefined="true" /> | ||||||||||
| <Target Name="_WasmImplicitlyReferenceHotReload" BeforeTargets="ResolveProjectStaticWebAssets" AfterTargets="ResolveStaticWebAssetsConfiguration" Condition="'$(_WasmEnableHotReload)' == 'true'"> | ||||||||||
| <PropertyGroup> | ||||||||||
| <_WasmHotReloadTfm Condition="$([MSBuild]::VersionGreaterThanOrEquals('$(TargetFrameworkVersion)', '10.0'))">net10.0</_WasmHotReloadTfm> | ||||||||||
| <_WasmHotReloadPath Condition="'$(_WasmHotReloadTfm)' != ''">$([MSBuild]::NormalizeDirectory($(MSBuildThisFileDirectory), '..', 'hotreload', $(_WasmHotReloadTfm)))</_WasmHotReloadPath> | ||||||||||
| <_WasmHotReloadIntermediatePath>$(IntermediateOutputPath)hotreload\</_WasmHotReloadIntermediatePath> | ||||||||||
| </PropertyGroup> | ||||||||||
|
|
||||||||||
| <!-- Copy the JS module to intermediate folder to avoid duplicate identity when multiple projects reference the same SDK file --> | ||||||||||
| <Copy | ||||||||||
| SourceFiles="$(_WasmHotReloadPath)wwwroot\Microsoft.DotNet.HotReload.WebAssembly.Browser.lib.module.js" | ||||||||||
| DestinationFolder="$(_WasmHotReloadIntermediatePath)" | ||||||||||
| SkipUnchangedFiles="true" | ||||||||||
| Condition="'$(_WasmHotReloadPath)' != ''" /> | ||||||||||
|
|
||||||||||
| <ItemGroup Condition="'$(_WasmHotReloadPath)' != ''"> | ||||||||||
| <ReferenceCopyLocalPaths Include="$(_WasmHotReloadPath)Microsoft.DotNet.HotReload.WebAssembly.Browser.dll"> | ||||||||||
| <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||||||||||
| <CopyToPublishDirectory>Never</CopyToPublishDirectory> | ||||||||||
| </ReferenceCopyLocalPaths> | ||||||||||
| <_WasmHotReloadModule Include="$(_WasmHotReloadIntermediatePath)Microsoft.DotNet.HotReload.WebAssembly.Browser.lib.module.js"> | ||||||||||
| <RelativePath>_framework/Microsoft.DotNet.HotReload.WebAssembly.Browser.lib.module.js</RelativePath> | ||||||||||
| </_WasmHotReloadModule> | ||||||||||
| <_WasmHotReloadModule OriginalItemSpec="%(Identity)" /> | ||||||||||
|
||||||||||
| </_WasmHotReloadModule> | |
| <_WasmHotReloadModule OriginalItemSpec="%(Identity)" /> | |
| <OriginalItemSpec>%(Identity)</OriginalItemSpec> | |
| </_WasmHotReloadModule> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment is now misleading: it says a special zip was downloaded to
%DOTNET_ROOT%\.nugetand should be added as a source, but the command that added that source was removed. Please update the comment to match the current behavior (or re-add the source if it’s still required).