Watch, Follow, &
Connect with Us

Please visit our new home
community.embarcadero.com.

Public Report
Report From: Delphi Prism/IDE    [ Add a report in this area ]  
Report #:  102552   Status: Open
"Add As Link" not implemented correctly
Project:  Embarcadero Prism Build #:  4.0.27.843
Version:    2010.1 Submitted By:   Mark Tiede
Report Type:  Basic functionality failure Date Reported:  1/12/2012 7:51:27 AM
Severity:    Infrequently encountered problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All platforms Internal Tracking #:   289457
Resolution: None (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: 6
Description
When source files are added as Links, they instead get added as actual, relative file references.
Steps to Reproduce:
1. Create Silverlight project1 (no web site needed).
2. Create Silverlight project2 (no web site needed).
3. Add class file to project1's root folder.
4. Create a New Folder in project2.
5. Do Add|Existing Item
6. Select the project1 class file. (don't press enter).
7. Click on the Add split button arrow.
Choose "Add As Link".

Instead of a link (with shortcut icon), a relative file reference is created.  Such as "..\class1.pas".

It should be a shortcut instead.

If you do the same steps in a C# project, you will see how it SHOULD be done.
Workarounds
The relative file reference WILL compile and allow the two projects to share the same source.
Attachment
None
Comments

Mark Tiede at 1/12/2012 7:56:32 AM -
The relative file reference WILL compile and allow the two projects to share the same source.

However, if you delete the folder in project2, instead of deleting the folder and its content (a link), it will delete the folder AND the file from project1.  

If it were a shortcut (as with C#), deleting the folder and its contents ONLY deletes the folder and the shortcut, not the file in project1.

C# is doing it the right way.

Server Response from: ETNACODE01