Bug 12919 - can't add files from folder to assets/js
Summary: can't add files from folder to assets/js
Status: RESOLVED DUPLICATE of bug 12922
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Project Model ()
Version: 4.0.9
Hardware: PC Windows
: --- normal
Target Milestone: master
Assignee: Lluis Sanchez
Depends on:
Reported: 2013-06-27 13:23 UTC by Tim Jowers
Modified: 2013-08-30 16:53 UTC (History)
1 user (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 or GitHub 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 Tim Jowers 2013-06-27 13:23:21 UTC
can only add empty folder. Trying to add existing files gives:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentNullException: Value cannot be null.
Parameter name: path2
   at System.IO.Path.Combine(String path1, String path2)
   at MonoDevelop.Core.FilePath.Combine(String[] paths)
   at MonoDevelop.MonoDroid.MonoDroidProject.GetDefaultBuildAction(String fileName)
   at MonoDevelop.Ide.ProjectOperations.AddFilesToProject(Project project, FilePath[] files, FilePath[] targetPaths, String buildAction)
   at MonoDevelop.Ide.Gui.Pads.ProjectPad.FolderCommandHandler.AddFilesFromFolder()
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
   at MonoDevelop.Components.Commands.DefaultCommandHandler.Run(Object target, Command cmd)
   at MonoDevelop.Components.Commands.CustomCommandTargetAttribute.Run(Object target, Command cmd)
   at MonoDevelop.Ide.Gui.Components.NodeCommandHandler.TransactedNodeHandlerAttribute.Run(Object target, Command cmd)
   at MonoDevelop.Components.Commands.CustomCommandTargetAttribute.MonoDevelop.Components.Commands.ICommandTargetHandler.Run(Object target, Command cmd)
   at MonoDevelop.Components.Commands.CommandHandlerInfo.Run(Object cmdTarget, Command cmd)
   at MonoDevelop.Components.Commands.CommandManager.<>c__DisplayClassb.<DispatchCommand>b__2()
   at MonoDevelop.Components.Commands.CommandManager.DispatchCommand(Object commandId, Object dataItem, Object initialTarget, CommandSource source)

Was also building and opening wrong file when trying to open Layout/file.axml.  Fixed by changing name of layou-ldpt which is where it was opening the wrong file from. Clean build. restart, etc did not fix.
Comment 1 Tim Jowers 2013-08-30 16:53:51 UTC

*** This bug has been marked as a duplicate of bug 12922 ***