dotnet --info output:
.NET Command Line Tools (1.0.0-preview2-1-003177)
Product Information:
Version: 1.0.0-preview2-1-003177
Commit SHA-1 hash: a2df9c2576
Runtime Environment:
OS Name: Mac OS X
OS Version: 10.12
OS Platform: Darwin
RID: osx.10.12-x64
VS Code version:
1.10.0-insider
C# Extension version:
1.7.0-beta4 1d4a0bd53224e8350c04ca9556f95525a4713c48
make clear install of extension and open any sln / csproj project - after downloading / installation of external libraries this error will appear. if i will create "
no error.
The "ResolveAssemblyReference" task failed unexpectedly.
This is an unhandled exception from a task -- PLEASE OPEN A BUG AGAINST THE TASK OWNER.
System.IO.DirectoryNotFoundException: Directory '/Users/leopotam/.vscode-insiders/extensions/ms-vscode.csharp-1.7.0-beta4/bin/gac' not found.
at System.IO.Directory.ValidateDirectoryListing (System.String path, System.String searchPattern, System.Boolean& stop) [0x00091] in <12e050e5b3d34326a1b4e2e7624e75da>:0
at System.IO.Directory+
at Microsoft.Build.Tasks.NativeMethods+AssemblyCacheEnum+
at Microsoft.Build.Tasks.GlobalAssemblyCache.GenerateListOfAssembliesByRuntime (System.String strongName, Microsoft.Build.Tasks.GetAssemblyRuntimeVersion getRuntimeVersion, System.Version targetedRuntime, Microsoft.Build.Shared.FileExists fileExists, Microsoft.Build.Tasks.GetPathFromFusionName getPathFromFusionName, Microsoft.Build.Tasks.GetGacEnumerator getGacEnumerator, System.Boolean specificVersion) [0x00101] in <143d5f83a5f54af3ba7d438f1991d890>:0
at Microsoft.Build.Tasks.GlobalAssemblyCache.GetLocationImpl (Microsoft.Build.Shared.AssemblyNameExtension assemblyName, System.String targetProcessorArchitecture, Microsoft.Build.Tasks.GetAssemblyRuntimeVersion getRuntimeVersion, System.Version targetedRuntime, Microsoft.Build.Shared.FileExists fileExists, Microsoft.Build.Tasks.GetPathFromFusionName getPathFromFusionName, Microsoft.Build.Tasks.GetGacEnumerator getGacEnumerator, System.Boolean specificVersion) [0x00050] in <143d5f83a5f54af3ba7d438f1991d890>:0
at Microsoft.Build.Tasks.GlobalAssemblyCache.GetLocation (Microsoft.Build.Framework.IBuildEngine4 buildEngine, Microsoft.Build.Shared.AssemblyNameExtension strongName, System.Reflection.ProcessorArchitecture targetProcessorArchitecture, Microsoft.Build.Tasks.GetAssemblyRuntimeVersion getRuntimeVersion, System.Version targetedRuntimeVersion, System.Boolean fullFusionName, Microsoft.Build.Shared.FileExists fileExists, Microsoft.Build.Tasks.GetPathFromFusionName getPathFromFusionName, Microsoft.Build.Tasks.GetGacEnumerator getGacEnumerator, System.Boolean specificVersion) [0x001e9] in <143d5f83a5f54af3ba7d438f1991d890>:0
at Microsoft.Build.Tasks.ResolveAssemblyReference.GetAssemblyPathInGac (Microsoft.Build.Shared.AssemblyNameExtension assemblyName, System.Reflection.ProcessorArchitecture targetProcessorArchitecture, Microsoft.Build.Tasks.GetAssemblyRuntimeVersion getRuntimeVersion, System.Version targetedRuntimeVersion, Microsoft.Build.Shared.FileExists fileExists, System.Boolean fullFusionName, System.Boolean specificVersion) [0x00007] in <143d5f83a5f54af3ba7d438f1991d890>:0
at Microsoft.Build.Tasks.GacResolver.Resolve (Microsoft.Build.Shared.AssemblyNameExtension assemblyName, System.String sdkName, System.String rawFileNameCandidate, System.Boolean isPrimaryProjectReference, System.Boolean wantSpecificVersion, System.String[] executableExtensions, System.String hintPath, System.String assemblyFolderKey, System.Collections.ArrayList assembliesConsideredAndRejected, System.String& foundPath, System.Boolean& userRequestedSpecificFile) [0x00015] in <143d5f83a5f54af3ba7d438f1991d890>:0
at Microsoft.Build.Tasks.AssemblyResolution.ResolveReference (System.Collections.Generic.IEnumerable`1[T] jaggedResolvers, Microsoft.Build.Shared.AssemblyNameExtension assemblyName, System.String sdkName, System.String rawFileNameCandidate, System.Boolean isPrimaryProjectReference, System.Boolean wantSpecificVersion, System.String[] executableExtensions, System.String hintPath, System.String assemblyFolderKey, System.Collections.ArrayList assembliesConsideredAndRejected, System.String& resolvedSearchPath, System.Boolean& userRequestedSpecificFile) [0x00039] in <143d5f83a5f54af3ba7d438f1991d890>:0
at Microsoft.Build.Tasks.ReferenceTable.ResolveReference (Microsoft.Build.Shared.AssemblyNameExtension assemblyName, System.String rawFileNameCandidate, Microsoft.Build.Tasks.Reference reference) [0x00130] in <143d5f83a5f54af3ba7d438f1991d890>:0
at Microsoft.Build.Tasks.ReferenceTable.ResolveAssemblyFilenames () [0x0003f] in <143d5f83a5f54af3ba7d438f1991d890>:0
at Microsoft.Build.Tasks.ReferenceTable.ComputeClosure () [0x0000b] in <143d5f83a5f54af3ba7d438f1991d890>:0
at Microsoft.Build.Tasks.ReferenceTable.ComputeClosure (Microsoft.Build.Tasks.DependentAssembly[] remappedAssembliesValue, Microsoft.Build.Framework.ITaskItem[] referenceAssemblyFiles, Microsoft.Build.Framework.ITaskItem[] referenceAssemblyNames, System.Collections.ArrayList exceptions) [0x00020] in <143d5f83a5f54af3ba7d438f1991d890>:0
at Microsoft.Build.Tasks.ResolveAssemblyReference.Execute (Microsoft.Build.Shared.FileExists fileExists, Microsoft.Build.Shared.DirectoryExists directoryExists, Microsoft.Build.Tasks.GetDirectories getDirectories, Microsoft.Build.Tasks.GetAssemblyName getAssemblyName, Microsoft.Build.Tasks.GetAssemblyMetadata getAssemblyMetadata, Microsoft.Build.Shared.GetRegistrySubKeyNames getRegistrySubKeyNames, Microsoft.Build.Shared.GetRegistrySubKeyDefaultValue getRegistrySubKeyDefaultValue, Microsoft.Build.Tasks.GetLastWriteTime getLastWriteTime, Microsoft.Build.Tasks.GetAssemblyRuntimeVersion getRuntimeVersion, Microsoft.Build.Shared.OpenBaseKey openBaseKey, Microsoft.Build.Tasks.GetAssemblyPathInGac getAssemblyPathInGac, Microsoft.Build.Tasks.IsWinMDFile isWinMDFile, Microsoft.Build.Tasks.ReadMachineTypeFromPEHeader readMachineTypeFromPEHeader) [0x00578] in <143d5f83a5f54af3ba7d438f1991d890>:0
at Microsoft.Build.Tasks.ResolveAssemblyReference.Execute () [0x00001] in <143d5f83a5f54af3ba7d438f1991d890>:0
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute () [0x0002a] in <8e7dda278d744577a42b396aa935bf89>:0
at Microsoft.Build.BackEnd.TaskBuilder+
Thanks for the report. I'll take a look.
I can reproduce the issue. cc @bbugh
OK. This should be fixed. I've updated OmniSharp/MSBuild binaries that get downloaded in place since only a few have run into this so far. To fix the problem for yourself, just perform a full uninstall and reinstall of 1.7.0-beta4 using the Installing Beta Releases instructions.
Confirmed working for me. Thank you so much @DustinCampbell! 馃挴
Awesome! Thanks for confirming.
Most helpful comment
OK. This should be fixed. I've updated OmniSharp/MSBuild binaries that get downloaded in place since only a few have run into this so far. To fix the problem for yourself, just perform a full uninstall and reinstall of 1.7.0-beta4 using the Installing Beta Releases instructions.