diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-05-01 14:44:53 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-05-01 14:44:53 +0300 |
| commit | 47fad304ebc8f056f1c5ffcde037c66029fc80c9 (patch) | |
| tree | 1e321a7099a3988785485f16e677cd3eb0803a73 /Software/Visual_Studio/Tango.CodeGeneration/CustomResolver.cs | |
| parent | 52a09ecb4ae9577f6f1bb124d246ec1c3858ec23 (diff) | |
| download | Tango-47fad304ebc8f056f1c5ffcde037c66029fc80c9.tar.gz Tango-47fad304ebc8f056f1c5ffcde037c66029fc80c9.zip | |
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.
Diffstat (limited to 'Software/Visual_Studio/Tango.CodeGeneration/CustomResolver.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.CodeGeneration/CustomResolver.cs | 20 |
1 files changed, 20 insertions, 0 deletions
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<CompilerReference> GetReferences(TypeContext context, IEnumerable<CompilerReference> includeAssemblies) + { + return new UseCurrentAssembliesReferenceResolver() + .GetReferences(context, includeAssemblies) + .Where(f => !f.GetFile().EndsWith(".winmd")); + } + } +} |
