The requested operation cannot be performed on a file with a user-mapped section open.
My build is failing and the error I'm receiving is as below. We have a pre build command (COPY "$(ProjectDir)"..\AdobeMobileLibrary\ADBMobileConfig.$(Configuration).json "$(ProjectDir)"ADBMobileConfig.json /Y) which is what it's failing on. Google tells me the error is because the file is locked somehow. Can anyone advise?
The requested operation cannot be performed on a file with a user-mapped section open.
0 file(s) copied.
C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1249,5): error MSB3073: The command "COPY "C:\projects\snapwin\Snapfish\"..\AdobeMobileLibrary\ADBMobileConfig.Release.json
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
| ? | Show this help |
|---|---|
| ESC | Blurs the current field |
Comment Form
| r | Focus the comment reply box |
|---|---|
| ^ + ↩ | Submit the comment |
You can use Command ⌘ instead of Control ^ on Mac

Support Staff 1 Posted by Feodor Fitsner on 02 Nov, 2015 06:41 PM
Source path looks strange:
"C:\projects\snapwin\Snapfish\"..\AdobeMobileLibrary\As a workaround you can copy with a separate command under
before_buildsection.Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:01 AM.