-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
163 lines (146 loc) · 9.37 KB
/
Directory.Build.props
File metadata and controls
163 lines (146 loc) · 9.37 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<?xml version="1.0" encoding="utf-8"?>
<Project>
<!-- Adapt base for build locations -->
<PropertyGroup Condition="'$(BuildOutputBasePath)' != ''">
<BuildOutputBasePath Condition="!HasTrailingSlash('$(BuildOutputBasePath)')">$(BuildOutputBasePath)/</BuildOutputBasePath>
<RestorePackagesPath>$(BuildOutputBasePath)_packages</RestorePackagesPath>
</PropertyGroup>
<PropertyGroup Condition="'$(BuildOutputBasePath)' == ''">
<BuildOutputBasePath>$(MSBuildThisFileDirectory)_bin/</BuildOutputBasePath>
</PropertyGroup>
<PropertyGroup>
<!-- Selection of target framework -->
<NetTargetFramework>net10.0</NetTargetFramework>
<!-- Let Visual Studio determine what to build the same way as MSBuild and dotnet build do -->
<DisableFastUpToDateCheck>True</DisableFastUpToDateCheck>
<!-- Build output location -->
<MSBuildProjectExtensionsPath>$(BuildOutputBasePath)_application/_extensions/$(MSBuildProjectName)</MSBuildProjectExtensionsPath>
<BaseIntermediateOutputPath>$(BuildOutputBasePath)_application/_intermediate/$(Configuration)/$(NetTargetFramework)/$(MSBuildProjectName)/</BaseIntermediateOutputPath>
<IntermediateOutputPath>$(BaseIntermediateOutputPath)</IntermediateOutputPath>
<OutputPath>$(BuildOutputBasePath)_application/$(Configuration)/$(NetTargetFramework)/</OutputPath>
<AppendRuntimeIdentifierToOutputPath>False</AppendRuntimeIdentifierToOutputPath>
<AppendTargetFrameworkToOutputPath>False</AppendTargetFrameworkToOutputPath>
<ProduceReferenceAssemblyInOutDir>True</ProduceReferenceAssemblyInOutDir>
<!-- Language settings -->
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<!-- The configurations to build -->
<Configurations>Debug;Release</Configurations>
<Platforms>AnyCPU</Platforms>
<!-- Package references -->
<RestoreEnablePackagePruning>False</RestoreEnablePackagePruning>
<ManagePackageVersionsCentrally>True</ManagePackageVersionsCentrally>
<CentralPackageTransitivePinningEnabled>True</CentralPackageTransitivePinningEnabled>
<CentralPackageVersionOverrideEnabled>False</CentralPackageVersionOverrideEnabled>
<!-- Code generation -->
<IncludePackageReferencesDuringMarkupCompilation>False</IncludePackageReferencesDuringMarkupCompilation>
<ImplicitUsings>disable</ImplicitUsings>
<InvariantGlobalization>False</InvariantGlobalization>
<AddRazorSupportForMvc>True</AddRazorSupportForMvc>
<EmitCompilerGeneratedFiles Condition="('$(Configuration)' != 'CompileModels') And ('$(Configuration)' != 'CompileSimulationModels')">True</EmitCompilerGeneratedFiles>
<EnableConfigurationBindingGenerator>True</EnableConfigurationBindingGenerator>
<EnableRequestDelegateGenerator>True</EnableRequestDelegateGenerator>
<CompilerGeneratedFilesOutputPath>$(BuildOutputBasePath)_application/_generated/$(MSBuildProjectName)/$(Configuration)</CompilerGeneratedFilesOutputPath>
<InterceptorsPreviewNamespaces>$(InterceptorsPreviewNamespaces);Microsoft.AspNetCore.Http.Generated</InterceptorsPreviewNamespaces>
<!-- Assembly information -->
<GenerateAssemblyInfo>True</GenerateAssemblyInfo>
<GenerateAssemblyDescriptionAttribute>True</GenerateAssemblyDescriptionAttribute>
<GenerateAssemblyTitleAttribute>False</GenerateAssemblyTitleAttribute>
<GenerateNeutralResourcesLanguageAttribute>False</GenerateNeutralResourcesLanguageAttribute>
<Company>Marcel Versteeg Software</Company>
<Copyright>Copyright © 2024-$([System.DateTime]::Now.ToString("yyyy")), Marcel Versteeg</Copyright>
<FileVersion Condition="'$(Configuration)' == 'Release'">$([System.DateTime]::UtcNow.ToString("yyyy.MMdd.HHmm"))</FileVersion>
<FileVersion Condition="'$(Configuration)' != 'Release'">9999.9999.9999</FileVersion> <!-- This is needed to prevent code changes during debugging -->
<InformationalVersion>$(FileVersion) ($(Configuration) build)</InformationalVersion>
<Product>Personal Web Pages Versteeg Family</Product>
<AssemblyVersion>1.0.0</AssemblyVersion>
<BuildDateTime Condition="'$(Configuration)' == 'Release'">$([System.DateTime]::UtcNow.Ticks)</BuildDateTime>
<BuildDateTime Condition="'$(Configuration)' != 'Release'">621355968000000000</BuildDateTime> <!-- This is needed to prevent code changes during debugging -->
<!-- Warnings and errors -->
<WarningLevel>4</WarningLevel>
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
<TrimmerSingleWarn>False</TrimmerSingleWarn>
<WarningsNotAsErrors>NU1903</WarningsNotAsErrors> <!-- Treat the NuGet vulnerability check as warning -->
<NoWarn>2008</NoWarn> <!-- Don't make it an issue when there are no source files -->
<NoWarn>$(NoWarn);8002</NoWarn> <!-- Don't make it an issue when referencing an unsigned assembly -->
<NoWarn>$(NoWarn);NU1900</NoWarn> <!-- Don't make it an issue when NuGet package vulnerability data could not be loaded -->
<!-- Binary generation -->
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>True</AutoGenerateBindingRedirects>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>False</Prefer32Bit>
<!-- Assembly signing -->
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)MissingMethodException.snk</AssemblyOriginatorKeyFile>
<!-- Code analysis -->
<EnableNETAnalyzers>True</EnableNETAnalyzers>
<AnalysisLevel>latest-all</AnalysisLevel>
<EnforceCodeStyleInBuild>True</EnforceCodeStyleInBuild>
<_SkipUpgradeNetAnalyzersNuGetWarning>True</_SkipUpgradeNetAnalyzersNuGetWarning>
<IsAotCompatible>True</IsAotCompatible>
<!-- Miscellaneous properties -->
<IsTestProject>False</IsTestProject>
<ErrorOnDuplicatePublishOutputFiles>False</ErrorOnDuplicatePublishOutputFiles>
<MSBUILDDISABLENODEREUSE>True</MSBUILDDISABLENODEREUSE>
<TasksAssembly>$(BuildOutputBasePath)_tools/$(Configuration)/$(NetTargetFramework)/Tasks.dll</TasksAssembly>
</PropertyGroup>
<!-- The general build configuration properties -->
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
<DebugSymbols>True</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>False</Optimize>
<DefineConstants>DEBUG;TRACE</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'">
<DebugType>pdbonly</DebugType>
<Optimize>True</Optimize>
<DefineConstants></DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'CompileModels|AnyCPU'">
<DebugSymbols>True</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>False</Optimize>
<DefineConstants>DEBUG;TRACE;COMPILEMODELS</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'CompileSimulationModels|AnyCPU'">
<DebugSymbols>True</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>False</Optimize>
<DefineConstants>DEBUG;TRACE;COMPILESIMULATIONMODELS</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'CreateData|AnyCPU'">
<DebugSymbols>True</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>False</Optimize>
<DefineConstants>DEBUG;TRACE;CREATE_SIMULATION_DATA</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Simulation|AnyCPU'">
<DebugSymbols>True</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>False</Optimize>
<DefineConstants>DEBUG;TRACE;SIMULATION</DefineConstants>
</PropertyGroup>
<!-- Add packages used by all projects -->
<ItemGroup>
<PackageReference Include="System.Text.Encodings.Web" />
<PackageReference Include="System.Text.Json" />
</ItemGroup>
<ItemGroup Condition="('$(Configuration)' == 'CompileModels') Or ('$(Configuration)' == 'CompileSimulationModels')">
<PackageReference Include="Microsoft.EntityFrameworkCore.Design">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
<!-- Make sure the SolutionDir is set, even when not built via the solution -->
<PropertyGroup Condition="'$(SolutionDir)' == ''">
<SolutionDir>$(MSBuildThisFileDirectory)</SolutionDir>
</PropertyGroup>
<!-- Add the generated code -->
<ItemGroup Condition="'$(EmitCompilerGeneratedFiles)' == 'True'">
<None Include="$(CompilerGeneratedFilesOutputPath)/**/*.*">
<Link>_generated/$([System.String]::new('%(RecursiveDir)').Substring($([System.Math]::Max($([System.String]::new('%(RecursiveDir)').IndexOf('/')), $([System.String]::new('%(RecursiveDir)').IndexOf('\'))))))%(Filename)%(Extension)</Link>
</None>
<None Remove="$(CompilerGeneratedFilesOutputPath)/project*" />
<None Remove="$(CompilerGeneratedFilesOutputPath)/*csproj.nuget*" />
</ItemGroup>
</Project>