2021-07-26 09:32:08 +02:00
<Project Sdk= "Microsoft.NET.Sdk.Web" >
2020-02-18 08:32:06 +01:00
2021-03-04 14:10:10 +11:00
<PropertyGroup >
<TargetFramework > net5.0</TargetFramework>
2021-08-18 11:23:19 +02:00
<RootNamespace > Umbraco.Cms.Web.UI</RootNamespace>
2022-03-09 15:12:46 +01:00
</PropertyGroup>
<Import Project= "../../build/NuSpecs/buildTransitive/Umbraco.Cms.StaticAssets.props" />
<PropertyGroup >
<DefaultItemExcludes > $(DefaultItemExcludes);wwwroot/umbraco/**</DefaultItemExcludes>
2021-03-04 14:10:10 +11:00
</PropertyGroup>
2022-02-23 23:20:13 +01:00
<PropertyGroup Condition= "'$(Configuration)' == 'Release'" >
2021-08-18 11:23:19 +02:00
<DocumentationFile > bin/Release/Umbraco.Web.UI.xml</DocumentationFile>
2021-01-19 15:46:25 +11:00
</PropertyGroup>
2022-02-23 23:20:13 +01:00
2021-01-19 15:46:25 +11:00
<PropertyGroup >
<CopyRazorGenerateFilesToPublishDirectory > true</CopyRazorGenerateFilesToPublishDirectory>
</PropertyGroup>
2022-02-23 23:20:13 +01:00
2021-01-19 15:46:25 +11:00
<ItemGroup >
2022-02-23 23:20:13 +01:00
<ProjectReference Include= "../Umbraco.Persistence.SqlCe/Umbraco.Persistence.SqlCe.csproj" Condition= "'$(OS)' == 'Windows_NT'" />
2021-07-06 14:03:00 +02:00
<ProjectReference Include= "../Umbraco.PublishedCache.NuCache/Umbraco.PublishedCache.NuCache.csproj" />
<ProjectReference Include= "../Umbraco.Web.BackOffice/Umbraco.Web.BackOffice.csproj" />
<ProjectReference Include= "../Umbraco.Web.Common/Umbraco.Web.Common.csproj" />
<ProjectReference Include= "../Umbraco.Web.Website/Umbraco.Web.Website.csproj" />
2021-01-19 15:46:25 +11:00
</ItemGroup>
2022-02-15 14:10:17 +01:00
2022-02-10 12:03:35 +00:00
<ItemGroup >
<PackageReference Include= "Microsoft.ICU.ICU4C.Runtime" Version= "68.2.0.9" />
2022-02-15 14:10:17 +01:00
<RuntimeHostConfigurationOption Condition= "$(RuntimeIdentifier.StartsWith('linux')) Or $(RuntimeIdentifier.StartsWith('win')) Or ('$(RuntimeIdentifier)' == '' And !$([MSBuild]::IsOSPlatform('osx')))" Include= "System.Globalization.AppLocalIcu" Value= "68.2.0.9" />
2022-02-10 12:03:35 +00:00
</ItemGroup>
2021-03-04 14:10:10 +11:00
<ItemGroup >
2021-11-03 14:29:59 +01:00
<PackageReference Include= "Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version= "5.0.11" />
2022-02-23 23:20:13 +01:00
<PackageReference Include= "Microsoft.SourceLink.GitHub" Version= "1.0.0" PrivateAssets= "all" />
<PackageReference Include= "Umbraco.Code" Version= "1.2.0" PrivateAssets= "all" />
2021-03-04 14:10:10 +11:00
</ItemGroup>
2020-09-09 12:46:23 +02:00
2021-01-19 15:46:25 +11:00
<PropertyGroup >
<RazorCompileOnBuild > false</RazorCompileOnBuild>
2021-03-10 15:22:45 +11:00
<RazorCompileOnPublish > false</RazorCompileOnPublish>
2021-01-19 15:46:25 +11:00
</PropertyGroup>
2021-08-03 13:18:27 +02:00
2021-06-25 15:19:07 +02:00
<PropertyGroup >
2021-07-06 14:03:00 +02:00
<BellePath > $(ProjectDir)wwwroot/umbraco</BellePath>
<JsonSchemaPath > $(ProjectDir)umbraco/config/appsettings-schema.json</JsonSchemaPath>
2021-06-25 15:19:07 +02:00
</PropertyGroup>
2022-02-23 23:20:13 +01:00
2021-06-25 15:19:07 +02:00
<Target Name= "CheckPreconditions" BeforeTargets= "Build" >
<Message Text= "-CheckPreconditions-" Importance= "high" />
<Message Text= "JsonSchemaPath: $(JsonSchemaPath)" Importance= "high" />
<Message Text= "BellePath: $(BellePath)" Importance= "high" />
2022-02-10 12:03:35 +00:00
2022-01-27 17:37:32 +01:00
<!-- Build Belle, if building is Visual Studio and the build folder does not exist yet -->
2021-06-25 15:19:07 +02:00
<Message Text= "Skip Belle because UmbracoBuild is '$(UmbracoBuild)' (this is not Visual Studio)." Importance= "High" Condition= "'$(UmbracoBuild)' != ''" />
<Message Text= "Skip Belle because $(BellePath) exists." Importance= "High" Condition= "Exists('$(BellePath)')" />
<Message Text= "Build Belle because UmbracoBuild is empty (this is Visual Studio), and $(BellePath) does not exist." Importance= "High" Condition= "!Exists('$(BellePath)') and '$(UmbracoBuild)' == ''" />
<CallTarget Targets= "BelleBuild" Condition= "!Exists('$(BellePath)') and '$(UmbracoBuild)' == ''" />
<Message Text= "Skip JsonSchema generation because $(JsonSchemaPath) exists." Importance= "High" Condition= "Exists('$(JsonSchemaPath)')" />
<Message Text= "Generate the appsettings json schema." Importance= "High" Condition= "!Exists('$(JsonSchemaPath)') and '$(UmbracoBuild)' == ''" />
<CallTarget Targets= "JsonSchemaBuild" Condition= "!Exists('$(JsonSchemaPath)') and '$(UmbracoBuild)' == ''" />
2021-08-16 14:57:27 +02:00
<CallTarget Targets= "AppsettingsBuild" Condition= "!Exists('appsettings.json')" />
<CallTarget Targets= "AppsettingsDevBuild" Condition= "!Exists('appsettings.Development.json')" />
2021-06-25 15:19:07 +02:00
</Target>
2022-02-23 23:20:13 +01:00
2021-06-25 15:19:07 +02:00
<Target Name= "BelleBuild" >
2022-02-23 23:20:13 +01:00
<Exec WorkingDirectory= "$(ProjectDir)/../Umbraco.Web.UI.Client/" Command= "npm ci --no-fund --no-audit --prefer-offline" />
2021-10-19 08:28:39 +01:00
<Exec WorkingDirectory= "$(ProjectDir)/../Umbraco.Web.UI.Client/" Command= "npm run build:skip-tests" />
2021-06-25 15:19:07 +02:00
</Target>
2022-02-23 23:20:13 +01:00
2021-06-25 15:19:07 +02:00
<Target Name= "JsonSchemaBuild" >
2022-02-23 23:20:13 +01:00
<!-- <Exec WorkingDirectory="$(ProjectDir)/../../" Command="powershell - ExecutionPolicy RemoteSigned - Command '&dotnet run --project $pwd/src/JsonSchema/JsonSchema.csproj - c Release -- --outputFile $pwd/src/Umbraco.Web.UI/$(JsonSchemaPath)'" /> -->
2021-06-25 15:19:07 +02:00
</Target>
2022-02-23 23:20:13 +01:00
2021-08-16 14:57:27 +02:00
<Target Name= "AppsettingsBuild" >
<Message Text= "Generating appsettings.json because it doesnt exist" Importance= "High" />
<Copy SourceFiles= "$(Projectdir)/appsettings.template.json" DestinationFiles= "$(ProjectDir)/appsettings.json" />
</Target>
2022-02-23 23:20:13 +01:00
2021-08-16 14:57:27 +02:00
<Target Name= "AppsettingsDevBuild" >
<Message Text= "Generating appsettings.Development.json because it doesnt exist" Importance= "High" />
<Copy SourceFiles= "$(ProjectDir)appsettings.Development.template.json" DestinationFiles= "$(ProjectDir)appsettings.Development.json" />
</Target>
2022-02-23 23:20:13 +01:00
<!-- Clean Belle when cleaning and rebuilding, but only in Visual Studio -->
2021-06-25 15:19:07 +02:00
<Target Name= "CleanPreconditions" AfterTargets= "Clean" Condition= "'$(UmbracoBuild)' == ''" >
<Message Text= "-CleanPreconditions-" Importance= "high" />
<Message Text= "Nothing to clean, as $(BellePath) does not exist." Importance= "High" Condition= "!Exists('$(BellePath)')" />
<Message Text= "Not cleaning (found src/preserve.belle)." Importance= "High" Condition= "Exists('$(BellePath)') and Exists('$(SolutionDir)preserve.belle')" />
<Message Text= "Remove $(BellePath)." Importance= "High" Condition= "Exists('$(BellePath)') and !Exists('$(SolutionDir)preserve.belle')" />
<ItemGroup >
<BelleLib Include= "$(BellePath)" />
</ItemGroup>
<RemoveDir Directories= "@(BelleLib)" Condition= "Exists('$(BellePath)') and !Exists('$(SolutionDir)preserve.belle')" />
<Message Text= "Remove $(JsonSchemaPath)." Importance= "High" Condition= "Exists('$(JsonSchemaPath)') and !Exists('$(SolutionDir)preserve.jsonschema')" />
2021-07-06 07:39:45 +02:00
<Delete Files= "$(JsonSchemaPath)" Condition= "Exists('$(JsonSchemaPath)') and !Exists('$(SolutionDir)preserve.jsonschema')" />
2021-06-25 15:19:07 +02:00
</Target>
2022-02-23 23:20:13 +01:00
2020-02-18 08:32:06 +01:00
</Project>