CLI uses typeof(object).GetTypeInfo().Assembly.Location to determine FX location
See original GitHub issueIf CoreCLR gets serviced, mscorlib’s path will be in the servicing root and not the actual FX location.
Steps to reproduce
copy /y %USERPROFILE%\.nuget\packages\runtime.win7-x64.Microsoft.NETCore.Runtime.CoreCLR\[Matching CLI Version]\ "C:\Program Files (x86)\dotnetextensions\pkgs\runtime.win7-x64.Microsoft.NETCore.Runtime.CoreCLR\[Matching CLI Version]\"
dotnet publish
Expected behavior
FX dir determination should be derived from property APP_CONTEXT_DEPS_FILES
and path containing Microsoft.NETCore.App.deps.json. See:
Actual behavior
Environment data
dotnet --info
output:
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
CLI uses typeof(object).GetTypeInfo().Assembly.Location to ...
If CoreCLR gets serviced, mscorlib's path will be in the servicing root and not the actual FX location. Steps to reproduce.
Read more >GetTypeInfo().Assembly.Location .net core
var z = typeof(object).GetTypeInfo().Assembly.Location;. to compile if it is in my application project using the Microsoft.NetCore.App SDK.
Read more >Assembly.GetAssembly(Type) Method (System.Reflection)
An object representing a type in the assembly that will be returned. Returns. Assembly. The assembly in which the specified type is defined....
Read more >Assembly.Location Property (System.Reflection)
Gets the full path or UNC location of the loaded file that contains the manifest. ... If the assembly is loaded from a...
Read more >NET - Danyl Novhorodov - WordPress.com
Having built-in REPL allows you to use NuGet packages, load files with F# code, reference managed assemblies and execute selected parts of the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
No issues guys, I’ll make the fix.
Fixed by dotnet/cli#2617