Skip to content
This repository was archived by the owner on Oct 28, 2024. It is now read-only.

Commit 2d127c7

Browse files
committed
remove broken includes
not required as they are part of the package Signed-off-by: Matthew Fisher <matt.fisher@fermyon.com> (cherry picked from commit 27c9dd9)
1 parent e5472ad commit 2d127c7

File tree

1 file changed

+10
-21
lines changed

1 file changed

+10
-21
lines changed

src/Web/Web.csproj

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12,49 +12,38 @@
1212
<IsPackable>true</IsPackable>
1313
<ImplicitUsings>enable</ImplicitUsings>
1414
<Nullable>enable</Nullable>
15-
<SpaRoot>ClientApp\</SpaRoot>
15+
<SpaRoot>ClientApp</SpaRoot>
1616
</PropertyGroup>
1717

1818
<ItemGroup>
1919
<!-- Don't publish the SPA source files, but do show them in the project files list -->
20-
<Content Remove="$(SpaRoot)**"/>
21-
<None Remove="$(SpaRoot)**"/>
22-
<None Include="$(SpaRoot)**" Exclude="$(SpaRoot)node_modules\**"/>
20+
<Content Remove="$(SpaRoot)\**"/>
21+
<None Remove="$(SpaRoot)\**"/>
22+
<None Include="$(SpaRoot)\**" Exclude="$(SpaRoot)\node_modules\**"/>
2323
</ItemGroup>
2424

25-
<Target Name="NpmInstall" BeforeTargets="Build" Condition="!Exists('$(SpaRoot)node_modules')">
25+
<Target Name="NpmInstall" BeforeTargets="Build" Condition="!Exists('$(SpaRoot)\node_modules')">
2626
<!-- Ensure Node.js is installed -->
2727
<Exec Command="node --version" ContinueOnError="true" EchoOff="true">
2828
<Output TaskParameter="ExitCode" PropertyName="ErrorCode"/>
2929
</Exec>
3030
<Error Condition="'$(ErrorCode)' != '0'" Text="Node.js is required to build and run this project. To continue, please install Node.js from https://nodejs.org/, and then restart your command prompt or IDE."/>
3131
<Message Importance="high" Text="Restoring dependencies using 'npm'. This may take several minutes..."/>
32-
<Exec WorkingDirectory="$(SpaRoot)" Command="npm install"/>
32+
<Exec WorkingDirectory="$(SpaRoot)\" Command="npm install"/>
3333
</Target>
3434

3535
<Target Name="NpmRunBuild" BeforeTargets="Build" DependsOnTargets="NpmInstall">
36-
<Exec WorkingDirectory="$(SpaRoot)" Command="npm run build"/>
36+
<Exec WorkingDirectory="$(SpaRoot)\" Command="npm run build"/>
3737
</Target>
3838

3939
<Target Name="PublishRunWebpack" AfterTargets="ComputeFilesToPublish">
40-
<!-- As part of publishing, ensure the JS resources are freshly built in production mode -->
41-
<Exec WorkingDirectory="$(SpaRoot)" Command="npm install"/>
42-
<Exec WorkingDirectory="$(SpaRoot)" Command="npm run build"/>
43-
44-
<!-- Include the newly-built files in the publish output -->
45-
<ItemGroup>
46-
<DistFiles Include="$(WWWRoot)\**"/>
47-
<ResolvedFileToPublish Include="@(DistFiles->'%(FullPath)')" Exclude="@(ResolvedFileToPublish)">
48-
<RelativePath>%(DistFiles.Identity)</RelativePath>
49-
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
50-
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
51-
</ResolvedFileToPublish>
52-
</ItemGroup>
40+
<Exec WorkingDirectory="$(SpaRoot)\" Command="npm install"/>
41+
<Exec WorkingDirectory="$(SpaRoot)\" Command="npm run build"/>
5342
</Target>
5443

5544
<Target Name="NpmClean" BeforeTargets="Clean">
5645
<RemoveDir Directories="$(WWWRoot)"/>
57-
<RemoveDir Directories="$(SpaRoot)node_modules"/>
46+
<RemoveDir Directories="$(SpaRoot)\node_modules"/>
5847
</Target>
5948

6049
<ItemGroup>

0 commit comments

Comments
 (0)