Skip to content

Commit 4a8f947

Browse files
Jared Parsonsjaredpar
authored andcommitted
Fix ReferenceInfo location
closes #40
1 parent 0275e5d commit 4a8f947

30 files changed

Lines changed: 2331 additions & 1889 deletions

File tree

.vscode/settings.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
{
2-
"dotnet.defaultSolution": "Basic.Reference.Assemblies.sln"
32
}

Basic.Reference.Assemblies.Net461/Generated.cs

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,7 @@ public static class Resources
377377
public static byte[] SystemXmlXDocument => ResourceLoader.GetOrCreateResource(ref _SystemXmlXDocument, "net461.System.Xml.XDocument");
378378
private static byte[]? _SystemXmlXmlSerializer;
379379
public static byte[] SystemXmlXmlSerializer => ResourceLoader.GetOrCreateResource(ref _SystemXmlXmlSerializer, "net461.System.Xml.XmlSerializer");
380+
380381
}
381382
}
382383
public static partial class Net461
@@ -3349,4 +3350,34 @@ public static IEnumerable<PortableExecutableReference> All
33493350
}
33503351
}
33513352
}
3353+
#if !BASIC_REFERENCE_ASSEMBLIES_COMBINED
3354+
public static partial class Net461
3355+
{
3356+
public readonly struct ReferenceInfo
3357+
{
3358+
public string FileName { get; }
3359+
public byte[] ImageBytes { get; }
3360+
public PortableExecutableReference Reference { get; }
3361+
public Guid Mvid { get; }
3362+
public ReferenceInfo(string fileName, byte[] imageBytes, PortableExecutableReference reference, Guid mvid)
3363+
{
3364+
FileName = fileName;
3365+
ImageBytes = imageBytes;
3366+
Reference = reference;
3367+
Mvid = mvid;
3368+
}
3369+
3370+
public void Deconstruct(out string fileName, out byte[] imageBytes, out PortableExecutableReference reference, out Guid mvid)
3371+
{
3372+
fileName = FileName;
3373+
imageBytes = ImageBytes;
3374+
reference = Reference;
3375+
mvid = Mvid;
3376+
}
3377+
3378+
public (string FileName, byte[] ImageBytes, PortableExecutableReference Reference, Guid Mvid) AsTuple() =>
3379+
(FileName, ImageBytes, Reference, Mvid);
3380+
}
3381+
}
3382+
#endif
33523383
}

Basic.Reference.Assemblies.Net461/Generated.targets

Lines changed: 183 additions & 183 deletions
Large diffs are not rendered by default.

Basic.Reference.Assemblies.Net472/Generated.cs

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,7 @@ public static class Resources
479479
public static byte[] SystemXmlXPath => ResourceLoader.GetOrCreateResource(ref _SystemXmlXPath, "net472.System.Xml.XPath");
480480
private static byte[]? _SystemXmlXPathXDocument;
481481
public static byte[] SystemXmlXPathXDocument => ResourceLoader.GetOrCreateResource(ref _SystemXmlXPathXDocument, "net472.System.Xml.XPath.XDocument");
482+
482483
}
483484
}
484485
public static partial class Net472
@@ -4267,4 +4268,34 @@ public static IEnumerable<PortableExecutableReference> All
42674268
}
42684269
}
42694270
}
4271+
#if !BASIC_REFERENCE_ASSEMBLIES_COMBINED
4272+
public static partial class Net472
4273+
{
4274+
public readonly struct ReferenceInfo
4275+
{
4276+
public string FileName { get; }
4277+
public byte[] ImageBytes { get; }
4278+
public PortableExecutableReference Reference { get; }
4279+
public Guid Mvid { get; }
4280+
public ReferenceInfo(string fileName, byte[] imageBytes, PortableExecutableReference reference, Guid mvid)
4281+
{
4282+
FileName = fileName;
4283+
ImageBytes = imageBytes;
4284+
Reference = reference;
4285+
Mvid = mvid;
4286+
}
4287+
4288+
public void Deconstruct(out string fileName, out byte[] imageBytes, out PortableExecutableReference reference, out Guid mvid)
4289+
{
4290+
fileName = FileName;
4291+
imageBytes = ImageBytes;
4292+
reference = Reference;
4293+
mvid = Mvid;
4294+
}
4295+
4296+
public (string FileName, byte[] ImageBytes, PortableExecutableReference Reference, Guid Mvid) AsTuple() =>
4297+
(FileName, ImageBytes, Reference, Mvid);
4298+
}
4299+
}
4300+
#endif
42704301
}

Basic.Reference.Assemblies.Net472/Generated.targets

Lines changed: 234 additions & 234 deletions
Large diffs are not rendered by default.

Basic.Reference.Assemblies.Net50/Generated.cs

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,7 @@ public static class Resources
315315
public static byte[] SystemXmlXPathXDocument => ResourceLoader.GetOrCreateResource(ref _SystemXmlXPathXDocument, "net50.System.Xml.XPath.XDocument");
316316
private static byte[]? _WindowsBase;
317317
public static byte[] WindowsBase => ResourceLoader.GetOrCreateResource(ref _WindowsBase, "net50.WindowsBase");
318+
318319
}
319320
}
320321
public static partial class Net50
@@ -2791,4 +2792,34 @@ public static IEnumerable<PortableExecutableReference> All
27912792
}
27922793
}
27932794
}
2795+
#if !BASIC_REFERENCE_ASSEMBLIES_COMBINED
2796+
public static partial class Net50
2797+
{
2798+
public readonly struct ReferenceInfo
2799+
{
2800+
public string FileName { get; }
2801+
public byte[] ImageBytes { get; }
2802+
public PortableExecutableReference Reference { get; }
2803+
public Guid Mvid { get; }
2804+
public ReferenceInfo(string fileName, byte[] imageBytes, PortableExecutableReference reference, Guid mvid)
2805+
{
2806+
FileName = fileName;
2807+
ImageBytes = imageBytes;
2808+
Reference = reference;
2809+
Mvid = mvid;
2810+
}
2811+
2812+
public void Deconstruct(out string fileName, out byte[] imageBytes, out PortableExecutableReference reference, out Guid mvid)
2813+
{
2814+
fileName = FileName;
2815+
imageBytes = ImageBytes;
2816+
reference = Reference;
2817+
mvid = Mvid;
2818+
}
2819+
2820+
public (string FileName, byte[] ImageBytes, PortableExecutableReference Reference, Guid Mvid) AsTuple() =>
2821+
(FileName, ImageBytes, Reference, Mvid);
2822+
}
2823+
}
2824+
#endif
27942825
}

0 commit comments

Comments
 (0)