Visual studio cannot start Rhino

For the past 3 years I have been able to run and attached Rhino to Visual Studio with VS Start button until yesterday.
I suspect it was the windows update 24H2 but can someone please confirm?

Are you able to run Rhino 7 by itself at all?

Yeah that works fine. Everything else seems to be normal.

In that case I would see if there is an update to Visual Studio 2022 available.

It is up to date :frowning:

what else could it be please?

Not sure what it could be. I haven’t 24H2 installed yet. I don’t know of any of the other devs have that already installed.

Can you share your launchSettings? Do you have any args such as runscript? Does rhino exist at that exact path or is it maybe Rhino7 instead of Rhino 7 ?

Hi Callumn,

This is what I have on start. There are a couple of post build events as well but they’re all working fine because I can still build the solution, but cannot “Start” it (which involves build, open Rhino and attach VS to Rhino).

I can confirm the directory is correct. Cheers.

I will assume you’ve tried restarting @user1986 ?

Is there anything in the Debug Output or possibly another dropdown when this window appears?

Yeah I tried to repair VS but it did not work.
There isn’t anything different in the Debug Output compared to build process.
image

And to double-double check, are you starting with VS booting up Rhino, or are you starting Rhino and then attaching afterwards? I’m assuming the former.

Yeah I start Rhino then attach, it’s been working for the last 3 years until the last windows update 24H2 so it might be a Microsoft thing? Someone on the internet also have the same issue here

@user1986 Unfortunately I don’t yet have the build of Windows, so I’m not seeing the issue. But there is quite a bit of discussion on this issue on Microsoft’s Website:

https://developercommunity.visualstudio.com/t/Follow-on-Problem-Report-to-Unable-to-d/10761447?sort=active&type=idea

Have you tried starting rhino directly from VS?

I believe that is the problem.

I figured this meant @user1986 is starting Rhino outside Visual Studio, then attaching a debug session to a running instance

Sure, but the very first few posts are describing what happens when trying to run directly.

I mean, that is what Visual studio cannot start Rhino - #8 by user1986 shows. Starting Rhino as external program.

Sorry for the confusion. I meant my set up is that VS starts and attaches to Rhino so that I can use “Hot reload” function in VS.
Ctrl + F5 in VS will start Rhino though, without attaching it to therefore cannot use hot reload.

To be honest I don’t know where in VS set up so that hot reload works with Rhino. It was set up by someone else 5 years ago and just work ever since. If you could enlighten me I am much appreciated!

1 Like

We have been unable to get Hot Reload to work with any of our WPF UI and Rhino 8. There is definitely something different about Rhino 8 regarding that.

I also develop in Rhino 7 if I have a lot of UI work, so that I can make changes to the UI while Rhino is running, and VS detects the changes and runs fine.

Debugging against Rhino 8 it does pick up my changes to c#, just not to the Xaml of our WPF code.

Is this UI code you are trying to change at runtime?

Hi Jason,

We are still using R7 and won’t be jumping to R8 for maybe another year or so. Now that you mention R8 hot reload is not working, perhaps we will push it even further away.

Well most of our forms are ETO form but I also change other stuff in the backend that hot reload has always been able to pickup, unless it is adding/removing of a field or a class but that is not a problem to me.