{"action":"closed","issue":{"url":"https://api.github.com/repos/dotnet/cli/issues/4171","repository_url":"https://api.github.com/repos/dotnet/cli","labels_url":"https://api.github.com/repos/dotnet/cli/issues/4171/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/cli/issues/4171/comments","events_url":"https://api.github.com/repos/dotnet/cli/issues/4171/events","html_url":"https://github.com/dotnet/cli/issues/4171","id":176546281,"number":4171,"title":"Could not load file or assembly 'System.Runtime, Version=4.1.0.0'","user":{"login":"HamedFathi","id":8418700,"avatar_url":"https://avatars.githubusercontent.com/u/8418700?v=3","gravatar_id":"","url":"https://api.github.com/users/HamedFathi","html_url":"https://github.com/HamedFathi","followers_url":"https://api.github.com/users/HamedFathi/followers","following_url":"https://api.github.com/users/HamedFathi/following{/other_user}","gists_url":"https://api.github.com/users/HamedFathi/gists{/gist_id}","starred_url":"https://api.github.com/users/HamedFathi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HamedFathi/subscriptions","organizations_url":"https://api.github.com/users/HamedFathi/orgs","repos_url":"https://api.github.com/users/HamedFathi/repos","events_url":"https://api.github.com/users/HamedFathi/events{/privacy}","received_events_url":"https://api.github.com/users/HamedFathi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-13T04:27:41Z","updated_at":"2016-09-13T18:55:10Z","closed_at":"2016-09-13T18:55:09Z","body":"```\r\nUnhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.\r\n\r\n   at System.ModuleHandle.ResolveType(RuntimeModule module, Int32 typeToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount, ObjectHandleOnStack type)\r\n   at System.ModuleHandle.ResolveTypeHandleInternal(RuntimeModule module, Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)\r\n   at System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)\r\n   at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, RuntimeModule decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, IRuntimeMethodInfo& ctor, Boolean& ctorHasParameters, Boolean& isVarArg)\r\n   at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent)\r\n   at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeAssembly assembly, RuntimeType caType)\r\n   at System.Attribute.GetCustomAttributes(Assembly element, Type attributeType, Boolean inherit)\r\n   at System.AppDomain.GetTargetFrameworkName()\r\n```\r\n\r\nI using AssemblyLoadContext in my application so I have \"System.Runtime.Loader\": \"4.0.0\" as dependency but after publish my project I have above error.\r\n\r\n```\r\ndotnet --version\r\n1.0.0-preview2-003121\r\n\r\n{\r\n  \"version\": \"1.0.0-*\",\r\n  \"buildOptions\": {\r\n    \"emitEntryPoint\": true\r\n  },\r\n\r\n  \"dependencies\": {\r\n    \"Microsoft.NETCore.App\": {\r\n      \"type\": \"platform\",\r\n      \"version\": \"1.0.0\"\r\n    },\r\n    \"CommandLineArgumentsParser\": \"3.0.4\",\r\n    \"System.Runtime.Loader\": \"4.0.0\",\r\n    \"Microsoft.Extensions.DependencyModel\": \"1.0.0\",\r\n    \"System.Runtime\": \"4.1.0\"\r\n  },\r\n\r\n  \"frameworks\": {\r\n    \"netcoreapp1.0\": {\r\n      \"imports\": \"dnxcore50\"\r\n    }\r\n  }\r\n}\r\n\r\n.NET Framework 4.6.2\r\n```\r\n\r\nwith visual studio I can run my application but with dotnet command line I have above error.\r\nCan somebody help me ?"}}
{"actor":{"display_login":"HamedFathi"}}