[Mono-bugs] [Bug 645213] New: Cannot build project that has no activities
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sat Oct 9 18:01:55 EDT 2010
https://bugzilla.novell.com/show_bug.cgi?id=645213
https://bugzilla.novell.com/show_bug.cgi?id=645213#c0
Summary: Cannot build project that has no activities
Classification: Mono
Product: MonoDroid
Version: unspecified
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Tools
AssignedTo: mkestner at novell.com
ReportedBy: gshackles at gmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)
AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.24 Safari/534.7
If you try and build a project that has no activities (for example, a project
that just has a widget), you get this error:
C:\Program Files (x86)\Microsoft Visual Studio
10.0\\Common7\IDE\Extensions\Novell\MonoDroid for Visual
Studio\1.0.8196\bin\monodroid.exe -v --nosign
--sdk-dir="C:\SDK\android-sdk-windows"
--builddir="C:\Users\Greg\Documents\Visual Studio
2010\Projects\WidgetTest1\WidgetTest1\obj\Debug\android"
--framework-dir="C:\Program Files (x86)\Reference
Assemblies\Microsoft\Framework\MonoDroid\v2.0"
-S="C:\Users\Greg\Documents\Visual Studio
2010\Projects\WidgetTest1\WidgetTest1\obj\Debug\res"
--package="WidgetTest1.WidgetTest1" --java-sdk-dir="C:\Program Files
(x86)\Java\jdk1.6.0_21" --debug
--manifest-template="C:\Users\Greg\Documents\Visual Studio
2010\Projects\WidgetTest1\WidgetTest1\Properties\AndroidManifest.xml"
"C:\Users\Greg\Documents\Visual Studio
2010\Projects\WidgetTest1\WidgetTest1\bin\Debug\WidgetTest1.dll"
monodroid : error 1: System.InvalidOperationException: Sequence contains no
matching element
at System.Linq.Enumerable.First[TSource](IEnumerable`1 source, Func`2
predicate)
at Monodroid.ManifestDocument.Merge(String applicationName, String
packageName, List`1 subclasses)
at Monodroid.Droidinator.CreatePackagedResources(List`1 javaTypes)
at Monodroid.Droidinator.CreateApk()
at Monodroid.MainClass.Main(String[] argv)
Reproducible: Always
Steps to Reproduce:
1. Create a new MonoDroid application
2. Delete the default activity, leaving no activities
3. Build
Actual Results:
The build fails with the error above
Expected Results:
The project should build
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list