Skip to content

Commit

Permalink
fix: Remove native Orchestrator DLLs from Runtime (microsoft#5471)
Browse files Browse the repository at this point in the history
* Remove Orchestrator from runtime

* remove pdb hack as well
  • Loading branch information
taicchoumsft authored Jan 9, 2021
1 parent 5fc16c8 commit 67990cc
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="3.1.2" />
<PackageReference Include="Microsoft.Bot.Builder" Version="4.11.0" />
<PackageReference Include="Microsoft.Bot.Builder.AI.Luis" Version="4.11.0" />
<PackageReference Include="Microsoft.Bot.Builder.AI.Orchestrator" Version="4.11.0-preview" />
<PackageReference Include="Microsoft.Bot.Builder.AI.QnA" Version="4.11.0" />
<PackageReference Include="Microsoft.Bot.Builder.ApplicationInsights" Version="4.11.0" />
<PackageReference Include="Microsoft.Bot.Builder.Azure" Version="4.11.0" />
Expand All @@ -39,10 +38,4 @@
<ItemGroup>
<ProjectReference Include="..\core\Microsoft.BotFramework.Composer.Core.csproj" />
</ItemGroup>

<!-- onnxruntime.pdb is dummied out for publishing due to its size. If you need these debug symbols in your published deployment, please comment out the section below. -->
<Target Name="RemoveOnnxRuntimePdb" AfterTargets="Publish">
<WriteLinesToFile File="$(PublishDir)\onnxruntime.pdb" Lines="" Overwrite="true" Encoding="Unicode" />
</Target>

</Project>
4 changes: 1 addition & 3 deletions runtime/dotnet/azurewebapp/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.Bot.Builder;
using Microsoft.Bot.Builder.AI.Luis;
using Microsoft.Bot.Builder.AI.Orchestrator;
using Microsoft.Bot.Builder.AI.QnA;
using Microsoft.Bot.Builder.ApplicationInsights;
using Microsoft.Bot.Builder.Azure;
Expand Down Expand Up @@ -105,7 +104,7 @@ public BotFrameworkHttpAdapter GetBotAdapter(IStorage storage, BotSettings setti
var adapter = IsSkill(settings)
? new BotFrameworkHttpAdapter(new ConfigurationCredentialProvider(this.Configuration), s.GetService<AuthenticationConfiguration>())
: new BotFrameworkHttpAdapter(new ConfigurationCredentialProvider(this.Configuration));

adapter
.UseStorage(storage)
.UseBotState(userState, conversationState)
Expand Down Expand Up @@ -151,7 +150,6 @@ public void ConfigureServices(IServiceCollection services)
ComponentRegistration.Add(new LanguageGenerationComponentRegistration());
ComponentRegistration.Add(new QnAMakerComponentRegistration());
ComponentRegistration.Add(new LuisComponentRegistration());
ComponentRegistration.Add(new OrchestratorComponentRegistration());

// This is for custom action component registration.
//ComponentRegistration.Add(new CustomActionComponentRegistration());
Expand Down
7 changes: 0 additions & 7 deletions runtime/dotnet/core/ComposerSettingsExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,6 @@ public static IConfigurationBuilder UseComposerSettings(this IConfigurationBuild
builder.AddJsonFile(qnaSettingsFile.FullName, optional: false, reloadOnChange: true);
}

var orchestratorSettingsPath = Path.GetFullPath(Path.Combine(botRoot, "generated", "orchestrator.settings.json"));
var orchestratorSettingsFile = new FileInfo(orchestratorSettingsPath);
if (orchestratorSettingsFile.Exists)
{
builder.AddJsonFile(orchestratorSettingsFile.FullName, optional: false, reloadOnChange: true);
}

return builder;
}
}
Expand Down

0 comments on commit 67990cc

Please sign in to comment.