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.

Error trying to generate CSharp Client: Could not load type 'System.Runtime.CompilerServices.TaskAwaiter'

See original GitHub issue

It was working before this version (sorry, I don’t know exactly what version exactly I upgraded from) I’m using 11.7.2.0 now.

The project is asp.net core 2.0 and all references are netstandard 2.0. I get this error even if I don’t select any controller.

Any clues?

Thanks!

image

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
RicoSutercommented, Sep 18, 2017

Yes and i think you also dont need to dotnet publish selfcontained - dotnet build should be enough

0reactions
RicoSutercommented, Sep 25, 2017

v11.8 has been released, please test your projects with it:

image

The wiki has been updated: https://github.com/RSuter/NSwag/wiki/Assembly-loading

Read more comments on GitHub >

github_iconTop Results From Across the Web

Could not load type 'System.Runtime.CompilerServices. ...
The pre-application start initialisation method Run on type WebActivator.ActivationManager threw an exception with the following error message ...
Read more >
Error loading assembly using Graph API
I am trying to write a function app that uses the Graph SDK. ... but was not handled in user code: 'Could not...
Read more >
Cannot load file or assembly 'System.Runtime'
When I try to run the application, I get this error: Could not load file or assembly 'System.Runtime, Version=4.0.0.0, Culture=neutral, ...
Read more >
AWS Lambda function errors in C# - ...
This page describes how to view Lambda function invocation errors for the C# runtime using the Lambda console and the AWS CLI.
Read more >
Error when changing Scripts - Unity Forum
I'm getting the DirectoryNotFoundException on it : Code (CSharp):. System.IO.DirectoryNotFoundException: Could not ...
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