Skip to content

Commit

Permalink
bump
Browse files Browse the repository at this point in the history
  • Loading branch information
burdoto committed Apr 8, 2023
1 parent 0911f23 commit df5707d
Show file tree
Hide file tree
Showing 12 changed files with 155 additions and 5 deletions.
7 changes: 7 additions & 0 deletions KScr.NET.sln
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "kscr-starter", "kscr-starte
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "kscr-tml-generator", "kscr-tml-generator\kscr-tml-generator.csproj", "{9787A3BC-4EBA-4681-8953-5278FC41BEFF}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "kscr-repo-server", "kscr-repo-server\kscr-repo-server.csproj", "{BCC0A4E3-D893-48CB-A3FB-A5633979F965}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -87,6 +89,10 @@ Global
{9787A3BC-4EBA-4681-8953-5278FC41BEFF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9787A3BC-4EBA-4681-8953-5278FC41BEFF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9787A3BC-4EBA-4681-8953-5278FC41BEFF}.Release|Any CPU.Build.0 = Release|Any CPU
{BCC0A4E3-D893-48CB-A3FB-A5633979F965}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BCC0A4E3-D893-48CB-A3FB-A5633979F965}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BCC0A4E3-D893-48CB-A3FB-A5633979F965}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BCC0A4E3-D893-48CB-A3FB-A5633979F965}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down Expand Up @@ -122,5 +128,6 @@ Global
{56EBD0C9-B584-465D-9AF9-D4EF342FBE88} = {BCE9FFFF-7A44-4FFF-A877-A1C5076A2847}
{A762711A-74CF-4D75-A0F9-2A3B8A057FD8} = {BCE9FFFF-7A44-4FFF-A877-A1C5076A2847}
{9787A3BC-4EBA-4681-8953-5278FC41BEFF} = {BCE9FFFF-7A44-4FFF-A877-A1C5076A2847}
{BCC0A4E3-D893-48CB-A3FB-A5633979F965} = {BCE9FFFF-7A44-4FFF-A877-A1C5076A2847}
EndGlobalSection
EndGlobal
2 changes: 1 addition & 1 deletion kscr-build/kscr-build.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Aspose.Zip" Version="22.12.0" />
<PackageReference Include="Aspose.Zip" Version="23.3.0" />
<PackageReference Include="CommandLineParser" Version="2.9.1" />
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion kscr-compiler/kscr-compiler.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Antlr4.Runtime.Standard" Version="4.11.1" />
<PackageReference Include="Antlr4.Runtime.Standard" Version="4.12.0" />
<PackageReference Include="Antlr4BuildTasks" Version="12.2.0" PrivateAssets="all" />
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion kscr-lang-server/kscr-lang-server.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<RootNamespace>KScr.LangServer</RootNamespace>
<RootNamespace>KScr.Server.Lang</RootNamespace>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>latest</LangVersion>
Expand Down
32 changes: 32 additions & 0 deletions kscr-repo-server/Controllers/WeatherForecastController.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
using Microsoft.AspNetCore.Mvc;

namespace KScr.Server.Repo.Controllers;

[ApiController]
[Route("[controller]")]
public class WeatherForecastController : ControllerBase
{
private static readonly string[] Summaries = new[]
{
"Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
};

private readonly ILogger<WeatherForecastController> _logger;

public WeatherForecastController(ILogger<WeatherForecastController> logger)
{
_logger = logger;
}

[HttpGet(Name = "GetWeatherForecast")]
public IEnumerable<WeatherForecast> Get()
{
return Enumerable.Range(1, 5).Select(index => new WeatherForecast
{
Date = DateTime.Now.AddDays(index),
TemperatureC = Random.Shared.Next(-20, 55),
Summary = Summaries[Random.Shared.Next(Summaries.Length)]
})
.ToArray();
}
}
33 changes: 33 additions & 0 deletions kscr-repo-server/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
namespace KScr.Server.Repo;

public class Program
{
public static void Main(string[] args)
{
var builder = WebApplication.CreateBuilder(args);

// Add services to the container.

builder.Services.AddControllers();
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwaggerGen();

var app = builder.Build();

// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment())
{
app.UseSwagger();
app.UseSwaggerUI();
}

app.UseHttpsRedirection();

app.UseAuthorization();

app.MapControllers();

app.Run();
}
}
31 changes: 31 additions & 0 deletions kscr-repo-server/Properties/launchSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"$schema": "https://json.schemastore.org/launchsettings.json",
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:14938",
"sslPort": 44368
}
},
"profiles": {
"kscr_repo_server": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"launchUrl": "swagger",
"applicationUrl": "https://localhost:7014;http://localhost:5208",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"launchUrl": "swagger",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}
12 changes: 12 additions & 0 deletions kscr-repo-server/WeatherForecast.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
namespace KScr.Server.Repo;

public class WeatherForecast
{
public DateTime Date { get; set; }

public int TemperatureC { get; set; }

public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);

public string? Summary { get; set; }
}
8 changes: 8 additions & 0 deletions kscr-repo-server/appsettings.Development.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
}
}
9 changes: 9 additions & 0 deletions kscr-repo-server/appsettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"AllowedHosts": "*"
}
18 changes: 18 additions & 0 deletions kscr-repo-server/kscr-repo-server.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<RootNamespace>KScr.Server.Repo</RootNamespace>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\kscr-build\kscr-build.csproj" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions kscr-test/kscr-test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.5.0" />
<PackageReference Include="NUnit" Version="3.13.3" />
<PackageReference Include="NUnit3TestAdapter" Version="4.3.1" />
<PackageReference Include="NUnit3TestAdapter" Version="4.4.2" />
<PackageReference Include="coverlet.collector" Version="3.2.0" />
</ItemGroup>

Expand Down

0 comments on commit df5707d

Please sign in to comment.