Repository navigation
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
55 lines (55 loc) · 3.6 KB
/
Copy pathDirectory.Build.props
File metadata and controls
55 lines (55 loc) · 3.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<Project>
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<LangVersion>14.0</LangVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<CodeAnalysisTreatWarningsAsErrors>true</CodeAnalysisTreatWarningsAsErrors>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<RunAnalyzers>true</RunAnalyzers>
<RunAnalyzersDuringBuild>true</RunAnalyzersDuringBuild>
<RunAnalyzersDuringLiveAnalysis>true</RunAnalyzersDuringLiveAnalysis>
<AnalysisLevel>latest-all</AnalysisLevel>
<Deterministic>true</Deterministic>
<RestorePackagesWithLockFile>false</RestorePackagesWithLockFile>
<ContinuousIntegrationBuild Condition="'$(CI)' == 'true'">true</ContinuousIntegrationBuild>
<KeyLoadReleaseMajor>0</KeyLoadReleaseMajor>
<KeyLoadReleaseMinor>1</KeyLoadReleaseMinor>
<Version>$(KeyLoadReleaseMajor).$(KeyLoadReleaseMinor).0-dev</Version>
<Authors>ManagedCode</Authors>
<RepositoryUrl>https://github.com/managedcode/KeyLoad</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
</PropertyGroup>
<ItemGroup>
<None Include="$(MSBuildThisFileDirectory)LICENSE" Pack="true" PackagePath="" Visible="false" CopyToPublishDirectory="PreserveNewest" />
</ItemGroup>
<ItemGroup Condition="'$(MSBuildProjectName)' != 'KeyLoad.Analyzers' and '$(MSBuildProjectName)' != 'KeyLoad.Analyzers.Tests'">
<ProjectReference Include="$(MSBuildThisFileDirectory)analyzers/KeyLoad.Analyzers/KeyLoad.Analyzers.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" IsAspireProjectResource="false" PrivateAssets="all" />
</ItemGroup>
<PropertyGroup Condition="'$(MSBuildProjectName)' == 'KeyLoad' or '$(MSBuildProjectName)' == 'KeyLoad.ComparisonHost'">
<EnableSdkContainerSupport>true</EnableSdkContainerSupport>
<ContainerBaseImage>mcr.microsoft.com/dotnet/aspnet:10.0.12@sha256:222759b391a1aaf241166672c8f99b2d4ada452e7b5319f3c6e8f265a37b5ad4</ContainerBaseImage>
<ContainerUser>app</ContainerUser>
<ContainerWorkingDirectory>/app/</ContainerWorkingDirectory>
<ContainerAppCommandInstruction>Entrypoint</ContainerAppCommandInstruction>
<ContainerRepository Condition="'$(MSBuildProjectName)' == 'KeyLoad'">keyload/server</ContainerRepository>
<ContainerRepository Condition="'$(MSBuildProjectName)' == 'KeyLoad.ComparisonHost'">keyload/comparisons</ContainerRepository>
</PropertyGroup>
<ItemGroup Condition="'$(MSBuildProjectName)' == 'KeyLoad'">
<ContainerEnvironmentVariable Include="ASPNETCORE_HTTP_PORTS" Value="8080" />
<ContainerEnvironmentVariable Include="KeyLoad__DataDirectory" Value="/data" />
<ContainerPort Include="8080" Type="tcp" />
<ContainerPort Include="11111" Type="tcp" />
</ItemGroup>
<ItemGroup Condition="'$(MSBuildProjectName)' == 'KeyLoad.ComparisonHost'">
<ContainerAppCommandArgs Include="--output;Detailed;--maximum-parallel-tests;1;--report-trx;--results-directory;/reports/RuntimeTestResults" />
</ItemGroup>
<ItemGroup Condition="'$(MSBuildProjectName)' == 'KeyLoad' or '$(MSBuildProjectName)' == 'KeyLoad.ComparisonHost'">
<ContainerLabel Include="io.keyload.local.source-context-sha256" Value="$(KeyLoadContainerSourceDigest)" Condition="'$(KeyLoadContainerSourceDigest)' != ''" />
<ContainerLabel Include="io.keyload.local.invocation" Value="$(KeyLoadContainerInvocation)" Condition="'$(KeyLoadContainerInvocation)' != ''" />
</ItemGroup>
</Project>