* Treat warnings as errors for Umbraco.Cms, Umbraco.Cms.Api.Common and Umbraco.Cms.Api.Delivery projects. * Treat warnings as errors for Umbraco.Cms.Imaging.ImageSharp and Umbraco.Cms.Imaging.ImageSharp2 projects * Treat warnings as errors for Umbraco.Cms.Persistence.EFCore.Sqlite, Umbraco.Cms.Persistence.EFCore.SqlServer and Umbraco.Cms.StaticAssets * Treat warnings as errors for Umbraco.Cms.Targets * Treat warnings as errors for templates/Umbraco.Templates and Umbraco.JsonSchema * More projects with warnings as errors. * Reverted warnings as errors due to some file changes since the update. * Remove unwanted tag * Removed warnings as errors on TestData project * Implement warnings as errors in props file, and exclude specific warnings where appropriate as per PR review suggestions. * Reverted spaces * Revert "Reverted spaces" This reverts commit 3734c45e2270c3324768b33e459aefcc6a8c4739. * Update sdk version to fully support Umbraco.code 2.2.0 dependency on Microsoft.CodeAnalysis.CSharp.Workspaces 4.10.0 * Ignore PathToLongErrors for now in static assets --------- Co-authored-by: Emma Garland <emma.garland@rocksolidknowledge.com> Co-authored-by: Sven Geusens <sge@umbraco.dk>
57 lines
2.9 KiB
XML
57 lines
2.9 KiB
XML
<Project Sdk="Microsoft.NET.Sdk.Web">
|
|
<PropertyGroup>
|
|
<RootNamespace>Umbraco.Cms.Web.UI</RootNamespace>
|
|
<IsPackable>false</IsPackable>
|
|
<EnablePackageValidation>false</EnablePackageValidation>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup>
|
|
<!-- TODO: [SA1119] Correct unnecessary parenthesis and remove this override -->
|
|
<WarningsNotAsErrors>SA1119</WarningsNotAsErrors>
|
|
</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>
|
|
|
|
<ItemGroup>
|
|
<!-- Add design/build time support for EF Core migrations -->
|
|
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" PrivateAssets="all" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<!-- Ensure the AppLocalIcu setting is the same as the referenced ICU package version and changes are also done to the template project! -->
|
|
<!-- Opt-in to app-local ICU to ensure consistent globalization APIs across different platforms -->
|
|
<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')))" />
|
|
</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" />
|
|
<_ContentIncludedByDefault Remove="umbraco\UmbracoLogin\Index.cshtml" />
|
|
<_ContentIncludedByDefault Remove="umbraco\UmbracoBackOffice\Default.cshtml" />
|
|
</ItemGroup>
|
|
|
|
<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>
|