Bug 12118 - Wildcards in project files should not duplicate files in solution explorer
Summary: Wildcards in project files should not duplicate files in solution explorer
Status: VERIFIED ANSWERED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Project Model ()
Version: 4.0.5
Hardware: PC Mac OS
: Normal normal
Target Milestone: (C7)
Assignee: Lluis Sanchez
URL:
Depends on:
Blocks:
 
Reported: 2013-05-06 11:48 UTC by PJ
Modified: 2016-05-19 09:24 UTC (History)
2 users (show)

Tags:
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:
Status:
VERIFIED ANSWERED

Description PJ 2013-05-06 11:48:46 UTC
Steps to reproduce:

1) Create a new project
2) Edit the .csproj file to include a wildcard ( eg <Compile include="*.cs" /> )
3) Close the file

Expected behavior:
Any files *that were not previously in the project* should be added to the project and displayed in the solution explorer
See result here: http://screencast.com/t/eNeD0RZnBaa

Actual behavior:
The existing files that are listed in the .csproj file are duplicated, and displayed twice in the solution explorer.


Proposed solution:
Scan the full list of included files and remove duplicates.


Bug in the new feature added in XS 4.0.5, so not a regression.

XS 4.0.5 (build 4)
Comment 1 PJ 2013-11-19 16:32:17 UTC
This bug was targeted for a past milestone, moving to the next active milestone.
Comment 2 Lluis Sanchez 2015-12-09 15:38:17 UTC
This is by design, VS does the same.