34 lines
1.9 KiB
XML
34 lines
1.9 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
<PropertyGroup>
|
|
<Title>Umbraco CMS</Title>
|
|
<Description>Installs Umbraco CMS with minimal dependencies in your ASP.NET Core project.</Description>
|
|
<IncludeBuildOutput>false</IncludeBuildOutput>
|
|
<IncludeSymbols>false</IncludeSymbols>
|
|
<!-- TODO: Enable when final version is shipped (because there's currently no previous version) -->
|
|
<EnablePackageValidation>false</EnablePackageValidation>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\Umbraco.Cms.StaticAssets\Umbraco.Cms.StaticAssets.csproj" />
|
|
<ProjectReference Include="..\Umbraco.Web.BackOffice\Umbraco.Web.BackOffice.csproj" />
|
|
<ProjectReference Include="..\Umbraco.Web.Website\Umbraco.Web.Website.csproj" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Content Include="buildTransitive\**" PackagePath="buildTransitive" />
|
|
<Content Include="$(JsonSchemaPath)" PackagePath="" />
|
|
<Content Include="$(JsonSchemaCmsPath)" PackagePath="" />
|
|
</ItemGroup>
|
|
|
|
<!-- Generate appsettings-schema.json on build (and before copying to project) -->
|
|
<PropertyGroup>
|
|
<JsonSchemaPath>$(MSBuildThisFileDirectory)appsettings-schema.json</JsonSchemaPath>
|
|
<JsonSchemaCmsPath>$(MSBuildThisFileDirectory)appsettings-schema.Umbraco.Cms.json</JsonSchemaCmsPath>
|
|
<JsonSchemaProjectPath>$(MSBuildThisFileDirectory)..\JsonSchema\</JsonSchemaProjectPath>
|
|
</PropertyGroup>
|
|
<Target Name="GenerateAppsettingsSchema" BeforeTargets="Build;CopyAppsettingsSchema" Condition="!Exists('$(JsonSchemaPath)') or !Exists('$(JsonSchemaCmsPath)')">
|
|
<Message Text="Generating appsettings-schema.json and appsettings-schema.Umbraco.Cms.json because it doesn't exist" Importance="high" />
|
|
<Exec WorkingDirectory="$(JsonSchemaProjectPath)" Command="dotnet run -c Release --mainOutputFile "$(JsonSchemaPath)" --cmsOutputFile "$(JsonSchemaCmsPath)"" />
|
|
</Target>
|
|
</Project>
|