forked from Shazwazza/Articulate
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
122 lines (120 loc) · 7.24 KB
/
Directory.Build.props
File metadata and controls
122 lines (120 loc) · 7.24 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
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<LangVersion>latest</LangVersion>
<!-- TODO: Enable after phased migration. https://learn.microsoft.com/en-us/dotnet/csharp/nullable-migration-strategies -->
<Nullable>warnings</Nullable>
<WarningsAsErrors>Nullable</WarningsAsErrors>
<ImplicitUsings>enable</ImplicitUsings>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NuGetAuditMode>direct</NuGetAuditMode>
<DisableImplicitNuGetFallbackFolder>true</DisableImplicitNuGetFallbackFolder>
</PropertyGroup>
<!-- Umbraco CMS version range per target + NuGet audit mode -->
<PropertyGroup Condition="'$(TargetFramework)' == 'net9.0'">
<!-- Support Umbraco 15.x-16.x on .NET 9 -->
<UmbracoCmsPackageVersion>[16.5.1,17.0.0)</UmbracoCmsPackageVersion>
<MicrosoftOpenApiPackageVersion>[1.6.22,2.0.0)</MicrosoftOpenApiPackageVersion>
<MicrosoftCodeAnalysisPackageVersion>[4.13.0,5.3.0)</MicrosoftCodeAnalysisPackageVersion>
<SystemServiceModelSyndicationPackageVersion>[9.0.14,10.0.3)</SystemServiceModelSyndicationPackageVersion>
<SystemSecurityCryptographyXmlPackageVersion>[9.0.15,10.0.0)</SystemSecurityCryptographyXmlPackageVersion>
<MailKitPackageVersion>[4.16.0,5.0.0)</MailKitPackageVersion>
<OpenMcdfPackageVersion>3.1.3</OpenMcdfPackageVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)' == 'net10.0'">
<!-- Support Umbraco 17.x (including pre-release) on .NET 10 -->
<UmbracoCmsPackageVersion>[17.2.2,18.0.0)</UmbracoCmsPackageVersion>
<MicrosoftOpenApiPackageVersion>[2.3.0,3.0.0)</MicrosoftOpenApiPackageVersion>
<MicrosoftCodeAnalysisPackageVersion>[5.3.0,6.0.0)</MicrosoftCodeAnalysisPackageVersion>
<SystemServiceModelSyndicationPackageVersion>[10.0.5,11.0.0)</SystemServiceModelSyndicationPackageVersion>
<SystemSecurityCryptographyXmlPackageVersion>[10.0.6,11.0.0)</SystemSecurityCryptographyXmlPackageVersion>
<MailKitPackageVersion>[4.16.0,5.0.0)</MailKitPackageVersion>
<OpenMcdfPackageVersion>3.1.3</OpenMcdfPackageVersion>
</PropertyGroup>
<PropertyGroup>
<!-- TODO: Enable when 6.0 version is shipped -->
<EnablePackageValidation>false</EnablePackageValidation>
<PackageValidationBaselineVersion>6.0.0</PackageValidationBaselineVersion>
<EnableStrictModeForCompatibleFrameworksInPackage>true</EnableStrictModeForCompatibleFrameworksInPackage>
<EnableStrictModeForCompatibleTfms>true</EnableStrictModeForCompatibleTfms>
<GenerateCompatibilitySuppressionFile>true</GenerateCompatibilitySuppressionFile>
<CompressionEnabled>false</CompressionEnabled>
<!-- Central client-build defaults; consumed by Articulate.Web to build the backoffice client -->
<EnableClientBuild Condition="'$(EnableClientBuild)'=='' and '$(ENABLE_CLIENT_BUILD)'!=''">$(ENABLE_CLIENT_BUILD)</EnableClientBuild>
<EnableClientBuild Condition="'$(EnableClientBuild)'=='' and '$(Configuration)'=='Release' and '$(BuildingInsideVisualStudio)'!='true'">true</EnableClientBuild>
<EnableClientBuild Condition="'$(EnableClientBuild)'==''">false</EnableClientBuild>
<ClientBuildCommand Condition="'$(ClientBuildCommand)'=='' and ('$(CI)'=='true' or '$(GITHUB_ACTIONS)'=='true' or '$(Configuration)'=='Release')">pnpm run build</ClientBuildCommand>
<ClientBuildCommand Condition="'$(ClientBuildCommand)'==''">pnpm run build:dev</ClientBuildCommand>
<StaticWebAssetBasePath Condition="'$(StaticWebAssetBasePath)' == ''">/</StaticWebAssetBasePath>
<AddRazorSupportForMvc Condition="'$(AddRazorSupportForMvc)' == ''">true</AddRazorSupportForMvc>
<EnforceCodeStyleInBuild Condition="'$(EnforceCodeStyleInBuild)' == ''">true</EnforceCodeStyleInBuild>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Nerdbank.GitVersioning" Condition="!Exists('packages.config')" Version="3.9.50" PrivateAssets="All" />
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.556" PrivateAssets="All" />
<GlobalPackageReference Include="Umbraco.Code" Version="2.4.0" PrivateAssets="All" />
<GlobalPackageReference Include="Umbraco.GitVersioning.Extensions" Version="0.2.0" PrivateAssets="All" />
</ItemGroup>
<ItemGroup Condition="'$(IsPackable)' != 'false'">
<PackageReference Include="DotNet.ReproducibleBuilds" Version="2.0.2" PrivateAssets="all">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.CodeAnalysis" Version="$(MicrosoftCodeAnalysisPackageVersion)" PrivateAssets="All" />
</ItemGroup>
<ItemGroup Condition="'$(UseArticulateUsings)' == 'true'">
<Using Include="Umbraco.Cms.Core.DependencyInjection" />
<Using Include="Umbraco.Extensions" />
<Using Include="Articulate" />
<Using Include="Articulate.Models" />
</ItemGroup>
<ItemGroup Condition="'$(IsPackable)' != 'false'">
<None Include="$(MSBuildThisFileDirectory)LICENSE">
<Pack>true</Pack>
<PackagePath>\</PackagePath>
</None>
<None Include="$(MSBuildThisFileDirectory)README.md">
<Pack>true</Pack>
<PackagePath>\</PackagePath>
</None>
</ItemGroup>
<PropertyGroup>
<GitVersionBaseDirectory>$(MSBuildThisFileDirectory)</GitVersionBaseDirectory>
</PropertyGroup>
<ItemGroup>
<Content Include="$(MSBuildThisFileDirectory)icon.png" Pack="true" PackagePath="" Visible="false" />
</ItemGroup>
<PropertyGroup>
<Authors>Shannon Deminick</Authors>
<Copyright>Copyright $(Company) $([System.DateTime]::Today.ToString('yyyy'))</Copyright>
<Product>Articulate</Product>
<Description>A wonderful Blog engine built on Umbraco</Description>
<PackageProjectUrl>https://github.com/Shazwazza/Articulate</PackageProjectUrl>
<!--<RepositoryType>git</RepositoryType>-->
<!--<RepositoryUrl>https://github.com/Shazwazza/Articulate</RepositoryUrl>-->
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageIcon>icon.png</PackageIcon>
<PackageTags>blog umbraco umbraco-marketplace oss tags markdown richtext</PackageTags>
<PackageOutputPath>$(MSBuildThisFileDirectory)build/$(Configuration)/</PackageOutputPath>
<GeneratePackageOnBuild>False</GeneratePackageOnBuild>
<DebugType Condition="'$(IsPackable)' != 'false'">portable</DebugType>
<DebugSymbols Condition="'$(IsPackable)' != 'false'">true</DebugSymbols>
<IncludeSymbols>true</IncludeSymbols>
<WarnOnPackingNonPackableProject>false</WarnOnPackingNonPackableProject>
<NeutralLanguage>en-US</NeutralLanguage>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>
<Target Name="_GetProjectReferenceVersionRanges" AfterTargets="_GetProjectReferenceVersions">
<ItemGroup>
<_ProjectReferencesWithVersions Condition="'%(ProjectVersion)' != ''">
<ProjectVersion>[%(ProjectVersion), $([MSBuild]::Add($([System.Text.RegularExpressions.Regex]::Match('%(ProjectVersion)', '^[0-9]+').Value), 1)))</ProjectVersion>
</_ProjectReferencesWithVersions>
</ItemGroup>
</Target>
<!-- Force minimum versions for vulnerable transitive dependencies -->
<ItemGroup>
<PackageReference Include="Microsoft.Build.Tasks.Core" Version="17.8.43" PrivateAssets="All" />
<PackageReference Include="MailKit" Version="$(MailKitPackageVersion)" PrivateAssets="All" />
</ItemGroup>
</Project>