Generate const fields for applicable types #131
Merged
Annotations
10 errors and 1 warning
Expected diagnostics to be empty because the following source code should compile on Net6_0: using System;
using Intellenum;
namespace Whatever;
[Intellenum<Foo>]
public partial class FooEnum
{
public static readonly FooEnum Fred = new FooEnum(new Foo("Fred", 42));
public static readonly FooEnum Wilma = new FooEnum(new Foo("Wilma", 52));
}
public record class Foo(string Name, int Age) : IComparable<Foo>
{
public int CompareTo(Foo other) => Age.CompareTo(other.Age);
}, but found {error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', Intellenum/Intellenum.IntellenumGenerator/Whatever_FooEnum.g.cs(46,39): error CS0029: Cannot implicitly convert type 'Whatever.Foo' to 'int', Intellenum/Intellenum.IntellenumGenerator/Whatever_FooEnum.g.cs(47,40): error CS0029: Cannot implicitly convert type 'Whatever.Foo' to 'int', (9,59): error CS1503: Argument 1: cannot convert from 'Whatever.Foo' to 'int', (10,60): error CS1503: Argument 1: cannot convert from 'Whatever.Foo' to 'int', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', Intellenum/Intellenum.IntellenumGenerator/Whatever_FooEnum.g.cs(128,10): error CS0029: Cannot implicitly convert type 'Whatever.Foo' to 'int', Intellenum/Intellenum.IntellenumGenerator/Whatever_FooEnum.g.cs(131,10): error CS0029: Cannot implicitly convert type 'Whatever.Foo' to 'int', Intellenum/Intellenum.IntellenumGenerator/Whatever_FooEnum.g.cs(148,35): error CS0029: Cannot implicitly convert type 'Whatever.Foo' to 'int', Intellenum/Intellenum.IntellenumGenerator/Whatever_FooEnum.g.cs(149,1): error CS0029: Cannot implicitly convert type 'Whatever.Foo' to 'int', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'S
|
Expected diagnostics to be empty because the following source code should compile on Net6_0: using Intellenum;
namespace Whatever;
[Intellenum]
public partial class CustomerType
{
static CustomerType()
{
Member("Gold", 1);
Member("Diamond", 2);
}
}, but found {error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'}.
|
Expected diagnostics to be empty because the following source code should compile on Net6_0: using Intellenum;
namespace Whatever;
[Intellenum]
public partial class CustomerType
{
public static CustomerType Standard = new CustomerType("Standard", 1);
public static CustomerType Gold = new CustomerType("Gold", 2);
}, but found {error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'}.
|
Expected diagnostics to be empty because the following source code should compile on Net6_0: using System;
using Intellenum;
namespace Whatever;
[Intellenum<Foo>]
public partial class FooEnum
{
public static readonly FooEnum Item1 = new("Item1", new Foo("a", 1));
public static readonly FooEnum Item2= new("Item2", new Foo("b", 2));
}
public record class Foo(string Name, int Age) : IComparable<Foo>
{
public int CompareTo(Foo other) => Age.CompareTo(other.Age);
}, but found {error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', Intellenum/Intellenum.IntellenumGenerator/Whatever_FooEnum.g.cs(46,40): error CS0029: Cannot implicitly convert type 'Whatever.Foo' to 'int', Intellenum/Intellenum.IntellenumGenerator/Whatever_FooEnum.g.cs(47,40): error CS0029: Cannot implicitly convert type 'Whatever.Foo' to 'int', (9,57): error CS1503: Argument 2: cannot convert from 'Whatever.Foo' to 'int', (10,56): error CS1503: Argument 2: cannot convert from 'Whatever.Foo' to 'int', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', Intellenum/Intellenum.IntellenumGenerator/Whatever_FooEnum.g.cs(123,10): error CS0029: Cannot implicitly convert type 'Whatever.Foo' to 'int', Intellenum/Intellenum.IntellenumGenerator/Whatever_FooEnum.g.cs(126,10): error CS0029: Cannot implicitly convert type 'Whatever.Foo' to 'int', Intellenum/Intellenum.IntellenumGenerator/Whatever_FooEnum.g.cs(143,35): error CS0029: Cannot implicitly convert type 'Whatever.Foo' to 'int', Intellenum/Intellenum.IntellenumGenerator/Whatever_FooEnum.g.cs(144,1): error CS0029: Cannot implicitly convert type 'Whatever.Foo' to 'int', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral
|
Expected diagnostics to be empty because the following source code should compile on Net6_0: using Intellenum;
namespace Whatever;
[Intellenum]
[Member("Standard", 1)]
public partial class CustomerType
{
public static CustomerType Gold = new CustomerType("Gold", 2);
static CustomerType()
{
Member("Diamond", 3);
}
}, but found {error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'}.
|
Expected diagnostics to be empty because the following source code should compile on Net6_0: using System;
using Intellenum;
[Intellenum(underlyingType: typeof(bool))]
[Member("No", false)]
[Member("Yes", true)]
public partial class BoolVo { }, but found {error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' w
|
Expected diagnostics to be empty because the following source code should compile on Net6_0: using Intellenum;
namespace Whatever;
[Intellenum]
public partial class CustomerType
{
public static CustomerType Standard = new("Standard", 1);
public static CustomerType Gold = new("Gold", 2);
}, but found {error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'}.
|
Expected diagnostics to be empty because the following source code should compile on Net6_0: using System;
using Intellenum;
[Intellenum(underlyingType: typeof(DateTimeOffset))]
public partial class DateTimeOffsetVo
{
static DateTimeOffsetVo()
{
Member("JanFirst", new DateTimeOffset(2019, 1, 1, 14, 15, 16, TimeSpan.Zero));
Member("JanSecond", new DateTimeOffset(2019, 1, 2, 14, 15, 16, TimeSpan.Zero));
Member("SomethingElse", new DateTimeOffset(2022,01,15,19,08,49, TimeSpan.Zero).AddTicks(5413764));
}
}, but found {error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', Intellenum/Intellenum.IntellenumGenerator/_DateTimeOffsetVo.g.cs(44,43): error CS0029: Cannot implicitly convert type 'System.DateTimeOffset' to 'int', Intellenum/Intellenum.IntellenumGenerator/_DateTimeOffsetVo.g.cs(45,44): error CS0029: Cannot implicitly convert type 'System.DateTimeOffset' to 'int', Intellenum/Intellenum.IntellenumGenerator/_DateTimeOffsetVo.g.cs(46,48): error CS0029: Cannot implicitly convert type 'System.DateTimeOffset' to 'int', Intellenum/Intellenum.IntellenumGenerator/_DateTimeOffsetVo.g.cs(334,84): error CS1503: Argument 2: cannot convert from 'System.DateTimeOffset' to 'int', Intellenum/Intellenum.IntellenumGenerator/_DateTimeOffsetVo.g.cs(338,86): error CS1503: Argument 2: cannot convert from 'System.DateTimeOffset' to 'int', Intellenum/Intellenum.IntellenumGenerator/_DateTimeOffsetVo.g.cs(342,94): error CS1503: Argument 2: cannot convert from 'System.DateTimeOffset' to 'int', (9,32): error CS1503: Argument 2: cannot convert from 'System.DateTimeOffset' to 'int', (10,33): error CS1503: Argument 2: cannot convert from 'System.DateTimeOffset' to 'int', (11,37): error CS1503: Argument 2: cannot convert from 'System.DateTimeOffset' to 'int', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', Intellenum/Intellenum.IntellenumGenerator/_DateTimeOffsetVo.g.cs(122,10): error CS0029: Cannot implicitly convert type 'System.DateTimeOffset' to 'int', Intellenum/Intellenum.IntellenumGenerator/_DateTimeOffsetVo.g.cs(125,10): error CS0029: Cannot implicitly convert type 'System.DateTimeOffset' to 'int', Intellenum/Intellenum.IntellenumGenerator/_DateTimeOffsetVo.g.cs(128,10): error CS0029: Cannot implicitly convert type 'System.DateTimeOffset' to 'int', Intellenum/Intellenum.IntellenumGenerator/_DateTimeOffsetVo.g.cs(145,35): error CS0029: Cannot implicitly convert type 'System.DateTimeOffset' to 'int', Intellenum/Intellenum.IntellenumGenerator/_DateTimeOffsetVo.g.cs(146,1): error CS0029: Cannot implicitly co
|
Expected diagnostics to be empty because the following source code should compile on Net6_0: using Intellenum;
namespace Whatever;
[Intellenum]
[Member("Standard", 1)]
[Member("Gold", 2)]
[Member("Platinum", 3)]
public partial class CustomerType
{
}, but found {error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a
|
Expected diagnostics to be empty because the following source code should compile on Net6_0: using Intellenum;
namespace Whatever;
[Intellenum<decimal>]
public partial class MinimumWageInUK
{
static MinimumWageInUK()
{
Member("Apprentice", 4.3m);
Member("UnderEighteen", 4.62m);
Member("EighteenToTwenty", 6.56m);
Member("TwentyOneAndOver", 8.36m);
Member("TwentyFiveAndOver", 8.91m);
}
}, but found {error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', Intellenum/Intellenum.IntellenumGenerator/Whatever_MinimumWageInUK.g.cs(46,45): error CS0266: Cannot implicitly convert type 'decimal' to 'int'. An explicit conversion exists (are you missing a cast?), Intellenum/Intellenum.IntellenumGenerator/Whatever_MinimumWageInUK.g.cs(47,48): error CS0266: Cannot implicitly convert type 'decimal' to 'int'. An explicit conversion exists (are you missing a cast?), Intellenum/Intellenum.IntellenumGenerator/Whatever_MinimumWageInUK.g.cs(48,51): error CS0266: Cannot implicitly convert type 'decimal' to 'int'. An explicit conversion exists (are you missing a cast?), Intellenum/Intellenum.IntellenumGenerator/Whatever_MinimumWageInUK.g.cs(49,51): error CS0266: Cannot implicitly convert type 'decimal' to 'int'. An explicit conversion exists (are you missing a cast?), Intellenum/Intellenum.IntellenumGenerator/Whatever_MinimumWageInUK.g.cs(50,52): error CS0266: Cannot implicitly convert type 'decimal' to 'int'. An explicit conversion exists (are you missing a cast?), Intellenum/Intellenum.IntellenumGenerator/Whatever_MinimumWageInUK.g.cs(354,86): error CS1503: Argument 2: cannot convert from 'decimal' to 'int', Intellenum/Intellenum.IntellenumGenerator/Whatever_MinimumWageInUK.g.cs(358,92): error CS1503: Argument 2: cannot convert from 'decimal' to 'int', Intellenum/Intellenum.IntellenumGenerator/Whatever_MinimumWageInUK.g.cs(362,98): error CS1503: Argument 2: cannot convert from 'decimal' to 'int', Intellenum/Intellenum.IntellenumGenerator/Whatever_MinimumWageInUK.g.cs(366,98): error CS1503: Argument 2: cannot convert from 'decimal' to 'int', Intellenum/Intellenum.IntellenumGenerator/Whatever_MinimumWageInUK.g.cs(370,100): error CS1503: Argument 2: cannot convert from 'decimal' to 'int', (9,30): error CS1503: Argument 2: cannot convert from 'decimal' to 'int', (10,33): error CS1503: Argument 2: cannot convert from 'decimal' to 'int', (11,36): error CS1503: Argument 2: cannot convert from 'decimal' to 'int', (12,36): error CS1503: Argument 2: cannot convert from 'decimal' to 'int', (13,37): error CS1503: Argument 2: cannot convert from 'decimal' to 'int', error CS1705: Assembly 'Intellenum.SharedTypes' with identity 'Intellenum.SharedTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Run
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-dotnet@v3.2.0. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
This job failed
Loading