This repository has been archived by the owner on Jun 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 529
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix build bug from VA & replace asset images (#1035)
* Fixed .t4 reference causing build bug Removes png images and replaces with base64 samples * Removed HttpContext and ImagePathLocation dependencies in VA * Added shared ResponseIdCollection resource
- Loading branch information
1 parent
b3d70c5
commit 132dc52
Showing
19 changed files
with
59 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-4.27 KB
(44%)
...Virtual-Assistant/src/csharp/assistant/Dialogs/Main/Resources/MainDialogResponses.de.json
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
...Virtual-Assistant/src/csharp/assistant/Dialogs/Main/Resources/MainDialogResponses.es.json
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
...Virtual-Assistant/src/csharp/assistant/Dialogs/Main/Resources/MainDialogResponses.fr.json
Binary file not shown.
Binary file modified
BIN
+6 Bytes
(100%)
...Virtual-Assistant/src/csharp/assistant/Dialogs/Main/Resources/MainDialogResponses.it.json
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ions/Virtual-Assistant/src/csharp/assistant/Dialogs/Main/Resources/MainDialogResponses.tt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<#@ template debug="false" hostspecific="true" language="C#" #> | ||
<#@ output extension=".cs" #> | ||
<#@ include file="..\..\..\..\..\..\..\..\lib\microsoft.bot.builder.solutions\Responses\ResponseIdCollection.t4"#> | ||
<#@ include file="..\..\Shared\Resources\ResponseIdCollection.t4"#> |
24 changes: 12 additions & 12 deletions
24
solutions/Virtual-Assistant/src/csharp/assistant/Dialogs/Main/Resources/NewUserGreeting.json
Large diffs are not rendered by default.
Oops, something went wrong.
53 changes: 0 additions & 53 deletions
53
solutions/Virtual-Assistant/src/csharp/assistant/Dialogs/Main/Resources/ReturningUser.json
This file was deleted.
Oops, something went wrong.
16 changes: 8 additions & 8 deletions
16
.../Virtual-Assistant/src/csharp/assistant/Dialogs/Main/Resources/ReturningUserGreeting.json
Large diffs are not rendered by default.
Oops, something went wrong.
31 changes: 31 additions & 0 deletions
31
...s/Virtual-Assistant/src/csharp/assistant/Dialogs/Shared/Resources/ResponseIdCollection.t4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<#@ assembly name="Newtonsoft.Json.dll" #> | ||
<# | ||
var className = System.IO.Path.GetFileNameWithoutExtension(Host.TemplateFile); | ||
var namespaceName = System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("NamespaceHint"); | ||
string myFile = System.IO.File.ReadAllText(this.Host.ResolvePath(className + ".json")); | ||
var json = Newtonsoft.Json.JsonConvert.DeserializeObject<System.Collections.Generic.Dictionary<string, dynamic>>(myFile); | ||
var responses = string.Empty; | ||
var cards = string.Empty; | ||
#> | ||
// https://docs.microsoft.com/en-us/visualstudio/modeling/t4-include-directive?view=vs-2017 | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
using Microsoft.Bot.Builder.Solutions.Responses; | ||
|
||
namespace <#= namespaceName #> | ||
{ | ||
/// <summary> | ||
/// Contains bot responses. | ||
/// </summary> | ||
public class <#= className #> : IResponseIdCollection | ||
{ | ||
// Generated accessors | ||
<# | ||
// This code runs in the text json: | ||
foreach (var propertyName in json) { | ||
#> | ||
public const string <#= propertyName.Key.Substring(0, 1).ToUpperInvariant() + propertyName.Key.Substring(1) #> = "<#= propertyName.Key #>"; | ||
<# } #> | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file removed
BIN
-2.2 KB
...tions/Virtual-Assistant/src/csharp/assistant/wwwroot/images/background_dark.png
Binary file not shown.
Binary file removed
BIN
-596 Bytes
...ions/Virtual-Assistant/src/csharp/assistant/wwwroot/images/background_light.png
Binary file not shown.
Binary file removed
BIN
-50.2 KB
...tions/Virtual-Assistant/src/csharp/assistant/wwwroot/images/header_greeting.png
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters