Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15578

VS 2019 VB.net program won't run except in the original folder

$
0
0
Hey Folks,

I successfully created a VB.net executable and it runs, but only in the folder where it was created. If I copy it and its .dll file anywhere else, I get told I need to download .Net, but when I click Yes nothing happens. I looked into it and I have no clue. The dotnet --list-sdks option produces:

5.0.101 [C:\Program Files\dotnet\sdk]

while dotnet --list-runtimes produces:

Microsoft.AspNetCore.All 2.1.23 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.23 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.10 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.23 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.10 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.10 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 5.0.1 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

So, I seem to have the latest runtime installed (I can find no evidence of a 5.0.101 runtime) but my code won't work. What gives?

TIA,

Lars

Viewing all articles
Browse latest Browse all 15578

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>