runtime icon indicating copy to clipboard operation
runtime copied to clipboard

Uninstalling 1.1.0-preview1 runtime breaks 1.0.1 runtime - Fix in 2.0.x

Open shirhatti opened this issue 10 years ago • 14 comments

Steps to reproduce

  1. Install 1.0.1 runtime (I see that the C:\Program Files\dotnet\host\fxr\1.0.1 directory gets created)
  2. Install 1.1.0-preview1 runtime
  3. Uninstall 1.1.0-preview1 runtime (There is no longer a C:\Program Files\dotnet\host directory)

Expected behavior

$ dotnet

Microsoft .NET Core Shared Framework Host

  Version  : 1.0.1
  Build    : cee57bf6c981237d80aa1631cfe83cb9ba329f12

Usage: dotnet [common-options] [[options] path-to-application]

Common Options:
  --help                           Display .NET Core Shared Framework Host help.
  --version                        Display .NET Core Shared Framework Host version.

Options:
  --fx-version <version>           Version of the installed Shared Framework to use to run the application.
  --additionalprobingpath <path>   Path containing probing policy and assemblies to probe for.

Path to Application:
  The path to a .NET Core managed application, dll or exe file to execute.

If you are debugging the Shared Framework Host, set 'COREHOST_TRACE' to '1' in your environment.

To get started on developing applications for .NET Core, install .NET SDK from:
  http://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409

Actual behavior

$ dotnet
A fatal error occured, the required library hostfxr.dll could not be found at C:\Program Files\dotnet

Environment data

dotnet --info output:

A fatal error occured, the required library hostfxr.dll could not be found at C:\Program Files\dotnet

cc @joeloff @jhkimnew

shirhatti avatar Nov 03 '16 18:11 shirhatti

I believe @schellap has this fixed in 1.1.0 final builds. @schellap can you confirm and if so, close this issue.

gkhanna79 avatar Nov 03 '16 20:11 gkhanna79

is there any workaround or fix for this issue

my system is hosed currently with the same problem

viksabnis avatar Nov 10 '16 02:11 viksabnis

Have you tried to reinstall the 1.0.1 SharedFW again?

gkhanna79 avatar Nov 10 '16 15:11 gkhanna79

@gkhanna79, this issue has different repro steps. Will take a look.

schellap avatar Nov 10 '16 15:11 schellap

@schellap Yes i have done that as well - but it doesnt work... the only way it to roll forward it seems

viksabnis avatar Nov 10 '16 16:11 viksabnis

@shirhatti Workaround in windows: if you repair the previous 1.0.1 install, you get your expected behavior.

nswali avatar Nov 21 '16 13:11 nswali

I just ran into this issue after I installed and uninstalled the .NET Core SDK 2.0. Is there a workaround?

Ponant avatar Feb 15 '17 16:02 Ponant

@Ponant If the 1.x runtime is installed you can try repairing that.

joeloff avatar Feb 15 '17 16:02 joeloff

@joeloff , I am repairing VS 2017 RC4 at the moment, I expect it to work. EDIT, it does.

Ponant avatar Feb 15 '17 16:02 Ponant

Assigning this to you @rakeshsinghranchi and @vivmishra

gkhanna79 avatar Feb 15 '17 23:02 gkhanna79

This issue is fixed in 2.0.0 . https://github.com/dotnet/core-setup/pull/1571#pullrequestreview-23143709

rakeshsinghranchi avatar Mar 03 '17 21:03 rakeshsinghranchi

@rakeshsinghranchi Do you have the 1.1.x and 1.0.x version of the issue filed? If so, please close this.

gkhanna79 avatar Mar 03 '17 21:03 gkhanna79

@gkhanna79 Yes. 1.0.x : https://github.com/dotnet/core-setup/issues/1574 1.1.x:https://github.com/dotnet/core-setup/issues/1575

rakeshsinghranchi avatar Mar 03 '17 22:03 rakeshsinghranchi

Thanks It's working now.

rambhual avatar Jun 23 '17 07:06 rambhual