Skip to content

Clean Architecture API Solution without client app SPA app #657

Answered by amadoa
devFarshadFahimi asked this question in Q&A
Discussion options

You must be logged in to vote

I have done this for several projects. Here are the steps I take.

  • Remove the directory src > WebUI > ClientApp
  • Remove the following from src > WebUI > WebUI.csproj
 <SpaRoot>ClientApp\</SpaRoot>
 <SpaProxyServerUrl>https://localhost:44447</SpaProxyServerUrl>
 <SpaProxyLaunchCommand>npm `start</SpaProxyLaunchCommand>

 <PackageReference Include="Microsoft.AspNetCore.SpaProxy" Version="6.0.5" />

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

<Target Name="DebugEnsureNodeEnv" …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@devFarshadFahimi
Comment options

Answer selected by devFarshadFahimi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants