How to retrieve Assembly Version? - Netduino Plus 2 (and Netduino Plus 1) - Netduino Forums
   
Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

How to retrieve Assembly Version?


  • Please log in to reply
2 replies to this topic

#1 Giuliano

Giuliano

    Advanced Member

  • Members
  • PipPipPip
  • 361 posts
  • LocationSimi Valley, CA

Posted 19 February 2016 - 04:36 AM

Good day everyone,

 

Do you know how to retrieve the assembly version since System.Diagnostics is not available in the .NET MF?



#2 KiwiDev

KiwiDev

    Advanced Member

  • Members
  • PipPipPip
  • 100 posts
  • LocationNew Zealand

Posted 19 February 2016 - 09:43 AM

Hi Giuliano,
 
Have a look at System.Reflection
 
@KiwiBryn
blog.devmobile.co.nz
 
 
using System;
using System.Reflection;
using Microsoft.SPOT;
 
public class Program
{
   public static void Main()
   {
      Debug.Print(Assembly.GetExecutingAssembly().GetName().Version.ToString());
   }
}


#3 Giuliano

Giuliano

    Advanced Member

  • Members
  • PipPipPip
  • 361 posts
  • LocationSimi Valley, CA

Posted 19 February 2016 - 05:40 PM

Pretty cool, thanks.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.