Skip to content

Commit

Permalink
Merge pull request #1 from t1agob/sourcegenerators
Browse files Browse the repository at this point in the history
Added support for Source Generators (static)
  • Loading branch information
t1agob authored Sep 16, 2021
2 parents d9edb33 + 9f1634c commit 19f7067
Show file tree
Hide file tree
Showing 214 changed files with 10,627 additions and 410 deletions.
30 changes: 30 additions & 0 deletions AWS.Lambda.Powertools.sln
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AWS.Lambda.PowerTools.Metri
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AWS.Lambda.PowerTools.Tracing.Tests", "libraries\tests\AWS.Lambda.PowerTools.Tracing.Tests\AWS.Lambda.PowerTools.Tracing.Tests.csproj", "{A040AED5-BBB8-4BFA-B2A5-BBD82817B8A5}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AWS.Lambda.PowerTools.Generators", "libraries\src\AWS.Lambda.PowerTools.Generators\AWS.Lambda.PowerTools.Generators.csproj", "{4DE85B22-6F9F-4D4B-B176-38EB1168D2D1}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp", "examples\ConsoleApp\ConsoleApp.csproj", "{1545BD93-C654-4A24-8B6E-F3D66A588615}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -162,6 +166,30 @@ Global
{A040AED5-BBB8-4BFA-B2A5-BBD82817B8A5}.Release|x86.Build.0 = Release|Any CPU
{10E1D31D-AFE9-49EC-9041-920DF96AD74D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{10E1D31D-AFE9-49EC-9041-920DF96AD74D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4DE85B22-6F9F-4D4B-B176-38EB1168D2D1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4DE85B22-6F9F-4D4B-B176-38EB1168D2D1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4DE85B22-6F9F-4D4B-B176-38EB1168D2D1}.Debug|x64.ActiveCfg = Debug|Any CPU
{4DE85B22-6F9F-4D4B-B176-38EB1168D2D1}.Debug|x64.Build.0 = Debug|Any CPU
{4DE85B22-6F9F-4D4B-B176-38EB1168D2D1}.Debug|x86.ActiveCfg = Debug|Any CPU
{4DE85B22-6F9F-4D4B-B176-38EB1168D2D1}.Debug|x86.Build.0 = Debug|Any CPU
{4DE85B22-6F9F-4D4B-B176-38EB1168D2D1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4DE85B22-6F9F-4D4B-B176-38EB1168D2D1}.Release|Any CPU.Build.0 = Release|Any CPU
{4DE85B22-6F9F-4D4B-B176-38EB1168D2D1}.Release|x64.ActiveCfg = Release|Any CPU
{4DE85B22-6F9F-4D4B-B176-38EB1168D2D1}.Release|x64.Build.0 = Release|Any CPU
{4DE85B22-6F9F-4D4B-B176-38EB1168D2D1}.Release|x86.ActiveCfg = Release|Any CPU
{4DE85B22-6F9F-4D4B-B176-38EB1168D2D1}.Release|x86.Build.0 = Release|Any CPU
{1545BD93-C654-4A24-8B6E-F3D66A588615}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1545BD93-C654-4A24-8B6E-F3D66A588615}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1545BD93-C654-4A24-8B6E-F3D66A588615}.Debug|x64.ActiveCfg = Debug|Any CPU
{1545BD93-C654-4A24-8B6E-F3D66A588615}.Debug|x64.Build.0 = Debug|Any CPU
{1545BD93-C654-4A24-8B6E-F3D66A588615}.Debug|x86.ActiveCfg = Debug|Any CPU
{1545BD93-C654-4A24-8B6E-F3D66A588615}.Debug|x86.Build.0 = Debug|Any CPU
{1545BD93-C654-4A24-8B6E-F3D66A588615}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1545BD93-C654-4A24-8B6E-F3D66A588615}.Release|Any CPU.Build.0 = Release|Any CPU
{1545BD93-C654-4A24-8B6E-F3D66A588615}.Release|x64.ActiveCfg = Release|Any CPU
{1545BD93-C654-4A24-8B6E-F3D66A588615}.Release|x64.Build.0 = Release|Any CPU
{1545BD93-C654-4A24-8B6E-F3D66A588615}.Release|x86.ActiveCfg = Release|Any CPU
{1545BD93-C654-4A24-8B6E-F3D66A588615}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{58F2F304-9E21-4902-8AD7-66C2022F3524} = {9E22D53B-4F30-4B82-98A2-9242B071D733}
Expand All @@ -180,5 +208,7 @@ Global
{0739912E-E3B6-4513-9E56-128749A78626} = {9E22D53B-4F30-4B82-98A2-9242B071D733}
{5B3BBAF7-F8ED-4E2D-B161-0016942542B1} = {0739912E-E3B6-4513-9E56-128749A78626}
{10E1D31D-AFE9-49EC-9041-920DF96AD74D} = {5B3BBAF7-F8ED-4E2D-B161-0016942542B1}
{4DE85B22-6F9F-4D4B-B176-38EB1168D2D1} = {73C9B1E5-3893-47E8-B373-17E5F5D7E6F5}
{1545BD93-C654-4A24-8B6E-F3D66A588615} = {9E22D53B-4F30-4B82-98A2-9242B071D733}
EndGlobalSection
EndGlobal
2 changes: 2 additions & 0 deletions AWS.Lambda.Powertools.sln.DotSettings.user
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:Boolean x:Key="/Default/UnloadedProject/UnloadedProjects/=4de85b22_002D6f9f_002D4d4b_002Db176_002D38eb1168d2d1_0023AWS_002ELambda_002EPowerTools_002EGenerators/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
13 changes: 13 additions & 0 deletions examples/ConsoleApp/ConsoleApp.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<LangVersion>latest</LangVersion>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\..\libraries\src\AWS.Lambda.PowerTools.Metrics\AWS.Lambda.PowerTools.Metrics.csproj" />
</ItemGroup>

</Project>
19 changes: 19 additions & 0 deletions examples/ConsoleApp/Products.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
using System;
using AWS.Lambda.PowerTools.Metrics;

namespace ConsoleApp
{
public partial class Products
{
public string Name { get; set; }
public int Amount { get; set; }

internal void Output()
{
Console.WriteLine("This is products");

}
}


}
20 changes: 20 additions & 0 deletions examples/ConsoleApp/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
using System;
using AWS.Lambda.PowerTools.Metrics;

namespace ConsoleApp
{
partial class Program
{
static void Main(string[] args)
{
Products p = new Products()
{
Name = "p1",
Amount = 10
};

p.Output();

}
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 19f7067

Please sign in to comment.