pnp / sp-dev-samples

Code samples for SharePoint add-ins, web hooks and other API samples
MIT License
84 stars 129 forks source link

Does not work with Visual Studio 2022 #34

Open klanglie opened 2 years ago

klanglie commented 2 years ago

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

juliemturner commented 2 years ago

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

klanglie commented 2 years ago

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!