简体   繁体   中英

Mono not executing VS compiled 4.5 .NET API exe with Azure reference

I have a Linux/ubuntu Trusty64 virtual machine through virtual box manager. I'm trying to run a VS 2015 compiled .NET4.5 Web API exe with Azure storage reference through Mono. I have the Exe and EXE.Config file in the app folder. When I give the mono command it comes back saying

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.WindowsAzure.Storage, version=7.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35' or one of its dependencies.

Here is how I did it, I upgraded my .NET code into a 5.0 console package template. Made sure it was DNX 5.0 core compliant code and made the below dockerfile in the Ubuntu virtual machine at the solution level of the project. FROM microsoft/aspnet COPY . /app WORKDIR /app/src/"Projectname" RUN ["dnu","restore"] ENTRYPOINT ["dnx", "run"]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM