question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dotnet compile issue with Microsoft.Cci.ISymUnmanagedWriter5

See original GitHub issue

Hello,

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:closed
  • Created 8 years ago
  • Comments:47 (33 by maintainers)

github_iconTop GitHub Comments

2reactions
tmatcommented, Mar 23, 2016

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.

1reaction
vavanscommented, Mar 23, 2016

I ran into the same issue and installed: Visual C++ Redistributable for Visual Studio 2015. It solved it.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found