Netduino home hardware projects downloads community

Jump to content


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.