Missing main-server.js after dotnet publish #539

Closed
opened 2025-08-09 17:16:41 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @bpicolo on 7/30/2017

Seems that ClientApp/dist isn't getting copied with publish.

Seems this is required for full production builds (but is not currently in the config)?

    <ItemGroup>
      <DistFiles Include="ClientApp\dist\**" />
      <ResolvedFileToPublish Include="@(DistFiles-&gt;'%(FullPath)')" Exclude="@(ResolvedFileToPublish)">
        <RelativePath>%(DistFiles.Identity)</RelativePath>
        <CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
      </ResolvedFileToPublish>
    </ItemGroup>
*Originally created by @bpicolo on 7/30/2017* Seems that ClientApp/dist isn't getting copied with publish. Seems this is required for full production builds (but is not currently in the config)? ``` <ItemGroup> <DistFiles Include="ClientApp\dist\**" /> <ResolvedFileToPublish Include="@(DistFiles-&gt;'%(FullPath)')" Exclude="@(ResolvedFileToPublish)"> <RelativePath>%(DistFiles.Identity)</RelativePath> <CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory> </ResolvedFileToPublish> </ItemGroup> ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#539
No description provided.