-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Occured ArgumentException about language paramter when scaffolding database #11075
Comments
@jeffrey-igaw - It should automatically get the language from project file. For some reason it looks like it is not happening. As a work-around you can use --language to pass in language with Can you copy paste initial lines from your screen shot? Especially the line start with |
Did you update your |
Uhmm, you're right, i dont change that. I will check out next working day! Thanks to your comments |
I'd upgrade Microsoft.EntityFrameworkCore.Tools.DotNet to 2.1.0-preview1-final, that's worked! |
🎉 Hooray! We should probably still fix the issue. There's no real reason it shouldn't work. We should also consider warning if your tool version doesn't match the runtime. |
@robichaud Try to DotNet CLI |
@brianrob Thank you, your solution fixed it. This issue has been resolved and will be closed. :D |
I think there is a bug when a model includes a new field to a class, in my case a nullable field (public DateTimeOffset? DateOfInterest { get; set; }) and perform a migration. If I downgrade to 2.0.1 the migration works no error all worked fine. I then added another nullable DateTimeOffset?, upgraded back to the "2.1.0 final preview" and i get the error again... Vitals: Repro: Any additional info needed, let me know. Hope this helps. |
@ZooDoo4U This looks like a different problem than is being tracked here. Can you please open a new issue for it? |
When i scaffolding my Efcore 2.1 project using net cli, occured Argument Exception.
Is this about .net cli version? i cannot found any parameter about
language
Exception message:
![image](https://user-images.githubusercontent.com/30995427/36738243-6c8c4d2a-1c20-11e8-85e5-5cb6664bd03f.png)
Stack trace:
Steps to reproduce
Include a complete code listing (or project/solution) that we can run to reproduce the issue.
Partial code listings, or multiple fragments of code, will slow down our response or cause us to push the issue back to you to provide code to reproduce the issue.
Further technical details
EF Core version: 2.1 preview 1 final
Database Provider: No matter
Operating system: Windows 10 Enterprise lastest release.
IDE: Rider 2017.3
.NET SDK: 2.1.3
The text was updated successfully, but these errors were encountered: