You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//Temporary license can be requested at https://purchase.groupdocs.com/temp-license/100078
39
42
//config.SetLicensePath("c:\\licenses\\GroupDocs.Comparison.lic"); // or set environment variable 'GROUPDOCS_LIC_PATH'
40
43
})
41
44
.AddLocalStorage("./Temp")
@@ -66,23 +69,27 @@ public class Startup
66
69
Or, if you’re using [new program](https://docs.microsoft.com/en-us/dotnet/core/tutorials/top-level-templates) style with top-level statements, global using directives, and implicit using directives the Program.cs will be a bit shorter.
//Temporary license can be requested at https://purchase.groupdocs.com/temp-license/100078
89
+
//config.SetLicensePath("c:\\licenses\\GroupDocs.Comparison.lic"); // or set environment variable 'GROUPDOCS_LIC_PATH'
90
+
})
91
+
.AddLocalStorage("./Temp")
92
+
.AddLocalCache("./Cache");
86
93
87
94
varapp=builder.Build();
88
95
@@ -95,18 +102,19 @@ app
95
102
options.UIPath="/comparison";
96
103
options.APIEndpoint="/comparison-api";
97
104
});
105
+
98
106
endpoints.MapGroupDocsComparisonApi(options=>
99
107
{
100
108
options.ApiPath="/comparison-api";
101
109
});
102
110
});
103
111
104
-
app.Run();
112
+
awaitapp.RunAsync();
105
113
```
106
114
107
115
This code registers **/comparison** middleware that will serve SPA and **/comparison-api** middleware that will serve content for the UI to display.
108
116
109
-
**Please note that Comparison does not create `Files` and `Cache` folders, please make sure to create `Files` and `Cache` folders manually before running the application.**
117
+
**Please note that Comparison does not create `Files` and `Temp` folders, please make sure to create `Files` and `Temp` folders manually before running the application.**
Copy file name to clipboardExpand all lines: src/GroupDocs.Comparison.UI/GroupDocs.Comparison.UI.csproj
+7-3Lines changed: 7 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -2,20 +2,24 @@
2
2
3
3
<PropertyGroup>
4
4
<TargetFramework>$(NetVersion)</TargetFramework>
5
-
<ImplicitUsings>enable</ImplicitUsings>
6
-
<Nullable>enable</Nullable>
7
-
<PackageId>GroupDocs.Comparison.UI</PackageId>
5
+
<ImplicitUsings>enable</ImplicitUsings>
6
+
<Nullable>enable</Nullable>
7
+
8
+
<PackageId>GroupDocs.Comparison.UI</PackageId>
8
9
<Version>$(GroupDocsComparisonUI)</Version>
9
10
<Description>GroupDocs.Comparison.UI is a ASP.NET Core UI comparison of GroupDocs.Comparison for .NET see https://github.com/groupdocs-comparison/GroupDocs.Comparison-for-.NET-UI for more details.</Description>
0 commit comments