2025-04-30 14:10:42 +02:00
<Project Sdk= "Microsoft.NET.Sdk.Web" >
2023-01-18 15:02:59 +01:00
<PropertyGroup >
2024-03-12 10:17:42 +01:00
<RootNamespace > Umbraco.Cms.Web.UI</RootNamespace>
2023-12-13 15:47:35 +01:00
<IsPackable > false</IsPackable>
2023-01-18 15:02:59 +01:00
<EnablePackageValidation > false</EnablePackageValidation>
2024-11-19 13:29:39 +01:00
<!-- Disable compression for static files, because MapStaticAssets() is not used anyway (yet) -->
<CompressionEnabled > false</CompressionEnabled>
2025-10-14 09:39:53 +02:00
<ManagePackageVersionsCentrally > false</ManagePackageVersionsCentrally>
2023-01-18 15:02:59 +01:00
</PropertyGroup>
2024-08-27 17:56:09 +01:00
<PropertyGroup >
2024-11-19 13:29:39 +01:00
<!--
TODO: Fix and remove overrides:
[SA1119] Correct unnecessary parenthesis
-->
<WarningsNotAsErrors > $(WarningsNotAsErrors),SA1119</WarningsNotAsErrors>
2024-08-27 17:56:09 +01:00
</PropertyGroup>
2025-09-23 11:58:09 +02:00
2023-01-18 15:02:59 +01:00
<Import Project= "..\Umbraco.Cms.Targets\buildTransitive\Umbraco.Cms.Targets.props" />
<Import Project= "..\Umbraco.Cms.Targets\buildTransitive\Umbraco.Cms.Targets.targets" />
<ItemGroup >
2025-09-23 11:58:09 +02:00
<ProjectReference Include= "..\Umbraco.Cms.DevelopmentMode.Backoffice\Umbraco.Cms.DevelopmentMode.Backoffice.csproj" />
2023-01-18 15:02:59 +01:00
<ProjectReference Include= "..\Umbraco.Cms\Umbraco.Cms.csproj" />
</ItemGroup>
2023-06-27 10:20:19 +02:00
<ItemGroup >
2023-12-13 15:47:35 +01:00
<!-- Add design/build time support for EF Core migrations -->
2025-11-24 10:42:35 +01:00
<PackageReference Include= "Microsoft.EntityFrameworkCore.Design" PrivateAssets= "all" Version= "10.0.0" />
2025-10-20 11:54:26 +02:00
<!--
Added the following direct dependency due to Microsoft.EntityFrameworkCore.Design having a dependency on an insecure version.
Review for removal when Microsoft.EntityFrameworkCore.Design is updated to a newer version.
-->
<PackageReference Include= "Microsoft.Build.Tasks.Core" PrivateAssets= "all" Version= "17.14.28" />
2025-05-06 11:42:09 +02:00
</ItemGroup>
2023-01-18 15:02:59 +01:00
<ItemGroup >
2023-12-13 15:47:35 +01:00
<!-- Ensure the AppLocalIcu setting is the same as the referenced ICU package version and changes are also done to the template project! -->
2023-01-18 15:02:59 +01:00
<!-- Opt - in to app - local ICU to ensure consistent globalization APIs across different platforms -->
2025-10-14 09:39:53 +02:00
<PackageReference Include= "Microsoft.ICU.ICU4C.Runtime" Version= "72.1.0.3" />
2023-12-13 15:47:35 +01:00
<RuntimeHostConfigurationOption Include= "System.Globalization.AppLocalIcu" Value= "72.1.0.3" Condition= "$(RuntimeIdentifier.StartsWith('linux')) or $(RuntimeIdentifier.StartsWith('win')) or ('$(RuntimeIdentifier)' == '' and !$([MSBuild]::IsOSPlatform('osx')))" />
2023-01-18 15:02:59 +01:00
</ItemGroup>
<PropertyGroup >
<!-- Razor files are needed for the backoffice to work correctly -->
<CopyRazorGenerateFilesToPublishDirectory > true</CopyRazorGenerateFilesToPublishDirectory>
</PropertyGroup>
<PropertyGroup >
<!-- Remove RazorCompileOnBuild and RazorCompileOnPublish when not using ModelsMode InMemoryAuto -->
<RazorCompileOnBuild > false</RazorCompileOnBuild>
<RazorCompileOnPublish > false</RazorCompileOnPublish>
</PropertyGroup>
<ItemGroup >
<_ContentIncludedByDefault Remove= "umbraco\UmbracoInstall\Index.cshtml" />
2023-05-25 10:38:44 +02:00
<_ContentIncludedByDefault Remove= "umbraco\UmbracoLogin\Index.cshtml" />
<_ContentIncludedByDefault Remove= "umbraco\UmbracoBackOffice\Default.cshtml" />
</ItemGroup>
2025-11-13 15:39:51 +01:00
<ItemGroup >
<!-- Hide the content files that come from the Microsoft.CodeAnalysis.Workspaces.MSBuild package. -->
<Content Update= "$(NuGetPackageRoot)\microsoft.codeanalysis.workspaces.msbuild\**\**" Visible= "false" />
</ItemGroup>
2023-01-18 15:02:59 +01:00
<Target Name= "CopyAppsettingsTemplate" BeforeTargets= "Build" Condition= "!Exists('appsettings.json')" >
<Message Text= "Copying appsettings.template.json to appsettings.json because it doesn't exist" Importance= "high" />
<Copy SourceFiles= "appsettings.template.json" DestinationFiles= "appsettings.json" />
</Target>
<Target Name= "CopyAppsettingsDevelopmentTemplate" BeforeTargets= "Build" Condition= "!Exists('appsettings.Development.json')" >
<Message Text= "Copying appsettings.Development.template.json to appsettings.Development.json because it doesn't exist" Importance= "high" />
<Copy SourceFiles= "appsettings.Development.template.json" DestinationFiles= "appsettings.Development.json" />
</Target>
</Project>