Failed compilation with false error CS0534 ('X' does not implement inherited abstract member 'Y')
See original GitHub issueSteps to reproduce
- Clone https://github.com/twilio/twilio-csharp
- Checkout branch
next-gen-netstandard
dotnet restore
<-- works finedotnet build JWT
<-- works finedotnet 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:
- Created 7 years ago
- Comments:11 (5 by maintainers)
Top 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 >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
@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.Thanks for tracking this down, @dprothero && @krwq!