Bug 2057 - Attempting to edit the manifest under source control fails if the file is not checked out
Summary: Attempting to edit the manifest under source control fails if the file is not...
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Android ()
Version: unspecified
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
: 2585 ()
Depends on:
Reported: 2011-11-16 12:48 UTC by dansbugreporter79
Modified: 2016-08-03 15:24 UTC (History)
7 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description dansbugreporter79 2011-11-16 12:48:51 UTC
Under Visual Studio, if a project is using a source control system that make files read-only if they're not checked out (e.g., Perforce), then attempting to edit the Android Manifest (when it's not checked out) using the project properties will generate the error "Access to path X:\Path\Properties\AndroidManifest.xml" is denied.

Steps to Reproduce:
(1) Create a new project
(2) Add the project to source control
(3) Submit the project so that all of the files are read-only
(4) Right click on the project in "Solution Explorer" and select "Properties"
(5) Select "Android Manifest"
(6) Try to change anything (e.g., click on one of the "Required permissions")
(7) Notice that it reports a message box that says that "Access to path X:\Path\Properties\AndroidManifest.xml is denied".
(8) Also notice you will not be able to revert the edit. Attempting to close the project properties will display the same message box.

Actual Results:
The error message "Access to path X:\Path\Properties\AndroidManifest.xml is denied" is displayed.

Excepted Results:
AndroidManifest.xml is automatically checked out.

Build Date & Platform:
Monodroid 1.9.2 on Visual Studio 2010

Additional Information:
Under Visual Studio, the normal behavior is to automatically check out files when they are edited. Visual Studio does this for source files and designers.
Comment 1 Jonathan Pobst 2011-12-20 17:29:59 UTC
*** Bug 2585 has been marked as a duplicate of this bug. ***
Comment 2 Jonathan Pobst 2012-06-06 16:16:43 UTC
Should be fixed for the next release, 4.2.4 or 4.4.  However I don't have TFS so I wasn't able to fully test the change to ensure it works.

Comment 3 Jonathan Pryor 2012-07-08 09:47:27 UTC
*** Bug 5870 has been marked as a duplicate of this bug. ***