2023-01-18 15:02:59 +01:00
<Project Sdk= "Microsoft.NET.Sdk.Web" >
<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>
</PropertyGroup>
<Import Project= "..\Umbraco.Cms.Targets\buildTransitive\Umbraco.Cms.Targets.props" />
<Import Project= "..\Umbraco.Cms.Targets\buildTransitive\Umbraco.Cms.Targets.targets" />
<ItemGroup >
<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 -->
<PackageReference Include= "Microsoft.EntityFrameworkCore.Design" PrivateAssets= "all" />
2023-06-27 10:20:19 +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 -->
2023-12-13 15:47:35 +01:00
<PackageReference Include= "Microsoft.ICU.ICU4C.Runtime" VersionOverride= "72.1.0.3" />
<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>
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>