asp.net core 2.0控制台应用程序filenotfoundexception system.runtime 4.2.0.0

问题描述 投票:0回答:1

我使用asp.net core 2.0创建了一个简单的控制台应用程序。我将它从vs2017发布到一个文件夹,并将内容复制到azure vm文件夹。当我运行控制台应用程序时,我收到以下错误:

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or ass
embly 'System.Runtime, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f
11d50a3a' or one of its dependencies. The system cannot find the file specified.

谁能帮我这个?

谢谢

c# console-application asp.net-core-2.0 azure-virtual-machine
1个回答
0
投票

我前段时间有同样的例外。检查您的数据是否与您的异常相同,可能是您的目录或类似内容。如果这无助于尝试清理和重建您的解决方案,那就帮助了我。祝你好运

© www.soinside.com 2019 - 2024. All rights reserved.