aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Core
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-04-22 07:01:05 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-04-22 07:01:05 +0300
commit405f1ac07d78468c3e1a0ef1c0dc8956635c8677 (patch)
treee7103eb16188663d28f0926b94eaabd87fb2473b /Software/Visual_Studio/Tango.Core
parent499e0a03bb41e2330a47ccca83e6e6dfe7c5a634 (diff)
downloadTango-405f1ac07d78468c3e1a0ef1c0dc8956635c8677.tar.gz
Tango-405f1ac07d78468c3e1a0ef1c0dc8956635c8677.zip
FSE work + fixed issue with personal access token on MS and PPC.
Diffstat (limited to 'Software/Visual_Studio/Tango.Core')
-rw-r--r--Software/Visual_Studio/Tango.Core/Helpers/AssemblyHelper.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.Core/Helpers/AssemblyHelper.cs b/Software/Visual_Studio/Tango.Core/Helpers/AssemblyHelper.cs
index 11ef751e2..59d36533e 100644
--- a/Software/Visual_Studio/Tango.Core/Helpers/AssemblyHelper.cs
+++ b/Software/Visual_Studio/Tango.Core/Helpers/AssemblyHelper.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
+using System.Runtime.Versioning;
using System.Text;
using System.Threading.Tasks;
@@ -52,5 +53,13 @@ namespace Tango.Core.Helpers
{
return assembly.GetName().Version;
}
+
+ public static Version GetTargetFrameworkVersion(Assembly assembly)
+ {
+ object[] list = Assembly.GetExecutingAssembly().GetCustomAttributes(true);
+ var attribute = list.OfType<TargetFrameworkAttribute>().First();
+
+ return Version.Parse(attribute.FrameworkName.Replace(".NETFramework,Version=v", ""));
+ }
}
}