.Net 8 uploading file into sharepoint
I have a problem with uploading a csv file into sharepoint online using a .Net 8 console app, especially in the authorisation phase, i have already done the same thing with .Net framework using CSOM but as i understand CSOM isn't supported in .Net core or at least i Don't know how to implement it, if anyone has an idea of how i can do so please let me know.
16 Replies
what flow are you using?
If you mean the flow of the application, i do generate the file and then i try to upload it into sharepoint online, after entering the credentials and generating the context after getting a token generated, this works in .net framework but not with .net core
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
??
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
I havent shared any code, as you can clearly see
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
100%
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
the authentication flow
The question i am asking is not about the code but rather about if there is a way to implement CSOM with .Net 8, or there isn't other way than using pnp core library
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
that's why i asked about the auth flow
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
Sorry for the late answer, as the table you sent suggest it doesnt support SharePointOnlineCredentials and i don't have an idea of how to complete the authentication without using that method, yes i have looked on that first link you found and it doesnt give much infos