C
C#2y ago
ayoubma

.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
hyperator
hyperator2y ago
what flow are you using?
ayoubma
ayoubmaOP2y ago
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
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
ayoubma
ayoubmaOP2y ago
??
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
ayoubma
ayoubmaOP2y ago
I havent shared any code, as you can clearly see
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
ayoubma
ayoubmaOP2y ago
100%
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
hyperator
hyperator2y ago
the authentication flow
ayoubma
ayoubmaOP2y ago
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
ayoubma
ayoubmaOP2y ago
No description
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
hyperator
hyperator2y ago
that's why i asked about the auth flow
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
ayoubma
ayoubmaOP2y ago
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

Did you find this page helpful?