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
DotnetCLI commands not following same behavior as Application #7356
Comments
From @livarcocc on January 4, 2017 22:47 Can you please move this issue here: https://github.com/aspnet/EntityFramework? |
Could you share your |
|
@shairozan Does this repro using the latest bits? (See #7358 for how to try them out.) |
Yeah. Even after updating to 1.1.0-msbuild3-final, the application loads and locates json configurations fine, but dotnet ef complains about not being able to find it. |
Can you share your project (or a simplified repro) so we can investigate further? |
Note, UserSecrets requires updating the call from |
Closing since I am not able to repro. Please re-open with a full repro if making the appropriate UserSecrets change doesn't help. |
From @shairozan on January 4, 2017 22:9
Steps to reproduce
Whenever we try to run a migration, it fails, complaining about the secrets.json file not being in the right location. Our DBContext has an onconfiguring override that allows us to select the connection string dynamically based on the environment variables in order to make Docker deployments more fluid.
The biggest issue is that since the 1.1 upgrade, dotnet ef database update has been failing complaining about how secrets.json is not in the bin\Debug\netcoreapp1.1\ directory.
Expected behavior
Actual behavior
The application will run fine, but attempting to perform entity operations like running migrations complains about the secrets.json file not being in the netcore1.1 debug directory
Environment data
$ dotnet --info
.NET Command Line Tools (1.0.0-preview2-003131)
Product Information:
Version: 1.0.0-preview2-003131
Commit SHA-1 hash: 635cf40e58
Runtime Environment:
OS Name: Windows
OS Version: 10.0.14393
OS Platform: Windows
RID: win10-x64
Copied from original issue: dotnet/cli#5207
The text was updated successfully, but these errors were encountered: