简体   繁体   English

DotNet Core 控制台应用程序:应用程序依赖项清单中指定的程序集

[英]DotNet Core console app: An assembly specified in the application dependencies manifest

Im just trying to run a DotNet Core console app on a Windows Server 2012 R2 but I keep getting this error:我只是想在 Windows Server 2012 R2 上运行 DotNet Core 控制台应用程序,但我不断收到此错误:

Error: An assembly specified in the application dependencies manifest (Application.deps.json) was not found: package: 'Microsoft.Web.Administration', version: '11.1.0' path: 'lib/netstandard1.5/Microsoft.Web.Administration.dll'错误:未找到应用程序依赖项清单 (Application.deps.json) 中指定的程序集:包:'Microsoft.Web.Administration',版本:'11.1.0' 路径:'lib/netstandard1.5/Microsoft.Web .管理.dll'

The dll that is missing is inside the /publish folder... I used Dotnet publish with the correct Runtime Identifier (win81-x64)缺少的 dll 位于 /publish 文件夹内...我使用了带有正确运行时标识符 (win81-x64) 的 Dotnet 发布

I installed the Dotnet runtime 2.0.7 on the server我在服务器上安装了 Dotnet 运行时 2.0.7

Always use the publish output when deploying to a target sever.部署到目标服务器时,始终使用发布输出。

It can be found in它可以在

bin\Release\netcoreapp2.0\win81-x64\publish

in your case (self-contained application)在你的情况下(自包含的应用程序)

or in或在

bin\Release\netcoreapp2.0\publish

for framework-dependent deployments.用于依赖于框架的部署。

The output in the directories above are meant to be used in development only, since they are specific to machine and user configuration built with.上述目录中的输出仅用于开发,因为它们特定于构建的机器和用户配置。

I had this issue because I deployed the wrong publish folder.我遇到这个问题是因为我部署了错误的发布文件夹。

I decided to take the time a setup a publish profile .我决定花时间设置一个publish profile
In solution Explorer... Right Click on the Project -> Publish在解决方案资源管理器中... Right Click项目-> 发布
or from the menu Build->Publish或从菜单 Build->Publish

.NET Core application publishing overview .NET Core 应用程序发布概述

Using a publish profile you can set the target location to something simple使用发布配置文件,您可以将目标位置设置为简单的

drive:\Publish\[project]

This will save you from haveing to navigate 10 levels deep an possibly copying the wrong folder.这将使您不必导航 10 层深并可能复制错误的文件夹。

Deploy .NET Core apps with Visual Studio 使用 Visual Studio 部署 .NET Core 应用

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 应用程序依赖项清单中指定的程序集 - An assembly specified in the application dependencies manifest 未找到应用程序依赖项清单中指定的程序集: - An assembly specified in the application dependencies manifest was not found: Net core VS 测试任务失败并出现错误:未找到应用程序依赖项清单 deps json 中指定的程序集 - Net core VS test task is failing with the error : assembly specified in the application dependencies manifest deps json was not found 错误:在部署.Net core 2.2 时,找不到应用程序依赖项清单中指定的程序集 Package:Newtonsoft.Json - Error: An assembly specified in the application dependencies manifest not found Package:Newtonsoft.Json when deploying .Net core 2.2 找不到应用程序依赖项清单 (Microsoft.NETCore.App.deps.json) 中指定的程序集 - An assembly specified in the application dependencies manifest (Microsoft.NETCore.App.deps.json) was not found 未找到应用程序依赖项清单 (project.deps.json) 中指定的程序集 - An assembly specified in the application dependencies manifest (project.deps.json) was not found 无法解决“未找到应用程序依赖项清单中指定的程序集”错误 - Cannot resolve “An assembly specified in the application dependencies manifest was not found” error 错误:未找到依赖项清单中指定的程序集。 - Error: assembly specified in the dependencies manifest was not found. DotNet核心控制台应用程序:AutoMapper - DotNet Core Console Application: AutoMapper 迁移到 .NET 6 时,所有测试都没有结论,出现相同的“未找到应用程序依赖项清单中指定的程序集”错误 - All tests are inconclusive with the same "An assembly specified in the application dependencies manifest was not found" error when migrating to .NET 6
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM