You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
RFC: Change examples to use async/await pattern + drop VS2010 compatibility #381
One question that has arisen after the discussion we had in #373 (as to the "be or not to be" for a locking-synchronous-Task-Wait-based approach), and the suggested approach for these kind of things for the future, is the way we we should recommend that these kind of things be done.
I mean, normally if you would have a method like this:
Task<string> GetSourceAsync()
{
return "foo";
}
...which you would then call perhaps like this:
string source = await GetSourceAsync();
All fine and dandy. Only one problem:
This requires VS2012 or newer, and
It requires .NET 4.5, or the use of Microsoft.Bcl.Async which works quite well actually (using it personally).
In any way, I feel that since this is the "preferred approach" that we want to recommend people to use, it would be good if we would use it ourselves. 😃 So, here's my recommendation:
We drop support for VS2010, and only support 2012 and 2013 onwards.
We upgrade the example projects to use .NET 4.5, so we can go with async. Note: only the example projects; CefSharp still needs to be .NET 4.0 for a little while, since there might be user's who cannot upgrade to .NET 4.5 so easily (I happen to be one of them. 😉)
What about keeping the core libraries at .Net 4.0, creating a separate solution -Core which maintains VS2010 support, then a separate -All solution that contains the Core + Examples, where the examples have been upgraded to .Net 4.5? Allows people that still require VS2010 to build CefSharp, and we can continue on our merry await way! 😄
As it seems rare to add/remove projects from the solutions as it stands, maintaining two shouldn't be too much work.
We could of course do it like that also, but it raises the bar a bit for contributing to the project. It's quite nice to just be able to open the .sln and hack away.
Open question to everyone: How many of you are still using VS2010? (and have no access to VS2012 or 2013)
If the number of people affected is low, it's not a big deal, then we just drop 2010 (since CEF is also moving towards 2013 AFAIK).
Just to make it extremely explicit: 2010 users will still be able to use CefSharp as a consumer of the library (since it's .NET 4.0 for at least the near future), it's just that they won't be able to contribute to the project that might be a problem.
@kropewnicki Are you simply building to get access to features in master or actually modifying the source code?
If your just obtaining a build of master, then we can probably look at providing nightly builds available for download. Would that meet your requirements?
OK. So we have at least two people @ray007 and @kropewnicki that are still using VS2010. Any reason that you cannot upgrade to either VS2012 or 2013? I guess you don't have MSDN partner download access or similar? (I do myself)
For version 39 I'm going to upgrade the examples to .Net 4.5. The core libraries are still .Net 4.0.
It's ticked over to 2015, so I think it's time, specially with the release of VS 2013 Community Edition allowing small companies and open source contributors free access to the equivalent of VS 2013 Professional
Great, thanks! I think we should not bump the core libraries to .Net 4.5 yet, unless it really causes problems for us to have them on 4.0.
As for me - has been extremely unavailable from the project for the last few months. Will maybe come in for a minor return within the next few months, since we will start upgrading to CefSharp3 (i.e. 37 or 39 or whatever the version is nowadays. 😄) But anyway, don't count on me as a "major" contributor this year, but more a minor collaborator amongst the peers.
Anyho' good to "hear" from you @perlun 👍 ... I'm also still mostly lurking in the background 😵 and @amaitland + a few other semi-regular contributors have recently done a lot of good work!
Activity
amaitland commentedon Jun 2, 2014
What about keeping the core libraries at .Net 4.0, creating a separate solution
-Corewhich maintains VS2010 support, then a separate-Allsolution that contains the Core + Examples, where the examples have been upgraded to .Net 4.5? Allows people that still require VS2010 to build CefSharp, and we can continue on our merryawaitway! 😄As it seems rare to add/remove projects from the solutions as it stands, maintaining two shouldn't be too much work.
Thoughts?
perlun commentedon Jun 2, 2014
We could of course do it like that also, but it raises the bar a bit for contributing to the project. It's quite nice to just be able to open the .sln and hack away.
Open question to everyone: How many of you are still using VS2010? (and have no access to VS2012 or 2013)
If the number of people affected is low, it's not a big deal, then we just drop 2010 (since CEF is also moving towards 2013 AFAIK).
Just to make it extremely explicit: 2010 users will still be able to use CefSharp as a consumer of the library (since it's .NET 4.0 for at least the near future), it's just that they won't be able to contribute to the project that might be a problem.
amaitland commentedon Jun 2, 2014
VS2012 and VS2013 here, only use VS2010 for legacy stuff (doesn't include CefSharp)
ray007 commentedon Jun 5, 2014
VS2010 here and no chance to change that anytime soon.
JanEggers commentedon Jun 5, 2014
personally i use vs 2013 so i dont mind dropping vs2010 support.
👍 it is up to the user to decide if they want to use await GetSourceAsync() or GetSourceAsync().ContinueWith()
so i dont see any reason why we should upgrade cefsharp to 4.5 as long as we dont need any features of it.
jornh commentedon Jun 5, 2014
👍 for the same reasons as Jan nicely summed up + we still have the
MinimalExamplerepo.I think we can move this to 31.0.1 though - so that's how I marked it. It's not our contract, just polish of examples.
kropewnicki commentedon Jun 5, 2014
I am using vs2010.
amaitland commentedon Jun 5, 2014
@kropewnicki Are you using VS2010 to compile CefSharp from source?
kropewnicki commentedon Jun 5, 2014
@amaitland Yes.
amaitland commentedon Jun 6, 2014
@kropewnicki Are you simply building to get access to features in
masteror actually modifying the source code?If your just obtaining a build of master, then we can probably look at providing
nightlybuilds available for download. Would that meet your requirements?kropewnicki commentedon Jun 6, 2014
@amaitland
I am compiling from master, I modified to use the some newer CEF binaries.
perlun commentedon Jun 9, 2014
OK. So we have at least two people @ray007 and @kropewnicki that are still using VS2010. Any reason that you cannot upgrade to either VS2012 or 2013? I guess you don't have MSDN partner download access or similar? (I do myself)
11 remaining items
Upgrade example projects to .Net 4.5 (as discussed in cefsharp#381)
amaitland commentedon Jan 6, 2015
For version
39I'm going to upgrade the examples to.Net 4.5. The core libraries are still.Net 4.0.It's ticked over to
2015, so I think it's time, specially with the release ofVS 2013 Community Editionallowing small companies and open source contributors free access to the equivalent ofVS 2013 Professionalhttp://www.visualstudio.com/en-us/news/vs2013-community-vs.aspx
amaitland commentedon Jan 6, 2015
Commit amaitland@fc65192 resolves this Issue.
perlun commentedon Jan 7, 2015
Great, thanks! I think we should not bump the core libraries to .Net 4.5 yet, unless it really causes problems for us to have them on 4.0.
As for me - has been extremely unavailable from the project for the last few months. Will maybe come in for a minor return within the next few months, since we will start upgrading to CefSharp3 (i.e. 37 or 39 or whatever the version is nowadays. 😄) But anyway, don't count on me as a "major" contributor this year, but more a minor collaborator amongst the peers.
jornh commentedon Jan 7, 2015
Agree! (on the 4.0 vs 4.5 situation)
Anyho' good to "hear" from you @perlun 👍 ... I'm also still mostly lurking in the background 😵 and @amaitland + a few other semi-regular contributors have recently done a lot of good work!