-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[wasm] Embed HotReload in WebAssembly SDK #52710
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 all commits
7ec7aa6
415a97b
1d61ff1
c777ede
366479c
43ca45c
9b27e95
0b699ca
a5c04c4
db3697d
724f7f0
438b349
d1eb14f
b0b6233
d7a29f0
c8bb76b
66273f1
09dcf66
a16649e
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> | ||
|
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. Shouldn't this be
Member
Author
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. Hmm. For some reason it doesn't produce a correct layout - the output SDK folder contains just the dll |
||
| </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. I think setting metadata of the ProjectReference like so and removing the
Member
Author
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. |
||
| <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.