Author Topic: Opening Visual Studio 2019 solution issue  (Read 1318 times)

paladin

  • Community Member
  • Posts: 27
  • Hero Points: 1
Opening Visual Studio 2019 solution issue
« on: September 17, 2022, 06:55:06 PM »
Connecting to a vs 2019 solution project I'm getting 'Cannot find Visual Studio install path for version: 17'.
Removing the se generated artifacts recreating the workspace files from scratch does not help.  No issue building the solution in VS

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6940
  • Hero Points: 531
Re: Opening Visual Studio 2019 solution issue
« Reply #1 on: September 18, 2022, 10:30:02 PM »
It sounds like SlickEdit is trying to configure your build environment for Visual Studio 2022 and it's failing. Is this what you want or do you want SlickEdit to use Visual Studio 2019?

paladin

  • Community Member
  • Posts: 27
  • Hero Points: 1
Re: Opening Visual Studio 2019 solution issue
« Reply #2 on: September 20, 2022, 08:52:26 PM »
2022 is not installed and the solution space is built with 2019. I must be missing something fundamental in the setup. I need it build using VS2019

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6940
  • Hero Points: 531
Re: Opening Visual Studio 2019 solution issue
« Reply #3 on: September 20, 2022, 08:59:47 PM »
Something is definitely a little off.

Try to execute this command:
Code: [Select]
"c:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe"  -utf8 -all -prerelease -requires Microsoft.Component.MSBuild -format xml

If it works, redirect the output to a file and post the file here.

paladin

  • Community Member
  • Posts: 27
  • Hero Points: 1
Re: Opening Visual Studio 2019 solution issue
« Reply #4 on: September 21, 2022, 09:33:04 PM »
Results Attached

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6940
  • Hero Points: 531
Re: Opening Visual Studio 2019 solution issue
« Reply #5 on: September 21, 2022, 11:27:04 PM »
This output is definitely good. Something else must be going wrong. At the moment, I'm thinking it might be your configuration.

Try a default config:

Code: [Select]
vs +new -sc c:\temp\new-config-dir

There is a sample Visual Studio 2019 project you can test with.

Project>All Workspaces...>Sample Workspaces>VS2019.sln

If you are able to open this sample Visual Studio 2019 solution, then try yours. Depending on what happens here hopefully I'll have a good idea of what the problem is.

paladin

  • Community Member
  • Posts: 27
  • Hero Points: 1
Re: Opening Visual Studio 2019 solution issue
« Reply #6 on: September 22, 2022, 03:34:35 PM »
Opened the sample -- no issues. 
Open my my solution -- no issues.
I updated to beta 3 the other day and just double checked -- I'm still seeing the issue when use the default desktop link on my original solution but not on the Slickedit sample workspaces/vs2019.sln

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6940
  • Hero Points: 531
Re: Opening Visual Studio 2019 solution issue
« Reply #7 on: September 22, 2022, 04:41:40 PM »
Please post your user.cfg.xml for your problematic config. I need to look at some settings.

paladin

  • Community Member
  • Posts: 27
  • Hero Points: 1
Re: Opening Visual Studio 2019 solution issue
« Reply #8 on: September 23, 2022, 07:31:56 PM »
attached

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6940
  • Hero Points: 531
Re: Opening Visual Studio 2019 solution issue
« Reply #9 on: September 23, 2022, 08:22:09 PM »
I'm not seeing any configuration items that might effect opening a Visual Studio solution. At this point, I suspect it's something in the .sln file that is confusing SlickEdit.

Try setting the macro variable def_use_visual_studio_version to 16. This will tell SlickEdit to use Visual Studio 2019 when opening Visual Studio Solutions. Macro>Set Macro Variable...

paladin

  • Community Member
  • Posts: 27
  • Hero Points: 1
Re: Opening Visual Studio 2019 solution issue
« Reply #10 on: September 24, 2022, 01:37:32 AM »
setting the macro eliminates the warning during startup.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6940
  • Hero Points: 531
Re: Opening Visual Studio 2019 solution issue
« Reply #11 on: September 24, 2022, 02:10:37 AM »
Great. Glad that works.