Creating formflows in SDK-4.0 - botframework

I'm trying to replicate the formflow dialog as present in SDk-3.0 in SDK-4.0 bot framework using c# but unable to get any kind of documentation or sample code.
Is it possible to create them?
If yes: if anyone has tried implementing the same please share the document or any sample code.
Thanks,
Karthi

While the official Bot Framework SDK didn't create a v4 version of FormFlow, the BotBuilder-Community has successfully created a one, found here. The muget packages can be downloaded from here or simply installed via the nuget package manager on Visual Studio.

Related

How to clear the credentials used by TeamsFx SSO?

i've got multiple microsoft accounts linked to multiple tenants. I've registered my first teams app (using the Office Toolkit functionality "Configure for SSO...") on the wrong tenant.
Is there some way to remove the stored credentials? I even tried making a new solution, but visual studio seems to have stored those credentials somewhere, just can't find where.
I am the engineer of VS extension of Teams Toolkit. We have identified this requirement from GitHub issue https://github.com/OfficeDev/TeamsFx/issues/1685, and will treat it as a new feature in the following release. So far, you can follow the workaround in that GitHub issue thread and thanks for your patience.
Only solution I could find.
Open Visual studio and go to Extensions -> Manage Extensions
Uninstall Teams toolkit
Install toolkit again
It should allow you to sign in again when you configure SSO

Cannot find "IsComposeExtensionQuery()" method, when I develop a messaging extension

I followed the C# sample code here . NuGet package Microsoft.Bot.Connector.Teams has been added, but I still got error saying that IsComposeExtensionQuery() method does not exist.
I got the same error when I was building a messaging extension using aspnet core, mainly because the package Microsoft.Bot.Connector.Teams does not support .Net standard at the moment.
My solution is to copy the code from its repo. https://github.com/OfficeDev/BotBuilder-MicrosoftTeams
Actually it seems the code in that repo supports .Net standard, but has not been published to nuget. Hope it can be published soon.

How do I create and distribute a new .NET Core project template?

I've got a custom project template for a .NET Core project that I'd like to make available via dotnet new <templatename>. It was developed using Visual Studio Code on Mac OS X.
This document discusses creating new projects, specifically for ASP.NET Core, but I want to create and distribute a new .NET Core project template that doesn't include ASP.NET. It's just a class library project with some key modifications.
Question: How would I create a package for this purpose and distribute it both privately internally and/or publicly? Is it possible to simply package this up as a NuGet or Yeoman package, or is there some other mechanism I need to use?
UPDATE: Here is the official team blog: https://blogs.msdn.microsoft.com/dotnet/2017/04/02/how-to-create-your-own-templates-for-dotnet-new/
We currently have the documentation on a gist, but are working on turning it into a team blog soon. I will update here when the blog is posted and public.
For now, you can refer to the gist: https://gist.github.com/sayedihashimi/05741c31ca559f1960bef159a5684988

Azure Service Fabric in Visual Studio - hresult : 0x80131500

I'm currently trying to work on Azure Service Fabric in Visual Studio 2015 but I have a general exception (hresult : 0x80131500) when i create a new service fabric project.
For example, I got this error when i create a stateless service project, or anything else coming from service fabric... Can't post screenshots of the process for now... Thing is that when I installed service fabric packages, there were errors (already installed package but not, couldn't access the package)...
Spent hours trying to resolve this problem, I tried to uninstall everything, to change from a version to another, I searched a lot for an answer but not found.
Maybe I didn't understand what is happening there, and maybe someone could help me !
Service Fabric Tools: 1.4
Visual Studio: 14.0.25431.01 Update 3
.NET framework: 4.6.1
UPDATE
Thank you everyone, Microsoft updated their packages, it seems that it was coming from them, i tried to reinstall packages again and it works now !
I don't know how this post can be marked as resolved, if someone could do it, it would be great !
I was able to repro this when the 3.5 .NET Framework was missing. Specifically project creation is looking for targets files under the C:\Windows\Microsoft.NET\Framework\v2.0.50727 folder triggering the exception. Need to investigate why the tooling has a dependency on the older .NEt framework.
For now to try to fix the issue, can you enable the .NET Framework 3.5 (includes .NET 2.0 and 3.0) feature in "Control-Panel->Programs and Features-> Turn Windows features on or off" and see if it also resolves the issue for you.
Microsoft updated their packages, it seems that it was coming from them, i tried to reinstall packages again and it works now !
Launch Web Platform Installer (type it in Windows run menu).
Select Microsoft Service Fabric package.
Install it, or update it.
Should work.

Setting up facebook API using Visual Studio

I am newbie in developing and learning to develop windows 7 phone application. I was trying to run the sample code for Graph API of facebook on https://github.com/facebook/csharp-sdk the compilation of facebook API was successful but when I try to run the example code given, it gives me error "Type or namespace name 'facebook ' could not be found. I have added facebook.dll in the project references
can anyone tell me the exact procedure to follow please ?
thanks
Humm the dll was compiled for which type and version of .NET ? If it's a "desktop" .NET 3.5/4 project, you can't use it directly in your WP7 project.
You need to create a new Class Library Winows Phone 7 Project (Facebook.WP7 for example) and add the existing source files from Github to it. And now you can reference this project in your WP7 project.
Which Facebook.dll you referenced in your project??? There is separate one for WP7 and Desktop version of the kit.

Resources