-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Fix hotreload duplicate assets #52816
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 20 commits
7ec7aa6
415a97b
1d61ff1
c777ede
366479c
43ca45c
9b27e95
0b699ca
a5c04c4
db3697d
724f7f0
438b349
d1eb14f
b0b6233
d7a29f0
c8bb76b
66273f1
09dcf66
a16649e
4b7aa5e
b1f15ee
e8ff518
1d4fa10
bf7276c
afd0106
6dd965c
01ee552
5aec5c8
75d9e18
8adbe75
672ee94
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 |
|---|---|---|
| @@ -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 |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| <Project> | ||
| <Project> | ||
|
|
||
| <PropertyGroup> | ||
| <WasmSdkRoot>$(RepoRoot)\src\WasmSdk\</WasmSdkRoot> | ||
|
|
@@ -35,18 +35,22 @@ | |
| </PropertyGroup> | ||
|
|
||
| <PropertyGroup> | ||
| <TargetFrameworks>$(SdkTargetFramework);net472</TargetFrameworks> | ||
| <!-- We are not using the assembly anywhere --> | ||
| <TargetFrameworks>$(SdkTargetFramework)</TargetFrameworks> | ||
|
lewing marked this conversation as resolved.
Outdated
|
||
| </PropertyGroup> | ||
|
|
||
| <ItemGroup> | ||
| <AdditionalContent Include="$(WasmSdkRoot)targets\**\*.*"> | ||
| <Pack>true</Pack> | ||
| <PackagePath>targets</PackagePath> | ||
| </AdditionalContent> | ||
| <ProjectReference Include="..\..\BuiltInTools\HotReloadAgent.WebAssembly.Browser\Microsoft.DotNet.HotReload.WebAssembly.Browser.csproj"> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should this have
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You'd also want to avoid flowing the current project TFM to the target project like so: If you also set you should be able to remove The ProjectReference should create this item. See https://github.com/dotnet/sdk/blob/main/src/BuiltInTools/Watch/RuntimeDependencies.props#L5 for an example.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The build is failing because of this: |
||
| <Private>false</Private> | ||
| </ProjectReference> | ||
| <AdditionalContent Include="$(WasmSdkRoot)Sdk\**\*.*"> | ||
| <Pack>true</Pack> | ||
| <PackagePath>Sdk</PackagePath> | ||
| </AdditionalContent> | ||
| <AdditionalContent Include="$(ArtifactsBinDir)\Microsoft.DotNet.HotReload.WebAssembly.Browser\$(Configuration)\**\*.*"> | ||
| <Pack>true</Pack> | ||
| <PackagePath>hotreload</PackagePath> | ||
| </AdditionalContent> | ||
| </ItemGroup> | ||
|
|
||
| <Target Name="PrepareAdditionalFilesToLayout" BeforeTargets="AssignTargetPaths"> | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.