Skip to content

Commit 66175aa

Browse files
Migrate to .NET Standard 2.0
1 parent 65cfdf4 commit 66175aa

27 files changed

+96
-167
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>netcoreapp2.0</TargetFramework>
5+
</PropertyGroup>
6+
7+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
8+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
9+
</PropertyGroup>
10+
11+
<ItemGroup>
12+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.7.0" />
13+
<PackageReference Include="NUnit" Version="3.10.1" />
14+
<PackageReference Include="NUnit3TestAdapter" Version="3.10.0" />
15+
<PackageReference Include="System.Threading.Tasks.Extensions" Version="4.4.0" />
16+
</ItemGroup>
17+
18+
<ItemGroup>
19+
<ProjectReference Include="..\ObjectLayoutInspector\ObjectLayoutInspector.csproj" />
20+
</ItemGroup>
21+
22+
</Project>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,18 @@ struct SizeComputer<T>
2121
#pragma warning restore 0649 // Unassigned field
2222
}
2323

24+
struct Test1 { byte b; double d; byte b2; double d2; byte b3; }
25+
26+
struct Test2 { double d; double d2; byte b; byte b2; byte b3; }
27+
2428
[Test]
29+
public void GetLayoutForTwoSpecificTypes()
30+
{
31+
TypeLayout.PrintLayout(typeof(Test1));
32+
TypeLayout.PrintLayout(typeof(Test2));
33+
}
34+
35+
//[Test]
2536
public void GetLayoutsForAllTypes()
2637
{
2738
//var xx = new SizeComputer<RSAOAEPKeyExchangeDeformatter>();

0 commit comments

Comments
 (0)