dotnet compile issue with Microsoft.Cci.ISymUnmanagedWriter5
See original GitHub issueHello,
I have just installed dotnet cli using installer from here: http://dotnet.github.io/getting-started/
And I can’t get it to compile HelloWorld.cs.
Here’s what I do:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\tmp\dotnettest>dotnet new
Created new C# project in C:\tmp\dotnettest.
C:\tmp\dotnettest>dotnet restore
log : Restoring packages for C:\tmp\dotnettest\project.json...
info : Committing restore...
log : Restore completed in 3328ms.
NuGet Config files used:
C:\tmp\dotnettest\NuGet.Config
C:\Users\dmsu\AppData\Roaming\NuGet\NuGet.Config
Feeds used:
https://dotnet.myget.org/F/dotnet-core/api/v3/index.json
https://api.nuget.org/v3/index.json
C:\tmp\dotnettest>dotnet run
Compiling dotnettest for DNXCore,Version=v5.0
C:\Program Files\dotnet\bin\dotnet.exe compile-csc @C:\tmp\dotnettest\obj\Debug\dnxcore50\dotnet-compile.rsp returned Exit Code 1
C:\tmp\dotnettest\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)
Issue Analytics
- State:
- Created 8 years ago
- Comments:47 (33 by maintainers)
Top Results From Across the Web
NETSDK1045: The current .NET SDK does not support ...
This error occurs when the build tools can't find the version of the .NET SDK that's needed to build a project. This is...
Read more >Unable to compile .net 6.0 projects in VS 2022
I am unable to compile .net 6.0 projects in VS 2022 (version 17.4.3). I see error message that - MSB3971 The reference assemblies...
Read more >dotnet build command - .NET CLI
The dotnet build command builds a project and all of its dependencies.
Read more >NETSDK1005 and NETSDK1047: Asset file is missing target
When the .NET SDK issues error NETSDK1005 or NETSDK1047, the project's assets file is missing information on one of your target frameworks.
Read more >How to port a C++/CLI project to .NET Core or .NET 5+
In this article. C++/CLI .NET Core limitations; Port a C++/CLI project; Build without MSBuild; Known issues. Beginning with .
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 FreeTop 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
Top GitHub Comments
Installing C++ Redist shouldn’t be necessary. The binary we are loading is distributed with dotnet cli. Perhaps there is an issue in load path and CoreCLR loads it from some other path first.
I ran into the same issue and installed: Visual C++ Redistributable for Visual Studio 2015. It solved it.