After TypedConstant updates I've got this error during build CS0246: The type or namespace name 'ITypedConstant' could not be found (are you missing a using directive or an assembly reference?).
Same file compiles successfully with VS Extension.
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using NTypewriter.CodeModel;
using NTypewriter.CodeModel.Functions;
using NTypewriter.Editor.Config;
namespace Ns
{
public partial class TplExtensions
{
// Skipped for brevity
private static (ITypedConstant Type, ITypedConstant[] Values) GetStatisticsGroups(IEnumValue enumValue)
{
var args = enumValue.Attributes.First(f => f.Name == "StatisticsGroup").Arguments;
var groupType = (ITypedConstant)args.First().Value;
var values = ((object[])args.Skip(1).First().Value).Cast<ITypedConstant>().ToArray();
return (groupType, values);
}
}
}
After TypedConstant updates I've got this error during build
CS0246: The type or namespace name 'ITypedConstant' could not be found (are you missing a using directive or an assembly reference?)
. Same file compiles successfully with VS Extension.Package version:
<PackageReference Include="NTypewriter.SourceGenerator" Version="0.2.4" />
Here is the file giving me the error: