Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"ResolveAssemblyReference" task failed unexpectedly #1192

Closed
Leopotam opened this issue Feb 7, 2017 · 5 comments
Closed

"ResolveAssemblyReference" task failed unexpectedly #1192

Leopotam opened this issue Feb 7, 2017 · 5 comments

Comments

@Leopotam
Copy link
Contributor

Leopotam commented Feb 7, 2017

Environment data

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 1d4a0bd

Steps to reproduce

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 "/bin/gac" folder manually after extension install - error will disappear.

Expected behavior

no error.

Actual behavior

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+c__Iterator0.MoveNext () [0x00040] in <12e050e5b3d34326a1b4e2e7624e75da>:0
at Microsoft.Build.Tasks.NativeMethods+AssemblyCacheEnum+d__8.MoveNext () [0x0040c] in <143d5f83a5f54af3ba7d438f1991d890>:0
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+d__26.MoveNext () [0x002bf] in <8e7dda278d744577a42b396aa935bf89>:0

@DustinCampbell
Copy link
Member

Thanks for the report. I'll take a look.

@DustinCampbell
Copy link
Member

I can reproduce the issue. cc @bbugh

@DustinCampbell
Copy link
Member

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.

@bbugh
Copy link

bbugh commented Feb 7, 2017

Confirmed working for me. Thank you so much @DustinCampbell! 💯

@DustinCampbell
Copy link
Member

Awesome! Thanks for confirming.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants