Error CS0619: 'AccessRights.FileSystem' is obsolete (NET 6.0)

Created at 07 Jan 2023, 17:51
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
OP

opusensemble

Joined 29.07.2021

Error CS0619: 'AccessRights.FileSystem' is obsolete (NET 6.0)
07 Jan 2023, 17:51


How can convert my script that writes in the filesystem, to support NET 6.0 framework? 

Since the change to .NET 6.0 I'm getting the following error: 
Error CS0619: 'AccessRights.FileSystem' is obsolete: 'The access right is not supported in .NET 6.0 and higher'



Thank you. 


@opusensemble
Replies

firemyst
09 Jan 2023, 03:50 ( Updated at: 21 Dec 2023, 09:23 )

RE:

opusensemble said:

How can convert my script that writes in the filesystem, to support NET 6.0 framework? 

Since the change to .NET 6.0 I'm getting the following error: 
Error CS0619: 'AccessRights.FileSystem' is obsolete: 'The access right is not supported in .NET 6.0 and higher'



Thank you. 

By giving the bot "AccessRights.FullAccess" ? Start with the most permissions and work your way backwards :-)


@firemyst