-
-
Notifications
You must be signed in to change notification settings - Fork 103
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
104 lines (100 loc) · 6.17 KB
/
Copy pathDirectory.Build.props
File metadata and controls
104 lines (100 loc) · 6.17 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
<?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>
<!-- Allow local developer overrides (e.g. ArticulatePackageLane) -->
<Import Project="$(MSBuildThisFileDirectory)Directory.Build.props.user" Condition="Exists('$(MSBuildThisFileDirectory)Directory.Build.props.user')" />
<!-- Lock files are opt-in per-project; only packable projects (Articulate.Web, Articulate.Theme.Sample) enable them. The path is lane-aware so v17 and v18 builds pin different Umbraco major versions. Set after the user import so local lane overrides pick the right file. -->
<PropertyGroup>
<NuGetLockFilePath Condition="'$(ArticulatePackageLane)' == 'v18'">packages.v18.lock.json</NuGetLockFilePath>
<NuGetLockFilePath Condition="'$(ArticulatePackageLane)' != 'v18'">packages.v17.lock.json</NuGetLockFilePath>
</PropertyGroup>
<PropertyGroup Condition="'$(ArticulatePackageLane)' == 'v18' or $([System.String]::Copy('$(UmbracoCmsPackageVersion)').StartsWith('18.')) or $([System.String]::Copy('$(UmbracoCmsPackageVersion)').StartsWith('[18.'))">
<DefineConstants>$(DefineConstants);UMBRACO_18_OR_GREATER</DefineConstants>
</PropertyGroup>
<PropertyGroup>
<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 Condition="'$(IsPackable)' != 'false'">
<PackageReference Include="DotNet.ReproducibleBuilds" PrivateAssets="all">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</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>
<ArticulatePackageVersion Condition="'$(ArticulatePackageVersion)'=='' and '$(ARTICULATE_PACKAGE_VERSION)'!=''">$(ARTICULATE_PACKAGE_VERSION)</ArticulatePackageVersion>
</PropertyGroup>
<Target Name="OverrideArticulatePackageVersion" BeforeTargets="BuildBackofficeClient;EnsureClientAssets;ResolveStaticWebAssetsInputs;GetPackageVersion;GenerateNuspec" Condition="'$(ArticulatePackageVersion)' != ''">
<PropertyGroup>
<Version>$(ArticulatePackageVersion)</Version>
<PackageVersion>$(ArticulatePackageVersion)</PackageVersion>
<AssemblyInformationalVersion>$(ArticulatePackageVersion)</AssemblyInformationalVersion>
<NBGV_SemVer2>$(ArticulatePackageVersion)</NBGV_SemVer2>
</PropertyGroup>
</Target>
<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>
</Project>