sp-dev-samples icon indicating copy to clipboard operation
sp-dev-samples copied to clipboard

Does not work with Visual Studio 2022

Open klanglie opened this issue 3 years ago • 2 comments

Are these examples still relevant for the latest VIsual Studio? The assemblies being referenced are out of date and many seem deprecated. I am also still unable to open the projects using the latest Visual Studio. What I would like to see is updated examples that reflect the latest language (e.g. dotnet 6)

I would like to use webhooks in the Azure Function v3 c# application I am using. But am not sure these examples are of much use?

I found this from official Microsoft documentation found at: https://docs.microsoft.com/en-us/sharepoint/dev/apis/webhooks/webhooks-reference-implementation

klanglie avatar May 05 '22 17:05 klanglie

It's probably not given the dates. These samples are submitted by the community and there is no onus for those that do so to keep them up to date. I'm giving a talk next week on this topic and I have an updated solution that I built (although I admit that I don't use VS2022 yet I think I'm still using 2019)... but the references are up to date and this is done in .NET Core 3.1 for Azure Functions v3 using C#, maybe it would assist you. https://github.com/juliemturner/Public-Samples/blob/master/Webhooks/WebhooksDemo

juliemturner avatar May 05 '22 17:05 juliemturner

You are a god send! ;-) Thank you very much for your contribution!

p.s. - It works just fine in VS22'

I will reach out to you from your contact info regarding this talk you are giving. Thanks again!

klanglie avatar May 05 '22 17:05 klanglie