[mono-android] M4A application suddenly loses F5 (Debug =+ Start) ability

Miljenko Cvjetko mcvjetko at holisticware.net
Thu Jan 19 19:56:20 UTC 2012


Hi Jonathan

and thanks a lot

On 2012.01.19 16:21, Jonathan Pobst wrote:
> On 1/19/2012 6:46 AM, Miljenko Cvjetko wrote:
>>   * Is this ability to start/debug app related to ProjectGuid?
>>     Or is it in sln file?
>>     I cannot find any reference which flag or where is this stored...
>
> This is driven by there being 
> <AndroidApplication>true</AndroidApplication> in the project's csproj.
OK.  There are 2 projects one older which has no problems I can start it 
and another one with
issues.
Both have
<AndroidApplication>true</AndroidApplication>
in

peeking into project properties

Older project w/o problems:



this project where I have removed stuff from Layout dir:



Not implemented?

This second project file had only inconsistent line-endings, so I fixed 
it...

>
>>   * What drives adding c# code file .cs into Resources\Layout folder to
>>     be marked as AndroidResource!?!
>>     If you add cs file into Layout you have to manually change build
>>     action to Compile!
>>     Default action for cs is Compile and during adding it is changed to
>>     AndroidResource.
>>     In vstemplate there is defined folder structure, but no types of
>>     files in Folders.
>>     Is this in some pkgdef file, cos I cannot find anything related to
>>     M4A or in Extensions
>>     folder Xamarin...
>
> This is coded into the VS addin.  Anything placed into Resources is 
> automatically marked as AndroidResource because the intent was that 
> only resources would be put there.
>
> I can add .cs as an exception so they will be left alone.
For us, it is ok, we have Item templates that take care of it...
Maybe it would be less confusing for novices and others.
It takes some time to grasp message like:
"Already defines resource with the same name"
And there are only File.axml and File.axml.cs.
It is not "standard" VS behaviour


regards

mel
>
> Hope this helps!
> Jonathan


-- 
Miljenko Cvjetko dipl.ing. ET
	Direktor/CEO
	Projektant rjes(enja/Solution Architect	
	Razvojni programer/Senior developer
	Voditelj projekta/Project Manager

IX juz(na obala 13
Kajzerica Zagreb
T: 385 1 7775555
M: 385 91 557 447 3
F: 385 1 7779556
e: mcvjetko at holisticware.net
w: http://www.holisticware.net

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monodroid/attachments/20120119/dd11ddfd/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bahfcbjb.png
Type: image/png
Size: 20056 bytes
Desc: not available
URL: <http://lists.ximian.com/pipermail/monodroid/attachments/20120119/dd11ddfd/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcfdcidj.png
Type: image/png
Size: 22773 bytes
Desc: not available
URL: <http://lists.ximian.com/pipermail/monodroid/attachments/20120119/dd11ddfd/attachment-0003.png>


More information about the Monodroid mailing list