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-03-24 09:41:29 +01:00
<RootNamespace > Umbraco.Cms.Web.UI.NetCore</RootNamespace>
2021-03-04 14:10:10 +11:00
</PropertyGroup>
2021-01-19 15:46:25 +11:00
<PropertyGroup Condition= " '$(Configuration)' == 'Release' " >
2021-07-06 14:03:00 +02:00
<DocumentationFile > bin/Release/Umbraco.Web.UI.NetCore.xml</DocumentationFile>
2021-01-19 15:46:25 +11:00
</PropertyGroup>
<PropertyGroup >
<CopyRazorGenerateFilesToPublishDirectory > true</CopyRazorGenerateFilesToPublishDirectory>
</PropertyGroup>
<ItemGroup >
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" />
<ProjectReference Include= "../Umbraco.Persistence.SqlCe/Umbraco.Persistence.SqlCe.csproj" Condition= "'$(OS)' == 'Windows_NT'" />
2021-08-03 09:48:34 +02:00
<ProjectReference Include= "..\Umbraco.TestData\Umbraco.TestData.csproj" />
2021-01-19 15:46:25 +11:00
</ItemGroup>
2020-02-24 11:26:34 +01:00
2021-01-19 15:46:25 +11:00
<ItemGroup >
<Folder Include= "App_Plugins" />
<Folder Include= "Views" />
</ItemGroup>
2020-03-30 21:27:35 +02:00
2021-01-19 15:46:25 +11:00
<ItemGroup >
2021-07-06 14:03:00 +02:00
<Compile Remove= "umbraco/Data/**" />
<Compile Remove= "umbraco/logs/**" />
<Compile Remove= "umbraco/mediacache/**" />
<Compile Remove= "wwwroot/umbraco/**" />
<Compile Remove= "App_Data/**" />
2021-01-19 15:46:25 +11:00
</ItemGroup>
2020-03-30 21:27:35 +02:00
2021-01-19 15:46:25 +11:00
<ItemGroup >
2021-07-06 14:03:00 +02:00
<EmbeddedResource Remove= "App_Data/**" />
<EmbeddedResource Remove= "umbraco/Data/**" />
<EmbeddedResource Remove= "umbraco/logs/**" />
<EmbeddedResource Remove= "umbraco/mediacache/**" />
2021-01-19 15:46:25 +11:00
</ItemGroup>
2020-04-20 12:20:47 +02:00
2021-01-19 15:46:25 +11:00
<ItemGroup >
2021-07-06 14:03:00 +02:00
<Content Remove= "App_Data/**" />
<Content Remove= "umbraco/Data/**" />
<Content Remove= "umbraco/logs/**" />
<Content Remove= "umbraco/mediacache/**" />
<Content Remove= "wwwroot/Web.config" />
2021-01-19 15:46:25 +11:00
</ItemGroup>
2020-08-12 15:59:30 +02:00
2020-09-08 10:27:05 +02:00
2021-01-19 15:46:25 +11:00
<ItemGroup >
2021-07-06 14:03:00 +02:00
<None Include= "config/**/*.*" >
2021-01-19 15:46:25 +11:00
<ExcludeFromSingleFile > true</ExcludeFromSingleFile>
<CopyToPublishDirectory > Always</CopyToPublishDirectory>
</None>
2021-07-06 14:03:00 +02:00
<None Include= "umbraco/**/*.*" >
2021-01-19 15:46:25 +11:00
<ExcludeFromSingleFile > true</ExcludeFromSingleFile>
<CopyToPublishDirectory > Always</CopyToPublishDirectory>
</None>
2021-07-06 14:03:00 +02:00
<None Remove= "App_Data/**" />
<None Remove= "umbraco/Data/**" />
<None Remove= "umbraco/logs/**" />
<None Remove= "umbraco/mediacache/**" />
<None Include= "umbraco/UmbracoWebsite/NoNodes.cshtml" />
2021-01-19 15:46:25 +11:00
</ItemGroup>
2020-09-08 10:27:05 +02:00
2021-01-19 15:46:25 +11:00
<!-- We don't want to include the generated files, they will throw a lot of errors -->
2020-09-09 12:46:23 +02:00
2021-03-04 14:10:10 +11:00
<ItemGroup >
2021-06-22 15:41:24 +02:00
<PackageReference Include= "Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version= "5.0.7" />
2021-05-04 17:58:50 +01:00
<PackageReference Include= "Microsoft.SourceLink.GitHub" Version= "1.0.0" >
<PrivateAssets > all</PrivateAssets>
<IncludeAssets > runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
2021-04-27 09:07:10 +02:00
<PackageReference Include= "Umbraco.Code" Version= "1.1.1" >
<PrivateAssets > all</PrivateAssets>
</PackageReference>
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-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>
<Target Name= "CheckPreconditions" BeforeTargets= "Build" >
<Message Text= "-CheckPreconditions-" Importance= "high" />
<Message Text= "JsonSchemaPath: $(JsonSchemaPath)" Importance= "high" />
<Message Text= "BellePath: $(BellePath)" Importance= "high" />
<!-- Build Belle, if building is Visual Studio and the build folder does not exist yet -->
<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)' == ''" />
</Target>
<Target Name= "BelleBuild" >
2021-07-06 15:04:48 +02:00
<!-- <Exec WorkingDirectory="$(ProjectDir)/../../src/Umbraco.Web.UI.Client/" Command="powershell - ExecutionPolicy RemoteSigned - Command '&{ npm install ; npm run build }'" /> -->
2021-06-25 15:19:07 +02:00
</Target>
<Target Name= "JsonSchemaBuild" >
2021-07-06 15:04:48 +02: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.NetCore/$(JsonSchemaPath)'" /> -->
2021-06-25 15:19:07 +02:00
</Target>
<!-- clean Belle when cleaning and rebuilding, but only in Visual Studio -->
<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')" />
2020-08-12 15:59:30 +02:00
2021-06-25 15:19:07 +02:00
<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>
2020-02-18 08:32:06 +01:00
</Project>