https://github.com/pakrym/staticfilegenerator
https://github.com/pakrym/staticfilegenerator
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/pakrym/staticfilegenerator
- Owner: pakrym
- Created: 2016-04-24T20:12:52.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-04-24T20:24:36.000Z (over 10 years ago)
- Last Synced: 2025-02-15T11:21:36.296Z (over 1 year ago)
- Language: C#
- Size: 675 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Generate static files site out of your MVC application.
## Usage
```
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseDefaultHostingConfiguration(args)
.UseContentRoot(Directory.GetCurrentDirectory())
.UseStartup()
.UseStaticFileGenerator(o =>
{
o.RootPages.Add(new StaticFileGeneratorPage("/", "/Index.html"));
o.OutputPath = "d:/temp/ms";
})
.Build();
host.Run();
}
```