DiSSaRRaY
Epic Member
It's fast, it's easy... but man it can be a pain in the ass to get stuff working.
We're currently working on a .NET Core 2.0 Web Project, which is running perfectly fine.
What I didn't know, is that it doesn't support EntityFramework 6 and below. You'll find it might work sometimes, but the problem is that there is no *.config file with a connection string for EF to reference in the web project.
If you use EntityFramework Core, you might be in the clear, but it's a bit more of a job to setup you context, and it looks like quite a few things from SQL's side isn't yet supported.
So get around this problem, I've added a Console application to the solution, that runs as a post build event when the Web Project has built.
What this Console application does, is open the <App>.exe.config in the Debug/Release folder, write in the connection strings, and save the file.
At least for now, we can actually continue working without having to update the files manually.
We're currently working on a .NET Core 2.0 Web Project, which is running perfectly fine.
What I didn't know, is that it doesn't support EntityFramework 6 and below. You'll find it might work sometimes, but the problem is that there is no *.config file with a connection string for EF to reference in the web project.
If you use EntityFramework Core, you might be in the clear, but it's a bit more of a job to setup you context, and it looks like quite a few things from SQL's side isn't yet supported.
So get around this problem, I've added a Console application to the solution, that runs as a post build event when the Web Project has built.
What this Console application does, is open the <App>.exe.config in the Debug/Release folder, write in the connection strings, and save the file.
At least for now, we can actually continue working without having to update the files manually.