Bug 23886 - File names display incorrectly when added via Linked folder
Summary: File names display incorrectly when added via Linked folder
Status: VERIFIED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Project Model ()
Version: 5.5
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: Roslyn
Assignee: Lluis Sanchez
URL:
Depends on:
Blocks:
 
Reported: 2014-10-16 16:36 UTC by devin
Modified: 2015-11-23 03:20 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Project filenames being displayed incorrectly by XS (8.74 KB, image/png)
2014-10-16 16:36 UTC, devin
Details


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 FIXED

Description devin 2014-10-16 16:36:34 UTC
Created attachment 8437 [details]
Project filenames being displayed incorrectly by XS

I have a project which adds file to it from another project by specifying a linked folder in the project file:

    <Compile Include="..\Twilio.Api.Shared\Model\*.cs">
      <Link>Model\%25%28FileName%29</Link>
    </Compile>

When I load the project in Xamarin Studio, the filenames are displayed incorrectly in the project browser (see the attached image).

Selecting and opening a file from the project borwser opens the correct file as expected, so this appears to be a display issue only.
Comment 1 Sadik Ali 2014-10-17 06:01:38 UTC
I have checked this issue and I am able to reproduce this issue.

Steps I followed:

1. Create a console project in XS. 
2. Add 2 new classes to the project.
3. Close the solution and create new solution.
4. Open the .csproj file of new project
5. Add the following code in .csproj file.
    
    <Compile Include="..\..\Test\Test\Model\*.cs">
    <Link>Model\%(EmptyClass)</Link>
    </Compile>

6. Save the .csproj file.

When I try to link folder to xamarin studio project, I observed that XS doesn't display file name correctly. However when I open linked file, correct file is opened in editor window.

Screencast: http://www.screencast.com/t/PsRfMeID5

Environment Info:

Mac OS X 10.9.4
Xamarin Studio : 5.5 (build 227)
=== Build Information ===
Release ID: 505000227
Git revision: 7b721eeec7a2fa4c4f4de0ecd2aed4dc25edac95
Build date: 2014-10-02 15:53:38-04
Xamarin addins: 99ed56b428b31eba1efaace4d82188d6f334e6ca
Comment 2 xamarin-release-manager 2015-04-08 16:07:47 UTC
Fixed in version 6.0.0.460 (new-project-model)
Comment 3 Shruti 2015-11-23 03:20:56 UTC
This issue is working with XS XamarinStudio-6.0.0.1965_c5df62cc33d5fe7430b3626c112112208df87d81

Screencast: http://www.screencast.com/t/yXSzRb6CWq
Environment Info: https://gist.github.com/Shruti360/1293aa0a148ddf6704aa

Hence, Closing this issue.