IntelligenceBank.Assets.Block.OptimizelyCMS12
1.0.2
dotnet add package IntelligenceBank.Assets.Block.OptimizelyCMS12 --version 1.0.2
NuGet\Install-Package IntelligenceBank.Assets.Block.OptimizelyCMS12 -Version 1.0.2
<PackageReference Include="IntelligenceBank.Assets.Block.OptimizelyCMS12" Version="1.0.2" />
<PackageVersion Include="IntelligenceBank.Assets.Block.OptimizelyCMS12" Version="1.0.2" />
<PackageReference Include="IntelligenceBank.Assets.Block.OptimizelyCMS12" />
paket add IntelligenceBank.Assets.Block.OptimizelyCMS12 --version 1.0.2
#r "nuget: IntelligenceBank.Assets.Block.OptimizelyCMS12, 1.0.2"
#:package IntelligenceBank.Assets.Block.OptimizelyCMS12@1.0.2
#addin nuget:?package=IntelligenceBank.Assets.Block.OptimizelyCMS12&version=1.0.2
#tool nuget:?package=IntelligenceBank.Assets.Block.OptimizelyCMS12&version=1.0.2
1. Update Your .csproj File
After installing the nuget package and REBUILD/BUILD the project once, add the following to your .csproj file under the <PackageReference> for IntelligenceBank_Block:
<PackageReference Include="IntelligenceBank_Block" Version="YOUR_VERSION_HERE(Version of Nuget package installed)"> <ExcludeAssets>all</ExcludeAssets> </PackageReference>
This configuration tells the project to exclude all build assets from the IntelligenceBank_Block package so that only the files copied by the MSBuild script are used.
2. Configure appsettings.json
Add the following configuration section to your appsettings.json file. This configuration sets up the necessary endpoints and options for IntelligenceBank:
"IntelligenceBank": {
"InsertionMode": "localDownloads", // Choose whether to copy the assets locally in Optimizely on insertion ("localDownloads"), or to use CDN Public Links ("publicLinks")
"PlatformURL": "", // Optional: provide the platform URL default to load by default, without https://. If EnableCustomURL is set to false, only input the IntelligenceBank sub-domain.
"EnableBrowserLogin": false, // Optional: determine whether to enable Browser Login by default or not.
"EnableCustomURL": false, // Optional: determine whether to enable Browser Login by default or not.
"IFrameEndpoint": "https://ucprod.intelligencebank.com/app/" // Do not modify this.
}
3. Configure Startup.cs
Add the following in between app.UseStaticFiles(); and app.UseRouting();
app.UseStaticFiles(new StaticFileOptions { FileProvider = new PhysicalFileProvider( Path.Combine(Directory.GetCurrentDirectory(), "wwwroot", "js", "custom", "editors")), RequestPath = "/EPiServer/Shell/12.29.0/ClientResources/js/custom/editors", });
app.UseStaticFiles(new StaticFileOptions { FileProvider = new PhysicalFileProvider( Path.Combine(Directory.GetCurrentDirectory(), "wwwroot", "js", "custom", "templates")), RequestPath = "/EPiServer/Shell/12.29.0/ClientResources/js/custom/templates", });
Replace the following:
app.UseEndpoints(endpoints ⇒ { endpoints.MapControllers(); endpoints.MapContent(); });
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- EPiServer.CMS (>= 12.29.0)
- Wangkanai.Detection (>= 8.7.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.