Beta 10 and Vs 2017 - great !!
Posted: Wed Mar 15, 2017 2:42 pm
Hi guys,
Well, I have given Beta 10 and the Visual Studio integration a bit of a good test earlier today.
I even managed to find the Beta 10 installer before Robert had posted his news ;-0)
I like the improvements and the new version certainly speeded up my task of manually converting Nick Friends IoC (inversion of control) sample from C# into X#. For those who don't know Nick, he created an MVVM sample app for our User Group meeting many years back now, and it still stands the test of time as a useful app pattern to follow. I will make the working X# solution available to those who wish to see it and try it out - Nick, if you have any objection then shout now !
Before we go into more detail about VS 2017, here is the picture of success - yes, it surprised me, I did think I would have more issues than I did :-
Not fantastic to look at, but it all works interactively as expected. Now below we can see that in my code I had already had code lines entered with 'self:' embedded, but today I used quite a few 'self.' with the single dot or point. The next image shows both in one image, lines 24 and 36 :-
And to get a feel for the overall structure in the SE pane, here is the collapsed view :-
And for some of you the expanded view is also useful, informative and instructive :-
Yes, you can see the MVVM general structure, and the References section (expanded below) shows the required Galasoft framework for MVVM as well as the 'IoC' stuff - the Controller to allow us to separate out the opening, display, and closing of the Windows and UserControl GUI stuff.
Now then folks, what are the negatives to what I have done today, what gave ne grief in the VS IDE ?
Well, even though I could happily mix my coded 'self:' and 'self.' bits, when I came to a final compile and run, the code in a file generated by the 'system' showed this :-
Yes, for some reason line 51 and the ' : ' after SELF was not liked. And even though I did not really know what I was doing I changed this manually and the app then compiled and ran !
Here is the change and run screen image :-
So why this happens only on line 51 we need Robert and his Team guys to tell us.
Now then some more issues with VS2017 and beta 10 - I had a few errors and 'drop outs' when VS stopped and reset itself. I was not too surprised - AND _ I was copying chunks of C# code into the X# editor before manually cleaning it up. The Constructors in a few code files gave me most of the drop-out issues. However the one seen below in in the App file :-
I like the #regions and the expand / collapse now available. I will continue to try stuff out as I go along with my preparation for Cologne, but there are a lot to things to try.
Summary is - good news - working apps can be made and got to work.
I realise that VS integration is a complex and difficult aspect / issue, however, it is important to many of us, so work in progress and keep on improving it a few more things at a time. I am more than willing to help by testing.
Cheers, and Best regards,
Phil.
Wales, UK.
P.S. here is one of the constructor issues :-
Hope this helps the Team and some of you guys out there ;-0)
Well, I have given Beta 10 and the Visual Studio integration a bit of a good test earlier today.
I even managed to find the Beta 10 installer before Robert had posted his news ;-0)
I like the improvements and the new version certainly speeded up my task of manually converting Nick Friends IoC (inversion of control) sample from C# into X#. For those who don't know Nick, he created an MVVM sample app for our User Group meeting many years back now, and it still stands the test of time as a useful app pattern to follow. I will make the working X# solution available to those who wish to see it and try it out - Nick, if you have any objection then shout now !
Before we go into more detail about VS 2017, here is the picture of success - yes, it surprised me, I did think I would have more issues than I did :-
Not fantastic to look at, but it all works interactively as expected. Now below we can see that in my code I had already had code lines entered with 'self:' embedded, but today I used quite a few 'self.' with the single dot or point. The next image shows both in one image, lines 24 and 36 :-
And to get a feel for the overall structure in the SE pane, here is the collapsed view :-
And for some of you the expanded view is also useful, informative and instructive :-
Yes, you can see the MVVM general structure, and the References section (expanded below) shows the required Galasoft framework for MVVM as well as the 'IoC' stuff - the Controller to allow us to separate out the opening, display, and closing of the Windows and UserControl GUI stuff.
Now then folks, what are the negatives to what I have done today, what gave ne grief in the VS IDE ?
Well, even though I could happily mix my coded 'self:' and 'self.' bits, when I came to a final compile and run, the code in a file generated by the 'system' showed this :-
Yes, for some reason line 51 and the ' : ' after SELF was not liked. And even though I did not really know what I was doing I changed this manually and the app then compiled and ran !
Here is the change and run screen image :-
So why this happens only on line 51 we need Robert and his Team guys to tell us.
Now then some more issues with VS2017 and beta 10 - I had a few errors and 'drop outs' when VS stopped and reset itself. I was not too surprised - AND _ I was copying chunks of C# code into the X# editor before manually cleaning it up. The Constructors in a few code files gave me most of the drop-out issues. However the one seen below in in the App file :-
I like the #regions and the expand / collapse now available. I will continue to try stuff out as I go along with my preparation for Cologne, but there are a lot to things to try.
Summary is - good news - working apps can be made and got to work.
I realise that VS integration is a complex and difficult aspect / issue, however, it is important to many of us, so work in progress and keep on improving it a few more things at a time. I am more than willing to help by testing.
Cheers, and Best regards,
Phil.
Wales, UK.
P.S. here is one of the constructor issues :-
Hope this helps the Team and some of you guys out there ;-0)