|
7 | 7 | using Microsoft.CodeAnalysis; |
8 | 8 |
|
9 | 9 | namespace Basic.Reference.Assemblies; |
| 10 | +public static partial class NetStandard20 |
| 11 | +{ |
| 12 | + public static class ExtraReferenceInfos |
| 13 | + { |
| 14 | + |
| 15 | + /// <summary> |
| 16 | + /// The <see cref="ReferenceInfo"/> for Microsoft.CSharp.dll |
| 17 | + /// </summary> |
| 18 | + public static ReferenceInfo MicrosoftCSharp => new ReferenceInfo("Microsoft.CSharp.dll", Resources.MicrosoftCSharp, NetStandard20.ExtraReferences.MicrosoftCSharp, global::System.Guid.Parse("481b904b-3433-4e80-b896-766a3cc8e857")); |
| 19 | + |
| 20 | + /// <summary> |
| 21 | + /// The <see cref="ReferenceInfo"/> for Microsoft.VisualBasic.dll |
| 22 | + /// </summary> |
| 23 | + public static ReferenceInfo MicrosoftVisualBasic => new ReferenceInfo("Microsoft.VisualBasic.dll", Resources.MicrosoftVisualBasic, NetStandard20.ExtraReferences.MicrosoftVisualBasic, global::System.Guid.Parse("b61ee3c6-71d0-4726-931a-fa448a2e8f0e")); |
| 24 | + |
| 25 | + /// <summary> |
| 26 | + /// The <see cref="ReferenceInfo"/> for System.Threading.Tasks.Extensions.dll |
| 27 | + /// </summary> |
| 28 | + public static ReferenceInfo SystemThreadingTasksExtensions => new ReferenceInfo("System.Threading.Tasks.Extensions.dll", Resources.SystemThreadingTasksExtensions, NetStandard20.ExtraReferences.SystemThreadingTasksExtensions, global::System.Guid.Parse("619062a8-972f-4ae5-bbee-e36ac541d14f")); |
| 29 | + private static ImmutableArray<ReferenceInfo> _all; |
| 30 | + public static ImmutableArray<ReferenceInfo> All |
| 31 | + { |
| 32 | + get |
| 33 | + { |
| 34 | + if (_all.IsDefault) |
| 35 | + { |
| 36 | + _all = |
| 37 | + [ |
| 38 | + MicrosoftCSharp, |
| 39 | + MicrosoftVisualBasic, |
| 40 | + SystemThreadingTasksExtensions, |
| 41 | + ]; |
| 42 | + } |
| 43 | + return _all; |
| 44 | + } |
| 45 | + } |
| 46 | + |
| 47 | + public static IEnumerable<(string FileName, byte[] ImageBytes, PortableExecutableReference Reference, Guid Mvid)> AllValues => All.Select(x => x.AsTuple()); |
| 48 | + } |
| 49 | +} |
| 50 | + |
| 51 | +public static partial class NetStandard20 |
| 52 | +{ |
| 53 | + public static class ExtraReferences |
| 54 | + { |
| 55 | + private static PortableExecutableReference? _MicrosoftCSharp; |
| 56 | + |
| 57 | + /// <summary> |
| 58 | + /// The <see cref="PortableExecutableReference"/> for Microsoft.CSharp.dll |
| 59 | + /// </summary> |
| 60 | + public static PortableExecutableReference MicrosoftCSharp |
| 61 | + { |
| 62 | + get |
| 63 | + { |
| 64 | + if (_MicrosoftCSharp is null) |
| 65 | + { |
| 66 | + _MicrosoftCSharp = AssemblyMetadata.CreateFromImage(Resources.MicrosoftCSharp).GetReference(filePath: "Microsoft.CSharp.dll", display: "Microsoft.CSharp (netstandard20)"); |
| 67 | + } |
| 68 | + return _MicrosoftCSharp; |
| 69 | + } |
| 70 | + } |
| 71 | + |
| 72 | + private static PortableExecutableReference? _MicrosoftVisualBasic; |
| 73 | + |
| 74 | + /// <summary> |
| 75 | + /// The <see cref="PortableExecutableReference"/> for Microsoft.VisualBasic.dll |
| 76 | + /// </summary> |
| 77 | + public static PortableExecutableReference MicrosoftVisualBasic |
| 78 | + { |
| 79 | + get |
| 80 | + { |
| 81 | + if (_MicrosoftVisualBasic is null) |
| 82 | + { |
| 83 | + _MicrosoftVisualBasic = AssemblyMetadata.CreateFromImage(Resources.MicrosoftVisualBasic).GetReference(filePath: "Microsoft.VisualBasic.dll", display: "Microsoft.VisualBasic (netstandard20)"); |
| 84 | + } |
| 85 | + return _MicrosoftVisualBasic; |
| 86 | + } |
| 87 | + } |
| 88 | + |
| 89 | + private static PortableExecutableReference? _SystemThreadingTasksExtensions; |
| 90 | + |
| 91 | + /// <summary> |
| 92 | + /// The <see cref="PortableExecutableReference"/> for System.Threading.Tasks.Extensions.dll |
| 93 | + /// </summary> |
| 94 | + public static PortableExecutableReference SystemThreadingTasksExtensions |
| 95 | + { |
| 96 | + get |
| 97 | + { |
| 98 | + if (_SystemThreadingTasksExtensions is null) |
| 99 | + { |
| 100 | + _SystemThreadingTasksExtensions = AssemblyMetadata.CreateFromImage(Resources.SystemThreadingTasksExtensions).GetReference(filePath: "System.Threading.Tasks.Extensions.dll", display: "System.Threading.Tasks.Extensions (netstandard20)"); |
| 101 | + } |
| 102 | + return _SystemThreadingTasksExtensions; |
| 103 | + } |
| 104 | + } |
| 105 | + |
| 106 | + private static ImmutableArray<PortableExecutableReference> _all; |
| 107 | + public static ImmutableArray<PortableExecutableReference> All |
| 108 | + { |
| 109 | + get |
| 110 | + { |
| 111 | + if (_all.IsDefault) |
| 112 | + { |
| 113 | + _all = |
| 114 | + [ |
| 115 | + MicrosoftCSharp, |
| 116 | + MicrosoftVisualBasic, |
| 117 | + SystemThreadingTasksExtensions, |
| 118 | + ]; |
| 119 | + } |
| 120 | + return _all; |
| 121 | + } |
| 122 | + } |
| 123 | + } |
| 124 | +} |
| 125 | + |
10 | 126 | public static partial class NetStandard20 |
11 | 127 | { |
12 | 128 | public static class Resources |
@@ -689,6 +805,24 @@ public static class Resources |
689 | 805 | public static byte[] SystemXmlXPathXDocument => ResourceLoader.GetOrCreateResource(ref _SystemXmlXPathXDocument, "netstandard20.System.Xml.XPath.XDocument"); |
690 | 806 | private static byte[]? _SystemXmlXPathXDocument; |
691 | 807 |
|
| 808 | + /// <summary> |
| 809 | + /// The image bytes for Microsoft.CSharp.dll |
| 810 | + /// </summary> |
| 811 | + public static byte[] MicrosoftCSharp => ResourceLoader.GetOrCreateResource(ref _MicrosoftCSharp, "netstandard20.Microsoft.CSharp"); |
| 812 | + private static byte[]? _MicrosoftCSharp; |
| 813 | + |
| 814 | + /// <summary> |
| 815 | + /// The image bytes for Microsoft.VisualBasic.dll |
| 816 | + /// </summary> |
| 817 | + public static byte[] MicrosoftVisualBasic => ResourceLoader.GetOrCreateResource(ref _MicrosoftVisualBasic, "netstandard20.Microsoft.VisualBasic"); |
| 818 | + private static byte[]? _MicrosoftVisualBasic; |
| 819 | + |
| 820 | + /// <summary> |
| 821 | + /// The image bytes for System.Threading.Tasks.Extensions.dll |
| 822 | + /// </summary> |
| 823 | + public static byte[] SystemThreadingTasksExtensions => ResourceLoader.GetOrCreateResource(ref _SystemThreadingTasksExtensions, "netstandard20.System.Threading.Tasks.Extensions"); |
| 824 | + private static byte[]? _SystemThreadingTasksExtensions; |
| 825 | + |
692 | 826 |
|
693 | 827 | } |
694 | 828 | } |
|
0 commit comments