18

Closed

Unnecessary references included in templates

description

The templates for a Gadgeteer 4.2(and prossibly 4.1) application includes references that should not be included by default. These references should be added by modules that will actually use the references.
 
Examples include:
Microsoft.SPOT.Touch(useless without touch capable display)
Microsoft.SPOT.Graphics(useless without network or display)
Microsoft.SPOT.Hardware.Serial(useless without a "U" capable module)
System.HTTP(useless without network)
 
On bigger boards including unnecessary references isn't much of a problem, but on smaller boards, like the Cerberus or Mountaneer boards, ram becomes a problem and loading unnecessary references wastes ram.
 
Thus only the bare references should be included in the templates, and modules that require references should declare that requirement, and add the references to the project.
Closed Apr 25, 2013 at 7:18 PM by JanKuceraMSFT
Fixed in the upcoming release. Removed:
Microsoft.SPOT.Hardware.SerialPort
Microsoft.SPOT.IO
Microsoft.SPOT.Net.Security
Microsoft.SPOT.Touch
System
System.Http

There is no point in removing Microsoft.SPOT.Graphics as the core is already using that one, so it gets deployed to the device anyway. Removing it from the template would just lose the smart tag user experience for classes in it.

comments

kerryh wrote Aug 19, 2012 at 4:19 AM

Hi Errol,

Thanks for raising this - you're right that paring down the default references would make compiled Gadgeteer programs a lot more streamlined. We'll take a look at this for the next update to the core Gadgeteer libraries.

Kerry

wrote Aug 20, 2012 at 1:12 AM

wrote Aug 20, 2012 at 5:37 PM

wrote Aug 22, 2012 at 6:17 PM

wrote Aug 22, 2012 at 7:04 PM

wrote Aug 24, 2012 at 4:37 AM

wrote Dec 8, 2012 at 9:27 PM

wrote Feb 22, 2013 at 12:45 AM

wrote Apr 12, 2013 at 1:20 AM

wrote Apr 19, 2013 at 10:45 PM

wrote Apr 25, 2013 at 7:18 PM

wrote May 16, 2013 at 12:26 PM