unoplatform / Uno.Wasm.Bootstrap

A simple nuget package to run C# code in a WASM-compatible browser
Other
367 stars 57 forks source link

System.ApplicationException: Unable to move PACKAGE_DIST - Access to the path is denied #776

Open michael-hawker opened 11 months ago

michael-hawker commented 11 months ago

I've been seeing this in the Toolkit builds on my machine for a while, thought it may go away once we moved from .NET 5 to .NET 7, but still see it:

image

If I rebuild/deploy then sometimes I hit it again and other times it's just fine, so seems like a race condition on disk or something?

Happened on version 7.0.27

I've seen it building the WASM heads for our all-up sample and for individual component samples.

SerratedSharp commented 11 months ago

Also get this on the dist_work folder. Workaround: go to root solution directory in windows, right click -> Properties, uncheck Read only(probably has a grey check), then apply and choose all subfolders/items when prompted. This clears the read-only flag from all the nested items and clears the error for me. Not real clear what root cause is though. It doesn't seem to reoccur for a given project once cleared. So maybe something when initially created is getting read-only flag.

michael-hawker commented 11 months ago

@SerratedSharp I tried the read-only thing, but didn't see a change. Not sure why, but hitting it constantly at the moment preventing me from building.

jeromelaban commented 11 months ago

@michael-hawker this may be related to hot reload, somehow. Can you try disabling it in VS?

michael-hawker commented 11 months ago

Thanks @jeromelaban, first two boxes were checked, I unchecked them and tried again:

image

Same issue:

image