"Open with..." behavior differs from Windows Explo

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
j3rky
Junior Member
Junior Member
Posts: 11
Joined: 2012-07-18, 14:44 UTC

"Open with..." behavior differs from Windows Explo

Post by *j3rky »

We have a Visual Studio 2010 solution file that consists of a mix of C++ and C# projects. When right-clicking the .sln file, selecting "Open with..." and then picking Visual Studio 2010, some of the C# projects do not load. Visual Studio reports that those projects are already open in the solution, which makes no sense.

This problem also occurs when simply double-clicking the .sln file. We were not able to reproduce it with the "Open with..." option in Windows Explorer.

We believe that something might be going wrong with the environment that is passed from TC into VS2010.

We tried TC8.0 and TC8.01rc4.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

"Open with..." isn't handled by Total Commander itself. It's all handled by the IShellFolder object.

I have written a test tool in C/C++ which calls the context menu like Total Commander. You can download it here (with full source):
http://ghisler.fileburst.com/addons/samplerightclick.zip

Maybe it helps you to find the problem.
Author of Total Commander
https://www.ghisler.com
User avatar
TheKid
Junior Member
Junior Member
Posts: 3
Joined: 2016-06-21, 11:12 UTC
Location: the Netherlands

Same problem here

Post by *TheKid »

I have the same issue as j3rky has but now with visual studio 2017. What came out of the test? Is there a fix?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Maybe you are running Total Commander with higher user rights (as administrator)? This will cause problems if visual studio was already running with normal user rights when you try to open a file.
Author of Total Commander
https://www.ghisler.com
User avatar
TheKid
Junior Member
Junior Member
Posts: 3
Joined: 2016-06-21, 11:12 UTC
Location: the Netherlands

Post by *TheKid »

Nope, I am running total commander with "normal user rights". I even re-installed total commander. Up to yesterday it always worked. Double clicking on a .sln file opened it in VS 2017. Now, it fails. " A project with that name is already opened in the solution". It's like total commander opens the solutions twice (although I can only see 1 instance running).
User avatar
HolgerK
Power Member
Power Member
Posts: 5406
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

TheKid wrote:"A project with that name is already opened in the solution".
Long lasting problem in Visual Studio:
https://stackoverflow.com/questions/4584488/vs2010-a-project-with-that-name-is-already-opened-in-the-solution
I don't think that this is TC related.
I'm even getting this error sometimes if I open a new solution via "VS2015-File->Recent Projects and Solutions" :-(

Regards
Holger
Make our planet great again
Post Reply