0

Want to publish ASP.NET Core 3 project to single exe. How can i include/exclude wwwroot(js/css) to exe file?

Thanks!!

Zero33
  • 1
  • 2

1 Answers1

0

If you want to publish project exclude some files ,you can add these code in xxx.csproj

    <ItemGroup>
        <Content Update="wwwroot/css/*" CopyToPublishDirectory="Never" />
    </ItemGroup>

    <ItemGroup>
        <Content Update="wwwroot/js/*" CopyToPublishDirectory="Never" />
    </ItemGroup>

Then js and css files are excluded.

Xinran Shen
  • 8,416
  • 2
  • 3
  • 12