Skip to content

Commit a1b1641

Browse files
committed
Add .NET standard sample
1 parent d4a9f62 commit a1b1641

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed

DynamoDBGenerator.sln

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Configuration", "samples\Co
2525
EndProject
2626
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Initialisation", "samples\Initialisation\Initialisation.csproj", "{45EFE13E-1606-4968-8628-F26184F51462}"
2727
EndProject
28+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Standard.Test", "samples\Standard.Test\Standard.Test.csproj", "{E5769552-8A97-4883-A49F-D1E173F7F117}"
29+
EndProject
2830
Global
2931
GlobalSection(SolutionConfigurationPlatforms) = preSolution
3032
Debug|Any CPU = Debug|Any CPU
@@ -63,6 +65,10 @@ Global
6365
{45EFE13E-1606-4968-8628-F26184F51462}.Debug|Any CPU.Build.0 = Debug|Any CPU
6466
{45EFE13E-1606-4968-8628-F26184F51462}.Release|Any CPU.ActiveCfg = Release|Any CPU
6567
{45EFE13E-1606-4968-8628-F26184F51462}.Release|Any CPU.Build.0 = Release|Any CPU
68+
{E5769552-8A97-4883-A49F-D1E173F7F117}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
69+
{E5769552-8A97-4883-A49F-D1E173F7F117}.Debug|Any CPU.Build.0 = Debug|Any CPU
70+
{E5769552-8A97-4883-A49F-D1E173F7F117}.Release|Any CPU.ActiveCfg = Release|Any CPU
71+
{E5769552-8A97-4883-A49F-D1E173F7F117}.Release|Any CPU.Build.0 = Release|Any CPU
6672
EndGlobalSection
6773
GlobalSection(NestedProjects) = preSolution
6874
{D8EABA41-D014-49BD-B109-54829DB835E7} = {E84C4630-5241-4FAA-8F86-964AB25A2C6F}
@@ -73,5 +79,6 @@ Global
7379
{0E92C22E-576E-4EC0-909F-B4F777A11B28} = {BFE1E1F9-5DCC-4C59-B308-BB2BFB94787B}
7480
{ABB3B374-4D5E-4DCF-9460-C7EEF4EA5A3C} = {BFE1E1F9-5DCC-4C59-B308-BB2BFB94787B}
7581
{45EFE13E-1606-4968-8628-F26184F51462} = {BFE1E1F9-5DCC-4C59-B308-BB2BFB94787B}
82+
{E5769552-8A97-4883-A49F-D1E173F7F117} = {BFE1E1F9-5DCC-4C59-B308-BB2BFB94787B}
7683
EndGlobalSection
7784
EndGlobal

samples/Standard.Test/Class1.cs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using DynamoDBGenerator.Attributes;
4+
5+
namespace Standard.Test
6+
{
7+
[DynamoDBMarshaller]
8+
public partial class Class1
9+
{
10+
public string Test { get; set; }
11+
12+
public List<Class2> List { get; set; }
13+
}
14+
15+
public class Class2
16+
{
17+
public int Id { get; set; }
18+
19+
}
20+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>netstandard2.0</TargetFramework>
5+
<LangVersion>9</LangVersion>
6+
</PropertyGroup>
7+
8+
<ItemGroup>
9+
<ProjectReference Include="..\..\src\DynamoDBGenerator.SourceGenerator\DynamoDBGenerator.SourceGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false"/>
10+
<ProjectReference Include="..\..\src\DynamoDBGenerator\DynamoDBGenerator.csproj"/>
11+
</ItemGroup>
12+
13+
</Project>

0 commit comments

Comments
 (0)