You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working with TFS for source controle. My TFS put all project files/folders in readOnly flag. We need to "check-out" files to work with and "check-in" to push the modifications. I'm sure you know how that work.
But with MAUI .Net 8 project, when we compile, it need to copy some files and make some change with those files, in my case, background.png. When it copy that file to /obj/ folder during the compile, the copy keep the "readOnly" flag and break when it try to delete it back (access denied).
Access to the path 'projectfolder\obj\Debug\net8.0-ios\iossimulator-x64\resizetizer\r\Resources\background.png' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
at System.IO.File.OpenFile(String path, FileAccess access, SafeFileHandle& handle)
at System.IO.File.SetLastWriteTimeUtc(String path, DateTime lastWriteTimeUtc)
at Microsoft.Maui.Resizetizer.ResizetizeImages.ExecuteAsync() in /_/src/SingleProject/Resizetizer/src/ResizetizeImages.cs:line 105
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
This one is for the iOS platform, but I get that error one for each platforms. In my case, I see 3 times, ios, android and windows.
I don't know what you use for copying files during the compile. I read somewhere that if it use something like robocopy, these some flags that can prevent copying the "readOnly" flag with files/folders.
Is it possible ?
Do you thing guys that I'm better to open an issue about that ?
I searched for an existing issue about that but it's not realle the same case but the error look like it !
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm working with TFS for source controle. My TFS put all project files/folders in readOnly flag. We need to "check-out" files to work with and "check-in" to push the modifications. I'm sure you know how that work.
But with MAUI .Net 8 project, when we compile, it need to copy some files and make some change with those files, in my case, background.png. When it copy that file to /obj/ folder during the compile, the copy keep the "readOnly" flag and break when it try to delete it back (access denied).
This one is for the iOS platform, but I get that error one for each platforms. In my case, I see 3 times, ios, android and windows.
I don't know what you use for copying files during the compile. I read somewhere that if it use something like robocopy, these some flags that can prevent copying the "readOnly" flag with files/folders.
Is it possible ?
Do you thing guys that I'm better to open an issue about that ?
I searched for an existing issue about that but it's not realle the same case but the error look like it !
Oh, I guess that one ll be in the 9.0 ?
https://github.com/dotnet/maui/pull/23412
Beta Was this translation helpful? Give feedback.
All reactions