Skip to content
This repository was archived by the owner on Jun 30, 2022. It is now read-only.

Commit e2fa9a7

Browse files
lauren-millsryanisgrig
authored andcommitted
updated ent bot to work with az publish (#483)
1 parent eb5bb60 commit e2fa9a7

27 files changed

+66
-102
lines changed

templates/Enterprise-Template/src/csharp/EnterpriseBotSample/Dialogs/Main/MainResponses.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public MainResponses()
5757

5858
public static IMessageActivity BuildIntroCard(ITurnContext turnContext, dynamic data)
5959
{
60-
var introCard = MainStrings.ResourceManager.GetObject("Intro").ToString();
60+
var introCard = File.ReadAllText(MainStrings.INTRO_PATH);
6161
var card = AdaptiveCard.FromJson(introCard).Card;
6262
var attachment = new Attachment(AdaptiveCard.ContentType, content: card);
6363

templates/Enterprise-Template/src/csharp/EnterpriseBotSample/Dialogs/Main/Resources/Intro.de.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{
1+
{
22
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
33
"type": "AdaptiveCard",
44
"version": "1.0",
@@ -21,7 +21,7 @@
2121
"type": "TextBlock",
2222
"size": "default",
2323
"isSubtle": true,
24-
"text": "Jetzt, wo Sie Ihren bot erfolgreich laufen lassen, folgen Sie den Links in dieser Adaptive Card, um Ihr Wissen über Bot Framework zu erweitern.",
24+
"text": "Jetzt, wo Sie Ihren bot erfolgreich laufen lassen, folgen Sie den Links in dieser Adaptive Card, um Ihr Wissen über Bot Framework zu erweitern.",
2525
"wrap": true,
2626
"maxLines": 0
2727
}
@@ -36,7 +36,7 @@
3636
},
3737
{
3838
"type": "Action.OpenUrl",
39-
"title": "Übersicht",
39+
"title": "Übersicht",
4040
"url": "https://docs.microsoft.com/en-us/azure/bot-service/?view=azure-bot-service-4.0"
4141
},
4242
{

templates/Enterprise-Template/src/csharp/EnterpriseBotSample/Dialogs/Main/Resources/Intro.es.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{
1+
{
22
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
33
"type": "AdaptiveCard",
44
"version": "1.0",
@@ -13,7 +13,7 @@
1313
"spacing": "medium",
1414
"size": "default",
1515
"weight": "bolder",
16-
"text": "¡Bienvenido a Bot Framework!",
16+
"text": "¡Bienvenido a Bot Framework!",
1717
"wrap": true,
1818
"maxLines": 0
1919
},
@@ -36,7 +36,7 @@
3636
},
3737
{
3838
"type": "Action.OpenUrl",
39-
"title": "Visión general",
39+
"title": "Visión general",
4040
"url": "https://docs.microsoft.com/en-us/azure/bot-service/?view=azure-bot-service-4.0"
4141
},
4242
{

templates/Enterprise-Template/src/csharp/EnterpriseBotSample/Dialogs/Main/Resources/Intro.fr.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{
1+
{
22
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
33
"type": "AdaptiveCard",
44
"version": "1.0",
@@ -13,15 +13,15 @@
1313
"spacing": "medium",
1414
"size": "default",
1515
"weight": "bolder",
16-
"text": "Bienvenue à Bot Framework!",
16+
"text": "Bienvenue à Bot Framework!",
1717
"wrap": true,
1818
"maxLines": 0
1919
},
2020
{
2121
"type": "TextBlock",
2222
"size": "default",
2323
"isSubtle": true,
24-
"text": "Maintenant que vous avez réussi à exécuter votre bot, suivez les liens dans cette carte Adaptive pour développer vos connaissances du Bot Framework.",
24+
"text": "Maintenant que vous avez réussi à exécuter votre bot, suivez les liens dans cette carte Adaptive pour développer vos connaissances du Bot Framework.",
2525
"wrap": true,
2626
"maxLines": 0
2727
}
@@ -36,7 +36,7 @@
3636
},
3737
{
3838
"type": "Action.OpenUrl",
39-
"title": "Aperçu",
39+
"title": "Aperçu",
4040
"url": "https://docs.microsoft.com/en-us/azure/bot-service/?view=azure-bot-service-4.0"
4141
},
4242
{
@@ -46,7 +46,7 @@
4646
},
4747
{
4848
"type": "Action.OpenUrl",
49-
"title": "Apprenez à déployer",
49+
"title": "Apprenez à déployer",
5050
"url": "https://docs.microsoft.com/en-us/azure/bot-service/bot-builder-howto-deploy-azure?view=azure-bot-service-4.0"
5151
}
5252
]

templates/Enterprise-Template/src/csharp/EnterpriseBotSample/Dialogs/Main/Resources/Intro.it.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{
1+
{
22
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
33
"type": "AdaptiveCard",
44
"version": "1.0",

templates/Enterprise-Template/src/csharp/EnterpriseBotSample/Dialogs/Main/Resources/Intro.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{
1+
{
22
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
33
"type": "AdaptiveCard",
44
"version": "1.0",

templates/Enterprise-Template/src/csharp/EnterpriseBotSample/Dialogs/Main/Resources/MainStrings.Designer.cs

Lines changed: 3 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

templates/Enterprise-Template/src/csharp/EnterpriseBotSample/Dialogs/Main/Resources/MainStrings.de.resx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,7 @@
159159
<data name="HELP_TITLE" xml:space="preserve">
160160
<value>Hilfe für Enterprise Bot</value>
161161
</data>
162-
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
163-
<data name="Intro" type="System.Resources.ResXFileRef, System.Windows.Forms">
164-
<value>Intro.de.json;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
162+
<data name="INTRO_PATH" xml:space="preserve">
163+
<value>.\Dialogs\Main\Resources\Intro.de.json</value>
165164
</data>
166165
</root>

templates/Enterprise-Template/src/csharp/EnterpriseBotSample/Dialogs/Main/Resources/MainStrings.es.resx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,7 @@
159159
<data name="HELP_TITLE" xml:space="preserve">
160160
<value>Ayuda para el asistente virtual</value>
161161
</data>
162-
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
163-
<data name="Intro" type="System.Resources.ResXFileRef, System.Windows.Forms">
164-
<value>Intro.es.json;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
162+
<data name="INTRO_PATH" xml:space="preserve">
163+
<value>.\Dialogs\Main\Resources\Intro.es.json</value>
165164
</data>
166165
</root>

templates/Enterprise-Template/src/csharp/EnterpriseBotSample/Dialogs/Main/Resources/MainStrings.fr.resx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,7 @@
159159
<data name="HELP_TITLE" xml:space="preserve">
160160
<value>Aide pour Virtual Assistant</value>
161161
</data>
162-
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
163-
<data name="Intro" type="System.Resources.ResXFileRef, System.Windows.Forms">
164-
<value>Intro.fr.json;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
162+
<data name="INTRO_PATH" xml:space="preserve">
163+
<value>.\Dialogs\Main\Resources\Intro.fr.json</value>
165164
</data>
166165
</root>

0 commit comments

Comments
 (0)