JetBrains / ForTea

Apache License 2.0
56 stars 10 forks source link

Value tuples are not supported in templates #23

Closed ltrzesniewski closed 4 years ago

ltrzesniewski commented 4 years ago

If you try to use a value tuple in template code, the generator will fail to build the template:

TestTemplate.tt(3, 9): [CS8356] Predefined type 'System.ValueTuple`3' is declared in multiple referenced assemblies: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' and 'System.ValueTuple, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'

Example template:

<#@ template language="C#" #>
<#
    _ = (1, 2, 3);
#>

This template executes fine with VS, but fails in Rider 2019.3.1.

kirillgla commented 4 years ago

Thank you for the report! Sorry for the very late reply, I didn't get the notification about this issue for some reason. We did indeed have some issues with referencing assemblies, they're fixed now. image