Skip to content

Commit 0dda92e

Browse files
committed
Bring pack working DevServer packaging setup
1 parent 58b37d6 commit 0dda92e

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/Components/WebAssembly/DevServer/src/Microsoft.AspNetCore.Components.WebAssembly.DevServer.csproj

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,22 @@
1111
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1212
<!-- Set this to false because assemblies should not reference this assembly directly, (except for tests, of course). -->
1313
<IsProjectReferenceProvider>false</IsProjectReferenceProvider>
14+
15+
<!--
16+
This project compiles against Microsoft.AspNetCore.App from the SDK.
17+
This ensures that it's packaging output is correct and does not include local artifacts.
18+
-->
19+
<UseAspNetCoreSharedRuntime>true</UseAspNetCoreSharedRuntime>
20+
<DoNotApplyWorkaroundsToMicrosoftAspNetCoreApp>true</DoNotApplyWorkaroundsToMicrosoftAspNetCoreApp>
1421
</PropertyGroup>
1522

1623
<ItemGroup>
17-
<Reference Include="Microsoft.AspNetCore" />
24+
<FrameworkReference Include="Microsoft.AspNetCore.App" />
25+
<ProjectReference
26+
Include="$(RepoRoot)src\Framework\App.Runtime\src\Microsoft.AspNetCore.App.Runtime.csproj"
27+
PrivateAssets="All"
28+
ReferenceOutputAssembly="false"
29+
SkipGetTargetFrameworkProperties="true" />
1830
<Reference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" />
1931
<Compile Include="$(SharedSourceRoot)CommandLineUtils\**\*.cs" />
2032
</ItemGroup>

0 commit comments

Comments
 (0)