diff --git a/samples/csharp_dotnetcore/13.basic-bot/BasicBot.cs b/samples/csharp_dotnetcore/13.basic-bot/BasicBot.cs index 91d7e9daeb..4acdb9365e 100644 --- a/samples/csharp_dotnetcore/13.basic-bot/BasicBot.cs +++ b/samples/csharp_dotnetcore/13.basic-bot/BasicBot.cs @@ -210,7 +210,9 @@ private Activity CreateResponse(Activity activity, Attachment attachment) // Load attachment from file. private Attachment CreateAdaptiveCardAttachment() { - var adaptiveCard = File.ReadAllText(@".\Dialogs\Welcome\Resources\welcomeCard.json"); + string[] paths = {".", "Dialogs", "Welcome", "Resources", "welcomeCard.json"}; + string fullPath = Path.Combine(paths); + var adaptiveCard = File.ReadAllText(fullPath); return new Attachment() { ContentType = "application/vnd.microsoft.card.adaptive",