question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Developing a shared framework requires admin rights

See original GitHub issue

We develop the Microsoft.AspNetCore.App shared framework in https://github.com/aspnet/AspNetCore, and it is currently difficult for our contributors to actually run tests against the shared framework. Corehost only resolves shared frameworks from $DOTNET_ROOT/shared/Microsoft.AspNetCore.App/ or the global location, which means there are basically two options for our contributors:

  • Install a copy of the .NET Core SDK and runtimes in $repoRoot/.dotnet. This is less than ideal because Visual Studio won’t find the runtime because C:\Program Files\dotnet\dotnet.exe is typically on PATH first.
  • Build the shared framework locally an install in to $DOTNET_ROOT. This is also less than ideal because it pollutes the .NET Core installation with an un-released runtime, and either requires admin rights to C:\Program Files\ or requires you to configure a machine to use dotnet.exe from a user-writable location. (Again, also difficult if you don’t have admin privileges).

Request Is there way we could have corehost resolve shared frameworks from a local directory? For example, could we add a shared framework probing path in runtimeconfig.dev.json?

Ideally, I’d love for Visual Studio to pick up the local builds of our shared framework without needing administrative access to a machine, and overriding a handful of environment variables.

cc @davidfowl

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:1
  • Comments:43 (42 by maintainers)

github_iconTop GitHub Comments

1reaction
vitek-karascommented, May 27, 2019

I think this sounds reasonable. To make the behavior predictable I would add:

  • Only the application’s .runtimeconfig.json can specify this value. Values specified in framework .runtimeconfig.json will be ignored.
  • For simplicity the option would also be supported in .runtimeconfig.dev.json. If the value is in both, the lists will be merged.
1reaction
vitek-karascommented, Nov 30, 2018

I personally think that this is something which VS should have an option for, ideally as an MSBuild property (but then it’s a chicken and egg problem I guess). The fact the VS forces the use of the same dotnet on all projects in it feels wrong.

I think that if the runtime would be to support this, then the right place would be the global.json as it already handles a similar concern for SDK. Unfortunately implementing this could be relatively ugly. I would have to look into this some more.

Read more comments on GitHub >

github_iconTop Results From Across the Web

c# - .NET Framework install w/o admin rights
There is no way to run .NET applications without installing .NET on your machine first and yes, the installation does require admin rights....
Read more >
Last minute .NET framework installation without admin ...
NET Framework installed and I'm on a PC that requires admin privileges to install it. Is there any way I can get around...
Read more >
How can I install .NET Framework without administrator ...
Try to boot into Safe Mode ( F8 at startup) - the administrator account gets enabled there · Login as Administrator (maybe no...
Read more >
️Install anything without Admin rights
Install Dotnet SDK or runtime without admin · Go to Microsoft Dotnet download link, e.g. Dotnet 5 Dowload Page · Download the binary...
Read more >
Is it common to allow local desktop and/or active directory ...
The main problem is, as web developers we run programs that require local admin access and unfortunately can't do our job without them...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found