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.

Failed compilation with false error CS0534 ('X' does not implement inherited abstract member 'Y')

See original GitHub issue

Steps to reproduce

  1. Clone https://github.com/twilio/twilio-csharp
  2. Checkout branch next-gen-netstandard
  3. dotnet restore <-- works fine
  4. dotnet build JWT <-- works fine
  5. dotnet build Twilio <-- fails

Expected behavior

Should successfully compile the project. It compiles fine within Visual Studio 2015 U3.

Actual behavior

Project JWT (.NETStandard,Version=v1.1) was previously compiled. Skipping compilation.
Project Twilio (.NETStandard,Version=v1.1) will be compiled because expected outputs are missing
Compiling Twilio for .NETStandard,Version=v1.1
C:\Program Files\dotnet\dotnet.exe compile-csc @C:\Users\david\Projects\twilio-csharp\Twilio\obj\Debug\netstandard1.1\dotnet-compile.rsp returned Exit Code 1
C:\Users\david\Projects\twilio-csharp\Twilio\Http\SystemNetClient.cs(7,15): error CS0534: 'SystemNetClient' does not implement inherited abstract member 'HttpClient.MakeRequestAysnc(Request)'

Compilation failed.
    0 Warning(s)
    1 Error(s)

Time elapsed 00:00:03.9889266

The error is incorrect. The abstract member is implemented and the code compiles fine in Visual Studio 2015 U3.

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:     Windows
 OS Version:  10.0.14393
 OS Platform: Windows
 RID:         win10-x64

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
dprotherocommented, Dec 15, 2016

@krwq Thanks for all your help troubleshooting. Finally found the problem, and it was me and my eyes… the error says SystemNetClient which was a class that already existed but was only intended for our .NET 3.5 library. I surrounded it with the appropriate precompiler checks and all is peachy.

0reactions
TheRealPiotrPcommented, Dec 17, 2016

Thanks for tracking this down, @dprothero && @krwq!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error CS0534 - does not implement inherited abstract ...
In your code sample, TW inherits from Base. In Base you declared DoIt() as an abstract method. That means that it has no...
Read more >
'App' does not implement inherited abstract member ...
Error CS0534 'App' does not implement inherited abstract member 'MauiWinUIApplication.CreateMauiApp()' MyProject (net6.0-android) ...
Read more >
error CS0534; does not implement inherited abstract
Hello fellow developers Im running into a few errors. I am trying to write a console for my game. I followed a youtube...
Read more >
Error CS0534: '<TypeName>' does not implement inherited ...
Until I got a build failed message from the CI build. A look at the build logs showed the following error messages: ##[error]Example.Services\ ......
Read more >
Compiler Error CS0534
A class is required to implement all the abstract members in the base class, unless the class is also abstract. The following sample...
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