GithubHelp home page GithubHelp logo

Comments (7)

ganeshran avatar ganeshran commented on June 21, 2024

I have tried this on Ubuntu 14.04 with the same result. Also changed the endpoint to http:// instead of https. No luck

from corefxlab.

akoeplinger avatar akoeplinger commented on June 21, 2024

Restoring packages isn't supported on the CoreCLR-based DNX yet. You need to switch to the Mono-based DNX, restore there, switch back to CoreCLR and then run. See https://github.com/dotnet/coreclr/blob/master/Documentation/install/get-dotnetcore-dnx-linux.md#run-your-app

from corefxlab.

ganeshran avatar ganeshran commented on June 21, 2024

Hi @akoeplinger thanks for your reply. I tried switching to mono but am getting another error. I had switched to coreclr because dnu restore wasn't working on mono first.

I also tried to remove all runtimes and start from scratch. still no go :(

"Unhandled Exception: System.TypeLoadException: Could not load type 'System.Runtime.CompilerServices.TaskAwaiter`1' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'."

⇒ dnvm install -r mono latest -u
Determining latest version
Latest version is 1.0.0-beta7-12264
Downloading dnx-mono.1.0.0-beta7-12264 from https://www.myget.org/F/aspnetvnext/api/v2
Download: https://www.myget.org/F/aspnetvnext/api/v2/package/dnx-mono/1.0.0-beta7-12264
######################################################################## 100.0%
Installing to /home/ganesh/.dnx/runtimes/dnx-mono.1.0.0-beta7-12264
Adding /home/ganesh/.dnx/runtimes/dnx-mono.1.0.0-beta7-12264/bin to process PATH
ganesh@duraip-pc:/Development/test|
⇒ ls
HelloWorld.cs project.json
ganesh@duraip-pc:
/Development/test|
⇒ dnu restore

Unhandled Exception: System.TypeLoadException: Could not load type 'System.Runtime.CompilerServices.TaskAwaiter1' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. at EntryPoint.Main (System.String[] arguments) [0x00000] in <filename unknown>:0 [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: Could not load type 'System.Runtime.CompilerServices.TaskAwaiter1' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
at EntryPoint.Main (System.String[] arguments) [0x00000] in :0

from corefxlab.

akoeplinger avatar akoeplinger commented on June 21, 2024

Which Mono version (mono --version) are you using?

from corefxlab.

ganeshran avatar ganeshran commented on June 21, 2024

@akoeplinger Found the issue. I had installed mono-core package from epel repo. That doesn't work with dnu. After removing it and adding mono repo to yum and installing mono-complete it's working fine.

Thanks! I am able to run the code now

from corefxlab.

ganeshran avatar ganeshran commented on June 21, 2024

Please close the issue. Appreciate the support!

from corefxlab.

stephentoub avatar stephentoub commented on June 21, 2024

Thanks,@akoeplinger.

from corefxlab.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.