Skip to content

In .csproj Link to wwwroot folder can not be open by https. #14087

@Honjoy

Description

@Honjoy
  <ItemGroup>
    <Content Include="..\Base\wwwroot\css\**\*.css" LinkBase="wwwroot\css">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </Content>
    <Content Include="..\Base\wwwroot\css\**\*.map" LinkBase="wwwroot\css">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </Content>
    <Content Include="..\Base\wwwroot\css\**\fonts\**" LinkBase="wwwroot\css">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </Content>
    <Content Include="..\Base\wwwroot\js\**\*.js" LinkBase="wwwroot\js">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </Content>
    <Content Include="..\Base\wwwroot\js\**\*.map" LinkBase="wwwroot\js">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </Content>
  </ItemGroup>

I have file but https://localhost:5001/css/bootstrap/bootstrap.min.css report status 404

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-middlewareIncludes: URL rewrite, redirect, response cache/compression, session, and other general middlewares

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions