Rockford Lhotka's Blog

Home | Lhotka.net | CSLA .NET

 Thursday, 10 December 2015

Starting with version 4.6.300 CSLA .NET supports ASP.NET 5 (.NET Core) and the CSLA-Core NuGet package includes a portable class library that targets .NET 4.6 and dnxcore50.

There does appear to be an issue with adding the NuGet package to an ASP.NET Class Library project. I assume this is due to the pre-release nature of the ASP.NET 5 tooling.

What happens is easy to replicate. Create an ASP.NET 5 web site project, then add a portable class library using the ASP.NET 5 template:

snip_20151210110307

Then add a NuGet reference to CSLA .NET 4.6.300 (currently also in pre-release):

snip_20151210110454

Then try to use features of CSLA – for example, altering the Class1 code like this:

using System;
using Csla;

namespace ClassLibrary1
{
   [Serializable]
    public class Class1 : BusinessBase<Class1>
   {
         public Class1()
         { }
   }
}

The project will not compile at this point even though one would expect that CSLA really has been referenced:

snip_20151210110903

After some experimenting I found what appears to be a solution. The project.json file must be manually edited so CSLA is listed as a dependency not only in the “net451” framework, but also in the “dotnet5.4” framework:

{
   "version": "1.0.0-*",
   "description": "ClassLibrary1 Class Library",
   "authors": [ "Rockford" ],
   "tags": [ "" ],
   "projectUrl": "",
   "licenseUrl": "",
   "frameworks": {
     "net451": {
       "dependencies": {
         "CSLA-Core": "4.6.300-Beta001"
       }
     },
     "dotnet5.4": {
       "dependencies": { 
         "Microsoft.CSharp": "4.0.1-beta-23516",
         "System.Collections": "4.0.11-beta-23516",
         "System.Linq": "4.0.1-beta-23516",
         "System.Runtime": "4.0.21-beta-23516",
         "System.Threading": "4.0.11-beta-23516"
       }
     },
     “dependencies” : {
         “CSLA-Core”: “4.6.300-Beta001”
     } 
   }
}

The solution/workaround is to move the “CSLA-Core”: “4.6.300-Beta001” dependency from the “net451” framework to a global dependencies section.

With this change the project will now build.

Thursday, 10 December 2015 11:31:33 (Central Standard Time, UTC-06:00)  #    Disclaimer
 Wednesday, 09 December 2015

LVSPK25

It is time to register for VS Live or Modern Apps Live (register for either and get access to both!) in Las Vegas, March 7-11, 2016.

(I had to really concentrate to type 2016 – a whole new year already!!)

This is going to be a great set of conferences, co-located at Bally’s right as exciting new things like .NET Core and ASP.NET 5 are coming available.

Register with this link and save $500 off the standard price.

Visual Studio Live! includes content across the spectrum of mobile, Windows, web, and services development, with a healthy dose of ALM, TFS, and other cool tools.

Modern Apps Live! provides a unique conference experience, walking through every aspect of modern app development for iOS, Android, single-page web apps, and Windows, with an Azure-based backend, discussions about managing distributed teams, continuous integration, building code for testability, and wrapping up with great content around data analytics. If you want the end-to-end story on how to successfully build a modern cross-platform app this is the conference for you.

I look forward to seeing you in Las Vegas!

Wednesday, 09 December 2015 14:02:47 (Central Standard Time, UTC-06:00)  #    Disclaimer
 Wednesday, 02 December 2015

I think this article about Apple's attempt to transform the iPad into a laptop - and contrasting it to Microsoft's Surface-based attempt to transform a laptop into a tablet - is quite good.

Personally I'm a strong advocate for the hybrid device scenario, having spent the last few years entirely in Surface-land. Starting with the Surface Pro 3 (SP3) I have been quite happy with that choice. The SP1 and SP2 widescreen concept was interesting, but impractical for doing real work like editing documents or running Visual Studio. The SP3 and now SP4 screen sizes are very practical (especially the Surface Pro 4 - what a beautiful screen!!).

The idea that Apple would create some sort of hybrid was a foregone conclusion from my perspective - once I'd become hooked on using a Surface instead of an old-fashioned laptop.

When I'm sitting in a cramped airplane seat, or relaxing on the couch in front of the TV I want a tablet - one with all my stuff on it.

And when I'm trying to actually compose an email, write a document, or do some coding, I want a laptop - one with all my stuff on it.

Interestingly enough, "my stuff" is the same at all times. I want access to all my stuff whenever and wherever I am.

I use OneDrive to store all my documents, music, photos, etc. All my files are on my desktop, Surface, and in the cloud – so they are available anywhere and everywhere. And that would be true on a Mac and iPad too (though probably not offline on the iPad, so not accessible on an airplane?).

Another big reason my stuff is always available is because of the way Windows 10 roams everything - all my app/browser/desktop settings sync across my devices. And that could maybe be done between a Mac and iPad I would guess - with some effort to address the mismatch between Mac and iPad apps that do similar things, but aren’t the same apps.

But on Windows 10 I am using the same apps on my desktop and Surface (and often my phone). So there's no mismatch, they are literally the same.

Maybe not everyone values this consistency like I do - but I want my same browser with my same favorites/shortcuts/etc. on every device I use. And I want my news reader (NextGen Reader) and Reddit  (Readit) and weather and twitter (Tweetium) and Facebook apps to know what I've done and what I like without having to tell every device the same stuff over and over.

So yeah, I'm a big fan of the hybrid model - and I hope Apple is reasonably successful at it, if for no other reason that competition will drive Microsoft to keep making Win10 and Surface better and better so I love it more and more :)

Wednesday, 02 December 2015 13:16:16 (Central Standard Time, UTC-06:00)  #    Disclaimer

I have had my new Surface Pro 4 for a few days now (I waited to get the i7 model) and I’m liking it quite a lot. I really liked my SP3, and the SP4 is better yet.

My one primary disappointment is with the dock. I got the new Surface dock and tried to connect it to my two external monitors using brand new mini-DisplayPort-to-DVI cables but the displays were just all messed up – one or the other would come on but not both, and everything was very unstable.

Searching around the Internet I found this: https://www.reddit.com/r/Surface/comments/3s655j/surface_pro_4_dock_cannot_drive_a_dvi_monitor/

In summary, the Surface dock can’t power DVI or HDMI outputs directly. I assume it can power VGA directly, but I don’t know – maybe not?

This makes the dock pretty useless for many (most?) of us who don’t have monitors that have DisplayPort ports. I’ve never owned such a monitor and I don’t think I’ve ever actually seen one in a store or anything. So I assume that most of us don’t have such a thing.

WP_20151201_16_05_46_ProIn my case I was “fortunate” in that I’d already bought a powered DisplayPort hub to get the dual monitor scenario working from my Surface 3 dock, so that’s what I’m using to get my monitors to work. The DP hub I’m using is from StarTech and seems to work quite nicely.

The fact that it works remains quite disappointing though. The Surface dock looks like it would be useful, but in practice I think for most of us it doesn’t do what any reasonable person would expect – which is to say that the two DP ports are not what they seem.

So if you are considering buying the Surface dock I’d suggest that you also budget an extra US$100 or so to buy a DP hub and appropriate DP-to-DVI (or HDMI) cables.

Wednesday, 02 December 2015 10:49:22 (Central Standard Time, UTC-06:00)  #    Disclaimer
On this page....
Search
Archives
Feed your aggregator (RSS 2.0)
February, 2017 (2)
January, 2017 (2)
December, 2016 (5)
November, 2016 (2)
August, 2016 (4)
July, 2016 (2)
June, 2016 (4)
May, 2016 (3)
April, 2016 (4)
March, 2016 (1)
February, 2016 (7)
January, 2016 (4)
December, 2015 (4)
November, 2015 (2)
October, 2015 (2)
September, 2015 (3)
August, 2015 (3)
July, 2015 (2)
June, 2015 (2)
May, 2015 (1)
February, 2015 (1)
January, 2015 (1)
October, 2014 (1)
August, 2014 (2)
July, 2014 (3)
June, 2014 (4)
May, 2014 (2)
April, 2014 (6)
March, 2014 (4)
February, 2014 (4)
January, 2014 (2)
December, 2013 (3)
October, 2013 (3)
August, 2013 (5)
July, 2013 (2)
May, 2013 (3)
April, 2013 (2)
March, 2013 (3)
February, 2013 (7)
January, 2013 (4)
December, 2012 (3)
November, 2012 (3)
October, 2012 (7)
September, 2012 (1)
August, 2012 (4)
July, 2012 (3)
June, 2012 (5)
May, 2012 (4)
April, 2012 (6)
March, 2012 (10)
February, 2012 (2)
January, 2012 (2)
December, 2011 (4)
November, 2011 (6)
October, 2011 (14)
September, 2011 (5)
August, 2011 (3)
June, 2011 (2)
May, 2011 (1)
April, 2011 (3)
March, 2011 (6)
February, 2011 (3)
January, 2011 (6)
December, 2010 (3)
November, 2010 (8)
October, 2010 (6)
September, 2010 (6)
August, 2010 (7)
July, 2010 (8)
June, 2010 (6)
May, 2010 (8)
April, 2010 (13)
March, 2010 (7)
February, 2010 (5)
January, 2010 (9)
December, 2009 (6)
November, 2009 (8)
October, 2009 (11)
September, 2009 (5)
August, 2009 (5)
July, 2009 (10)
June, 2009 (5)
May, 2009 (7)
April, 2009 (7)
March, 2009 (11)
February, 2009 (6)
January, 2009 (9)
December, 2008 (5)
November, 2008 (4)
October, 2008 (7)
September, 2008 (8)
August, 2008 (11)
July, 2008 (11)
June, 2008 (10)
May, 2008 (6)
April, 2008 (8)
March, 2008 (9)
February, 2008 (6)
January, 2008 (6)
December, 2007 (6)
November, 2007 (9)
October, 2007 (7)
September, 2007 (5)
August, 2007 (8)
July, 2007 (6)
June, 2007 (8)
May, 2007 (7)
April, 2007 (9)
March, 2007 (8)
February, 2007 (5)
January, 2007 (9)
December, 2006 (4)
November, 2006 (3)
October, 2006 (4)
September, 2006 (9)
August, 2006 (4)
July, 2006 (9)
June, 2006 (4)
May, 2006 (10)
April, 2006 (4)
March, 2006 (11)
February, 2006 (3)
January, 2006 (13)
December, 2005 (6)
November, 2005 (7)
October, 2005 (4)
September, 2005 (9)
August, 2005 (6)
July, 2005 (7)
June, 2005 (5)
May, 2005 (4)
April, 2005 (7)
March, 2005 (16)
February, 2005 (17)
January, 2005 (17)
December, 2004 (13)
November, 2004 (7)
October, 2004 (14)
September, 2004 (11)
August, 2004 (7)
July, 2004 (3)
June, 2004 (6)
May, 2004 (3)
April, 2004 (2)
March, 2004 (1)
February, 2004 (5)
Categories
About

Powered by: newtelligence dasBlog 2.0.7226.0

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2017, Marimer LLC

Send mail to the author(s) E-mail



Sign In