How specify relative assembly reference using Project Upgrade Utility

Not Answered This post has 0 verified answers | 3 Replies | 2 Followers Thread's RSS feed.

mac_swit
Points 3,887
Replied On: Thu, Jul 14 2016 8:32 AM Reply

Hello,

I have used project upgrade utility for upgrading my solution (10 projects, 200 references over all). I use team foundation server and I have copied all assemblies into a folder under the project solution root. Running the project upgrade utility with specific folder, alle projects are updated but the <HintPath> in the project files contains the full path including drive letter.

<HintPath>C:\VS.NET\MyProject\Source\SolutionItems\Assemblies\Infragistics\V15.2.20152.2052\Infragistics4.Win.Misc.v15.2.dll</HintPath>

How I can force that relative path are saved to the project files?

If do so manually for a reference, <HintPath> is saved relative:

<HintPath>..\SolutionItems\Assemblies\Infragistics\V15.2.20152.2052\Infragistics4.Shared.v15.2.dll</HintPath>

Thanky you for any help.

Regards

Markus

  • Post Points: 20

All Replies

Mike Bowshewicz
Points 9,850
Infragistics Employee
Replied On: Mon, Jul 18 2016 3:14 PM Reply

As far as I know, there's no way to do this. I recommend submitting it as a product idea.
You can suggest new product ideas for future versions (or vote for existing ones) at http://ideas.infragistics.com.

Submitting your idea will allow you to communicate directly with our product management team, track the progress of your idea at any time, see how many votes it got, read comments from other developers in the community, and see if someone from the product team has additional questions for you.

Remember when submitting your idea to explain the context in which a feature would be used and why it is needed, as well as anything that would prevent you from accomplishing this today. You can even add screenshots to build a stronger case. Remember that for your suggestion to be successful, you need other members of the community to vote for it. You can also link back to this thread for additional details.

Thank you in advance for submitting your product idea.

Sincerely,

Mike B
Software Developer

  • Post Points: 20
mac_swit
Points 3,887
Replied On: Tue, Jul 19 2016 2:04 AM Reply

Hello Mike,

for me the "solution" I have found is to add all Infragistics references ONCE manually. After that for further upgrades using the upgrade utility NEVER FORGET TO UNMARK the "modify hint path" option under custom options. This seems to be working.

BUG: If I choose my custom assembly path via the browse button and edit this to a relative path, this is ignored by the upgrade utility. If I do so, the utility sets the hint path to the infragistics install folder. Furthermore, the <specificVersion>-option is set to FALSE. As I understand this option so far, for infragistics assemblies, it should remain on the default value TRUE.

But I guess this is more a bug than a product idea.

Regards

Markus

  • Post Points: 20
Mike Bowshewicz
Points 9,850
Infragistics Employee
Replied On: Thu, Jul 21 2016 3:12 PM Reply

Hi Markus,

The upgrade utility doesn't currently support setting HintPaths to relative paths. If you want such a feature to be added in the future, please consider submitting a product idea.

I'm not sure why SpecificVersion is set to false. Our guess is that VS sees that the assembly is in the GAC and sets SpecificVersion based on that.

Sincerely,

Mike B
Software Developer

  • Post Points: 5
Page 1 of 1 (4 items) | RSS