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

Decouple dotnet-ef from the framework #4977

Closed
wants to merge 3 commits into from
Closed

Decouple dotnet-ef from the framework #4977

wants to merge 3 commits into from

Conversation

bricelam
Copy link
Contributor

@bricelam bricelam commented Apr 4, 2016

Part of #3925, also resolves #4837

@natemcmaster

@@ -51,7 +50,8 @@ public static int Main([NotNull] string[] args)
ex = ex.InnerException;
}

if (!(ex is OperationException))
if (!(ex is CommandException
|| (ex as OperationException)?.Type == "Microsoft.EntityFrameworkCore.Design.OperationException"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be Microsoft.EntityFramework.Commands.OperationException?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is correct. I'll rename some of the types in Commands, so it's less confusing. (currently there are two OperationException and OperationExecutor types)

@bricelam
Copy link
Contributor Author

bricelam commented Apr 5, 2016

I've bashed on it and things look OK. 83e510f needs review.

Unfortunately, I get the following errors when using the tool with portable apps. 😞 Everything (except #4953) appears to be working with standalone apps.

  • Unable to load DLL 'sqlite3': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
  • Could not load file or assembly 'System.Data.SqlClient, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

@natemcmaster
Copy link
Contributor

Unfortunately, I get the following errors when using the tool with portable apps.

Possible related to other "portable with native" errors? cref https://github.com/dotnet/cli/issues/1940

@natemcmaster
Copy link
Contributor

Don't forget to update csproj

@natemcmaster
Copy link
Contributor

I want to say :shipit:, but we should probably first make sure CLI is aware that tools on portable apps w/ native doesn't work.

@bricelam
Copy link
Contributor Author

bricelam commented Apr 5, 2016

Will file a bug, but these issues may no longer be relevant after we resolve #4577.

@natemcmaster
Copy link
Contributor

ok. As long as dotnet-ef is working on something, this is improvement, right? :shipit: w/ csproj fixes.

@bricelam
Copy link
Contributor Author

bricelam commented Apr 5, 2016

this is improvement, right?

lol, yes. We've gone from "not working" to "almost working" 😉

@bricelam bricelam closed this Apr 5, 2016
@bricelam bricelam deleted the loi branch April 5, 2016 22:28
@bricelam
Copy link
Contributor Author

bricelam commented Apr 5, 2016

Merged as 595f262 & 4df6dbe

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

Successfully merging this pull request may close these issues.

3 participants