Bug 12089 - How do I use the new feature to add all files in a folder using a wildcard'
Summary: How do I use the new feature to add all files in a folder using a wildcard'
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: 4.0
Hardware: PC Mac OS
: --- normal
Target Milestone: 4.0.5
Assignee: Lluis Sanchez
Depends on:
Reported: 2013-05-03 11:08 UTC by Saurabh
Modified: 2013-05-06 02:25 UTC (History)
3 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 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 Saurabh 2013-05-03 11:08:40 UTC
I am not sure how files automatically add in folder using wildcard?

Environment details:
X.S 4.0.5 (build 2)
Xamarin.Android 4.7.5-14
Comment 1 PJ 2013-05-03 11:11:58 UTC
To give context for jeff, this is in the release notes:

> Added support for file wildcards in project files (for example, to include all files in a directory).
Comment 2 Jeffrey Stedfast 2013-05-03 11:59:39 UTC
I actually don't know anything about this (I think it involves something like using * in the .csproj files).

I'll let lluis answer this :-)
Comment 3 Lluis Sanchez 2013-05-03 12:08:32 UTC
In a .csproj file, usually you have a list of files to be built, for example:

<Compile Include="Foo.cs" />
<Compile Include="Bar.cs" />

You can now use wildcards to include several files at once, for example:

<Compile Include="*.cs" />

The special wildcard "**" can be used to recurse directories. For example:

<Compile Include="src/**/*.cs" />

will include all files with extension .cs in the 'src' directory and all its subdirectories.

Notice that MonoDevelop has no UI for specifying wildcards. The wildcards have to be specified by manually editing the .csproj file. MonoDevelop should show all included files in the solution tree.

We need to add unit tests for this.
Comment 4 Nischal 2013-05-06 02:25:16 UTC
We have tried instructions which are mentioned in Comment#3 and we are successfully able to get dragged file in solution after editing .csproj manually.

Changing the status of this bug to Verified.