3

Whe building a setup project for a .net 6 console application when trying to make an offline installer I get:

ERROR: To enable 'Download prerequisites from the same location as my application' in the Prerequisites dialog box, you must download file 'net6desktopruntime_x64\windowsdesktop-runtime-6.0.2-win-x64.exe' for item '.NET Desktop Runtime 6.0.2 (x64)' to your local machine

The online installer is working fine. I downloaded the desktop runtime to the folder C:\Program Files (x86)\Microsoft SDKs\ClickOnce Bootstrapper\Packages\net6desktopruntime_x64 as normal (same thing worked for DotNetFX472) but it does not like it

I even tried the other locations like:

C:\Program Files\Microsoft SDKs\ClickOnce Bootstrapper\Packages\net6desktopruntime_x64

or

C:\Program Files (x86)\Microsoft Visual Studio 14.0\SDK\Bootstrapper\Packages\net6desktopruntime_x64

but no luck any idea where he is looking for that?

Jester
  • 3,069
  • 5
  • 30
  • 44

1 Answers1

6

In VS 2022, I found the Boostrapper folder here:

C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VisualStudio\BootstrapperPackages

Adding the .exe inside the folder net6desktopruntime_x64 worked for me.

hasi05
  • 194
  • 1
  • 5