public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
if (env.IsEnvironment("Local") || env.IsEnvironment("Production") || env.IsEnvironment("Staging"))
{
// For Deploying
#if (RELEASE)
app.UseStaticFiles(new StaticFileOptions
{
FileProvider = new PhysicalFileProvider(
Path.Combine(env.ContentRootPath, "wwwroot/_content/Syncfusion.Blazor/scripts")),
RequestPath = "/_content/Syncfusion.Blazor"
});
//For local
#else
app.UseStaticFiles(new StaticFileOptions
{
FileProvider = new PhysicalFileProvider(
@"C:\Users\{USER-NAME}\.nuget\packages\syncfusion.blazor\{VERSION}\staticwebassets"),
RequestPath = "/_content/Syncfusion.Blazor"
});
#endif }//...other snippets... } |