dotnet / aspnetcore

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
https://asp.net
MIT License
35.21k stars 9.95k forks source link

[ASP.NET] Provide a sample on how to pack a website as a tool #50575

Open javiercn opened 1 year ago

javiercn commented 1 year ago

With that said, the proper way to include a website inside a dotnet-tool/nuget package would be to publish the website, collect all the assets and include them in the nuget package.

We should build a sample that demonstrate how to achieve this.

tlmii commented 1 year ago

Just a note that it'd be helpful if the sample covered ensuring that content from Razor Class Libraries referenced by the web-app-as-a-library are also included/served. Concrete example here would be the Fluent UI Blazor components. That may have already been part of your plan, but wanted to call it out to make sure.

WhitWaldo commented 1 year ago

Out of curiosity, what would be the use case for including a website in a dotnet-tool?