Remve SmartFormat
This commit is contained in:
parent
42ad31c447
commit
98e57263f5
4 changed files with 15 additions and 6 deletions
6
src/Directory.Build.props
Normal file
6
src/Directory.Build.props
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
<Project>
|
||||||
|
<!-- See https://aka.ms/dotnet/msbuild/customize for more details on customizing your build -->
|
||||||
|
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))"
|
||||||
|
Condition="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../')) != ''" />
|
||||||
|
|
||||||
|
</Project>
|
||||||
|
|
@ -29,4 +29,4 @@ static IResult Handle(string path, HttpContext context)
|
||||||
|
|
||||||
[JsonSerializable(typeof(CacheEntry))]
|
[JsonSerializable(typeof(CacheEntry))]
|
||||||
[JsonSourceGenerationOptions(GenerationMode = JsonSourceGenerationMode.Serialization)]
|
[JsonSourceGenerationOptions(GenerationMode = JsonSourceGenerationMode.Serialization)]
|
||||||
partial class AppContext : JsonSerializerContext;
|
partial class AppSerializerContext : JsonSerializerContext;
|
||||||
|
|
|
||||||
|
|
@ -4,13 +4,13 @@ namespace ContentProxy.Properties;
|
||||||
|
|
||||||
public class AppSettings
|
public class AppSettings
|
||||||
{
|
{
|
||||||
public string CacheDir { get; set; } = "{BaseDir}/cache";
|
public string CacheDir { get; set; } = "cache/";
|
||||||
|
|
||||||
public TimeSpan CacheTtl { get; set; } = TimeSpan.FromMinutes(60);
|
public TimeSpan CacheTtl { get; set; } = TimeSpan.FromMinutes(60);
|
||||||
|
|
||||||
public long? ChunkSize { get; set; } = null;
|
public long? ChunkSize { get; set; } = null;
|
||||||
|
|
||||||
public string DataDir { get; set; } = "{BaseDir}/data";
|
public string DataDir { get; set; } = "data/";
|
||||||
|
|
||||||
public string Levels { get; set; } = "1:2";
|
public string Levels { get; set; } = "1:2";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,9 +9,12 @@
|
||||||
<EnableRequestDelegateGenerator>true</EnableRequestDelegateGenerator>
|
<EnableRequestDelegateGenerator>true</EnableRequestDelegateGenerator>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="SmartFormat" Version="3.4.0" />
|
<PackageReference Include="Microsoft.CodeAnalysis.BannedApiAnalyzers" Version="3.3.4">
|
||||||
<PackageReference Include="System.IO.Hashing" Version="8.0.0" />
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
|
<PrivateAssets>all</PrivateAssets>
|
||||||
|
</PackageReference>
|
||||||
|
<PackageReference Include="System.IO.Hashing" Version="8.0.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue