Skip to content

Commit

Permalink
initial commit (#3059)
Browse files Browse the repository at this point in the history
  • Loading branch information
nytian authored Feb 28, 2025
1 parent 9a217d9 commit 82e104b
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 7 deletions.
13 changes: 11 additions & 2 deletions samples/Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -1,19 +1,28 @@
<Project>
<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
</PropertyGroup>

<ItemGroup>
<PackageVersion Include="EntityFramework" Version="6.4.0" />
<PackageVersion Include="Microsoft.AspNet.WebApi.Client" Version="5.2.7" />
<PackageVersion Include="Microsoft.Azure.Functions.Extensions" Version="1.1.0" />
<PackageVersion Include="Microsoft.Azure.WebJobs.Extensions.Http" Version="3.2.0" />
<PackageVersion Include="Microsoft.Azure.WebJobs.Extensions.DurableTask" Version="2.13.4" />
<PackageVersion Include="Microsoft.Azure.WebJobs.Extensions.Storage" Version="3.0.10" />
<PackageVersion Include="Microsoft.Azure.WebJobs.Extensions.Twilio" Version="3.0.0" />
<PackageVersion Include="Microsoft.Azure.WebJobs.Extensions.Twilio" Version="3.0.2" />
<PackageVersion Include="Microsoft.Azure.WebJobs.Script.ExtensionsMetadataGenerator" Version="1.1.0" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.InMemory" Version="3.1.3" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.Tools" Version="3.1.3" />
<PackageVersion Include="Microsoft.Extensions.Logging.Debug" Version="3.1.3" />
<PackageVersion Include="Microsoft.NET.Sdk.Functions" Version="4.2.0" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="15.9.0" />
<PackageVersion Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="3.1.2" />
<PackageVersion Include="StyleCop.Analyzers" Version="1.1.118" >
<PackageVersion Include="StyleCop.Analyzers" Version="1.1.118" />
<PackageVersion Include="Swashbuckle.AspNetCore" Version="5.4.0" />
<PackageVersion Include="TaskBuilder.fs" Version="1.0.0" />
<PackageVersion Include="Moq" Version="4.16.1" />
<PackageVersion Include="xunit" Version="2.9.2" />
<PackageVersion Include="xunit.runner.visualstudio" Version="2.8.2" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
<PackageReference Include="StyleCop.Analyzers" PrivateAssets="All"/>
</ItemGroup>
<ItemGroup>
<AdditionalFiles Include="..\..\..\.stylecop\stylecop.json" />
<Compile Include="..\..\..\.stylecop\GlobalSuppressions.cs" Link="GlobalSuppressions.cs" />
<AdditionalFiles Include="..\..\..\..\.stylecop\stylecop.json" />
<Compile Include="..\..\..\..\.stylecop\GlobalSuppressions.cs" Link="GlobalSuppressions.cs" />
</ItemGroup>
<ItemGroup>
<None Update="host.json">
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using Microsoft.EntityFrameworkCore;

namespace TodoApi.Models
{
public class TodoContext : DbContext
{
public TodoContext (DbContextOptions<TodoContext> options)
: base(options)
{
}

public DbSet<TodoItem> TodoItems { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace TodoApi.Models
{
public class TodoItem
{
public long Id { get; set; }
public string Name { get; set; }
public bool IsComplete { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.DurableTask" />
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.Http" />
<PackageReference Include="Microsoft.NET.Sdk.Functions" />
</ItemGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
<None Include="..\README.md" Link="README.md" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.DurableTask" />
<PackageReference Include="Microsoft.NET.Sdk.Functions" />
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.DurableTask" VersionOverride = "2.4.0"/>
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.Http" />
<PackageReference Include="Microsoft.NET.Sdk.Functions" />
</ItemGroup>
<ItemGroup>
<None Update="host.json">
Expand Down
1 change: 1 addition & 0 deletions samples/fsharp/DurableFSharp.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<!-- To specify a version in the package reference below, simply add `Version = ""`. -->
<ItemGroup>
<PackageReference Include="TaskBuilder.fs" />
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.Http" />
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.DurableTask" />
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.Storage" />
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.Twilio" />
Expand Down
2 changes: 1 addition & 1 deletion samples/todolist-aspnetcore/ToDoList.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<!-- To specify a version in the package reference below, simply add `Version = ""`. -->
<ItemGroup>
<PackageReference Include="EntityFramework" />
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.DurableTask" >
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.DurableTask" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" >
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down

0 comments on commit 82e104b

Please sign in to comment.