Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"sdk": {
"version": "5.0.300"
"version": "10.0.100"
}
}
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Express.NET

Express.NET is a lightweight, low-ceremony Domain Specific Language (DSL) for building HTTP based services easily. It is based-on .NET / ASP.NET 5. With the use of concise language constructs, this allows you to focus on important bits.. your code and your application! Express.NET handles **DELETE, GET, HEAD, POST, PUT** and **PATCH** requests and provides a simple, elegant syntax for returning a response with just a couple of keystrokes.
Express.NET is a lightweight, low-ceremony Domain Specific Language (DSL) for building HTTP based services easily. It is based-on .NET / ASP.NET 10. With the use of concise language constructs, this allows you to focus on important bits.. your code and your application! Express.NET handles **DELETE, GET, HEAD, POST, PUT** and **PATCH** requests and provides a simple, elegant syntax for returning a response with just a couple of keystrokes.

# Hello world

Expand Down
9 changes: 5 additions & 4 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<Project>
<PropertyGroup>
<Version>1-alpha-2</Version>
</PropertyGroup>
</Project>
<PropertyGroup>
<Version>1-alpha-2</Version>
<LangVersion>14.0</LangVersion>
</PropertyGroup>
</Project>
4 changes: 2 additions & 2 deletions src/Express.Net.Base/Express.Net.Base.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net10.0</TargetFramework>
<RootNamespace>Express.Net</RootNamespace>
<IsPackable>true</IsPackable>
<Nullable>enable</Nullable>
Expand Down
4 changes: 2 additions & 2 deletions src/Express.Net.Base/HttpMethodAttribute.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Microsoft.AspNetCore.Routing;
using Microsoft.AspNetCore.Routing;
using System;
using System.Collections.Generic;

Expand All @@ -18,7 +18,7 @@ public HttpMethodAttribute(string method, string? template)
{
Method = method;
Template = template;
HttpMethods = new List<string>() { method };
HttpMethods = [method];
}
}

Expand Down
6 changes: 3 additions & 3 deletions src/Express.Net.Build/Express.Net.Build.csproj
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<Nullable>enable</Nullable>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net10.0</TargetFramework>
<PackageDescription>A fast DSL for build microservices.</PackageDescription>
<Authors>Vishvaka Ranasinghe</Authors>
<Description>Express.NET is a DSL for build fast web services effortlessly. This builds on top of .NET / ASP.NET 5.</Description>
<Description>Express.NET is a DSL for build fast web services effortlessly. This builds on top of .NET / ASP.NET 10.</Description>
<Copyright>2021 Vishvaka Ranasinghe</Copyright>
<RepositoryUrl>https://github.com/Vake93/Express.NET</RepositoryUrl>
</PropertyGroup>
Expand Down
4 changes: 2 additions & 2 deletions src/Express.Net.Build/Services/BuildService.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Express.Net.CodeAnalysis;
using Express.Net.CodeAnalysis;
using Express.Net.CodeAnalysis.Diagnostics;
using Express.Net.Emit;
using Express.Net.Emit.Bootstrapping;
Expand Down Expand Up @@ -46,7 +46,7 @@ public static EmitResult BuildProject(string? projectPath, string? outputPath =
Directory.CreateDirectory(executableFolder);

var compilation = new ExpressNetCompilation(projectName, projectFolder, executableFolder, buildConfiguration)
.SetTargetFrameworks(TargetFrameworks.NetCore50, TargetFrameworks.AspNetCore50, TargetFrameworks.ExpressNet)
.SetTargetFrameworks(TargetFrameworks.NetCore10, TargetFrameworks.AspNetCore10, TargetFrameworks.ExpressNet)
.SetBootstrapper(new BasicBootstrapper(projectName, project.GenerateSwaggerDoc, project.AddSwaggerUI));

var packageAssemblies = Enumerable.Empty<PackageAssembly>();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net10.0</TargetFramework>
<IsPackable>true</IsPackable>
<Nullable>enable</Nullable>
<PackageDescription>A fast DSL for build microservices.</PackageDescription>
<Authors>Vishvaka Ranasinghe</Authors>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NETCore.App.Ref" Version="5.0.0" IncludeAssets="none" PrivateAssets="all" GeneratePathProperty="true" />
<PackageReference Include="Microsoft.AspNetCore.App.Ref" Version="5.0.0" IncludeAssets="none" PrivateAssets="all" GeneratePathProperty="true" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="3.10.0" />
<PackageReference Include="Microsoft.NETCore.App.Ref" Version="10.0.0" IncludeAssets="none" PrivateAssets="all" GeneratePathProperty="true" />
<PackageReference Include="Microsoft.AspNetCore.App.Ref" Version="10.0.0" IncludeAssets="none" PrivateAssets="all" GeneratePathProperty="true" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.14.0" />
</ItemGroup>

<Import Project="Generated.Net50.targets" />
<Import Project="Generated.AspNet50.targets" />
<Import Project="Generated.Net10.targets" />
<Import Project="Generated.AspNet10.targets" />

<ItemGroup>
<EmbeddedResource Include="..\Library\Buildtime\Express.Net.Base.dll">
Expand Down
Loading