efcore icon indicating copy to clipboard operation
efcore copied to clipboard

Startup.cs Main entry point and EFF

Open kscott5 opened this issue 10 years ago • 7 comments

It's one thing to change the release but its unacceptable that there's a lack of documentation to support the changes. It not worth the effort to maintain a code base where there's a lack of stability with the release candidate 1, 2 or update...

capture

Green Shelter Code Repository

Any suggestion on how best to fix this and many other issues. Such as pull a specific version of an assembly that's no longer available.

dnu install System.Diagnostics.DiagnosticSource 4.0.0-rc2-23629

or Strong Name errors!!!!

kscott5 avatar Jan 21 '16 22:01 kscott5

What's in your project.json? It looks like you're mixing incompatible versions of Hosting and EntityFramework.Commands...

bricelam avatar Jan 21 '16 23:01 bricelam

Hmm, the project.json of the referenced repository looks fine. There is a ton of churn in the nightly builds right now as we transition off of DNX and onto the .NET Core CLI. For some semblance of stability, you may want consider using the RC1 packages until the dust settles.

bricelam avatar Jan 21 '16 23:01 bricelam

For some semblance of stability, you may want consider using the RC1 packages until the dust settles.

Agreed, we don't maintain documentation etc. for nightly builds (and things are going to be very rough for the next few weeks while a whole bunch of renames etc. happen). If you opt into using nightly builds then you can expect pain :smile:. When it comes time for RC2 then we will provide details on how to upgrade from RC1 etc.

BTW your point about this not being as stable as RC software should be is valid :smile:.

rowanmiller avatar Jan 21 '16 23:01 rowanmiller

@rowanmiller I'm not alone, and I'm not crazy! Well, crazy a little cause I still enjoy da code.

Thanks for your reply. I will continue to use but any help with EF would be appreciated.

@bricelam or anyone,

What's recommend way to reference assemblies in the project.json? How does referencing the targeted SDK (RC1) affect the global.json and projects as whole? What's the recommend way to reference and register strongly type options (such as SessionOptions) in the Startup.cs? This is important considering dependency injections of SessionOptions has to load an enumerated property.

kscott5 avatar Jan 22 '16 20:01 kscott5

To use RC1, just make sure the nightly MyGet feed is not active in your NuGet.config.

I don't understand the issues your having related to strong-naming. Can you post the steps, code, expected result, etc. of the issue you're seeing?

bricelam avatar Jan 22 '16 22:01 bricelam

My GreenShelter github repo has the code segment. It's in the ConfigureServices method located in Startup.cs file. It stopped running after the Main method was introduced as the WebApplication entry point of execution. Take and provide any suggestions and/or coding best practices.

Sent from my T-Mobile 4G LTE Device

-------- Original message -------- From: Brice Lambson Date:01/22/2016 4:47 PM (GMT-06:00) To: aspnet/EntityFramework Cc: Karega Scott Subject: Re: [EntityFramework] Startup.cs Main entry point and EFF (#4367)

To use RC1, just make sure the nightly MyGet feed is not active in your NuGet.config.

I don't understand the issues your having related to strong-naming. Can you post the steps, code, expected result, etc. of the issue you're seeing?

Reply to this email directly or view it on GitHubhttps://github.com/aspnet/EntityFramework/issues/4367#issuecomment-174078466.

kscott5 avatar Jan 23 '16 01:01 kscott5

We've opened up https://github.com/aspnet/EntityFramework/issues/4546 to track the high level need to revisit how we interact with Startup.cs.

rowanmiller avatar Feb 12 '16 18:02 rowanmiller