sdk: dotnet build fails with COM exception on Win7
You can use the code under https://github.com/aspnet/dnx-watch
C:\Users\victorhu\dev\dnx-watch\src\Microsoft.DotNet.Watcher.Core>dotnet build
Compiling Microsoft.DotNet.Watcher.Core for DNXCore,Version=v5.0
C:\Users\victorhu\AppData\Local\Microsoft\dotnet\cli\bin\dotnet.exe compile-csc @C:\Users\victorhu\dev\dnx-watch\src\Microsoft.DotNet.Watcher.Core\obj\Debug\dnx
core50\dotnet-compile.rsp returned Exit Code 1
C:\Users\victorhu\dev\dnx-watch\src\Microsoft.DotNet.Watcher.Core\error CS0041: Unexpected error writing debug information -- 'Unable to cast COM object of type
'System.__ComObject' to interface type 'Microsoft.Cci.ISymUnmanagedWriter5'. This operation failed because the QueryInterface call on the COM component for the
interface with IID '{DCF7780D-BDE9-45DF-ACFE-21731A32000C}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002
(E_NOINTERFACE)).'
Compilation failed.
0 Warning(s)
1 Error(s)
Time elapsed 00:00:03.4682894
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 25 (8 by maintainers)
I meet same error and fixed when I install “Visual C++ Redistributable for Visual Studio 2015”: https://www.microsoft.com/en-hk/download/details.aspx?id=48145