Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dotnet x.dll get "An assembly specified in the application dependencies manifest" #8736

Closed
ahdung opened this issue Sep 20, 2017 · 3 comments

Comments

@ahdung
Copy link

ahdung commented Sep 20, 2017

_20170920105746

Environment and Description

  • pc B installed dotnet core 2.0 runtime win64, os is windows server 2008 r2 x64 with SP1
  • pc A use VS2017 write a asp.net core 2.0 project, and published to a dir, with <PublishWithAspNetCoreTargetManifest>true</PublishWithAspNetCoreTargetManifest>
  • on A use dotnet dir\x.dll no error
  • copy dir to B, on B dotnet dir\x.dll get above error
  • if turn <PublishWithAspNetCoreTargetManifest>false</PublishWithAspNetCoreTargetManifest>, it's worked, but I don't want this
@JunTaoLuo
Copy link
Contributor

In addition to the .NET Core Runtime, you will need to install the ASP.NET Core Runtime Store on the target machine (in this case pc B). The Runtime Store is automatically installed via the Windows Server Hosting installer (see https://www.microsoft.com/net/download/core#/runtime for the most up to date download link). The reason this works on the developer machine (in this case pc A) is because the Runtime Store is installed via the .NET Core SDK.

@livarcocc
Copy link
Contributor

Like John indicated, you built your application using the asp.net store, which is on by default, so in order to run it, wherever you deploy it, you need the asp.net runtime store installed as well. Alternatively, you can turn off using the store when building your app by setting <PublishWithAspNetCoreTargetManifest>false<PublishWithAspNetCoreTargetManifest>. Note that if you set this, you will have to re-publish your app.

@ahdung
Copy link
Author

ahdung commented Sep 22, 2017

@JunTaoLuo It's worked, thank you very much.

@msftgits msftgits transferred this issue from dotnet/cli Jan 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants