diff --git a/ProjectTemplates/ShinyApp/Linker.xml b/ProjectTemplates/ShinyApp/Linker.xml new file mode 100644 index 0000000..6aa2115 --- /dev/null +++ b/ProjectTemplates/ShinyApp/Linker.xml @@ -0,0 +1,13 @@ + + + + \ No newline at end of file diff --git a/ProjectTemplates/ShinyApp/ShinyApp.csproj b/ProjectTemplates/ShinyApp/ShinyApp.csproj index 61a6c1a..4b95614 100644 --- a/ProjectTemplates/ShinyApp/ShinyApp.csproj +++ b/ProjectTemplates/ShinyApp/ShinyApp.csproj @@ -55,6 +55,10 @@ maccatalyst-x64;maccatalyst-arm64 + + + + diff --git a/ProjectTemplates/ShinyAspNet/Program.cs b/ProjectTemplates/ShinyAspNet/Program.cs index 2f8804b..46f1f7a 100644 --- a/ProjectTemplates/ShinyAspNet/Program.cs +++ b/ProjectTemplates/ShinyAspNet/Program.cs @@ -21,6 +21,7 @@ builder.Services.AddControllers(); builder.Services.AddScoped(); builder.Services.AddScoped(); +builder.Services.AddHttpContextAccessor(); builder.Services.AddMediatR(cfg => cfg.RegisterServicesFromAssemblyContaining()); #if (swagger) @@ -175,6 +176,7 @@ ); #endif //+:cnd:noEmit +app.MapControllers(); if (app.Environment.IsDevelopment()) {