From 47fad304ebc8f056f1c5ffcde037c66029fc80c9 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Tue, 1 May 2018 14:44:53 +0300 Subject: Added device information for ConnectResponse. Fixed issue with razor parser. Added report issue option to application crash. Added DeviceInformation to MachineOperator. Added LastHardwareConfiguration to machine operator. --- .../Tango.CodeGeneration/CustomResolver.cs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Software/Visual_Studio/Tango.CodeGeneration/CustomResolver.cs (limited to 'Software/Visual_Studio/Tango.CodeGeneration/CustomResolver.cs') diff --git a/Software/Visual_Studio/Tango.CodeGeneration/CustomResolver.cs b/Software/Visual_Studio/Tango.CodeGeneration/CustomResolver.cs new file mode 100644 index 000000000..ee1acccae --- /dev/null +++ b/Software/Visual_Studio/Tango.CodeGeneration/CustomResolver.cs @@ -0,0 +1,20 @@ +using RazorEngine.Compilation; +using RazorEngine.Compilation.ReferenceResolver; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.CodeGeneration +{ + internal class CustomResolver : IReferenceResolver + { + public IEnumerable GetReferences(TypeContext context, IEnumerable includeAssemblies) + { + return new UseCurrentAssembliesReferenceResolver() + .GetReferences(context, includeAssemblies) + .Where(f => !f.GetFile().EndsWith(".winmd")); + } + } +} -- cgit v1.3.1