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

CLI Tools: Add --runtime #8479

Closed
wapac opened this issue May 16, 2017 · 0 comments
Closed

CLI Tools: Add --runtime #8479

wapac opened this issue May 16, 2017 · 0 comments
Assignees
Labels
closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. type-enhancement
Milestone

Comments

@wapac
Copy link

wapac commented May 16, 2017

I have a project with csproj containing

    <RuntimeIdentifier>win10-x64</RuntimeIdentifier>

as Win10 is my main dev machine.

When the project source is downloaded on Ubuntu machine, the build process succeeds using this command:

dotnet publish --configuration Release --runtime ubuntu.14.04-x64

but then

dotnet ef database update

fails with this message:

Could not find required library libhostpolicy.so in 2 probing paths:
  /home/user/.nuget/packages
  /home/user/.nuget/packages
A fatal error was encountered. The library 'libhostpolicy.so' required to execute the application was not found in '/home/user/project/src/Project/bin/Debug/netcoreapp1.1/win10-x64'.

If RuntimeIdentifier is changed to ubuntu.14.04-x64 in csproj file:

    <RuntimeIdentifier>ubuntu.14.04-x64</RuntimeIdentifier>

dotnet ef database update command succeeds. This requires everyone who wants to build the project and generate database to rewrite csproj file. There is no --runtime argument with dotnet ef database update that one could use to overwrite this on command line.

@bricelam bricelam changed the title dotnet ef database update looks for libhostpolicy.so in wrong directory CLI Tools: Add --runtime May 16, 2017
@ajcvickers ajcvickers added this to the 2.0.0 milestone May 17, 2017
@bricelam bricelam added the closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. label Jun 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. type-enhancement
Projects
None yet
Development

No branches or pull requests

3 participants