Create and pack empty file to add TFM dependency (#13475)

This commit is contained in:
Ronald Barendse
2022-11-28 19:48:29 +01:00
committed by GitHub
parent e45ed3d7f1
commit a3361606e0
2 changed files with 17 additions and 1 deletions

View File

@@ -50,4 +50,12 @@
<Target Name="RemoveAppsettingsSchema" AfterTargets="Clean" Condition="Exists('$(_UmbracoCmsJsonSchemaReference)')">
<Delete Files="$(_UmbracoCmsJsonSchemaReference)" />
</Target>
<!-- Create and pack empty file to add TFM dependency -->
<Target Name="PackTargetFrameworkFile" BeforeTargets="Build">
<WriteLinesToFile File="$(IntermediateOutputPath)_._" />
<ItemGroup>
<None Include="$(IntermediateOutputPath)_._" Pack="true" PackagePath="lib\$(TargetFramework)" />
</ItemGroup>
</Target>
</Project>

View File

@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Title>Umbraco CMS</Title>
<Description>Installs Umbraco CMS with all default dependencies in your ASP.NET Core project.</Description>
@@ -12,4 +12,12 @@
<ProjectReference Include="..\Umbraco.Cms.Persistence.Sqlite\Umbraco.Cms.Persistence.Sqlite.csproj" />
<ProjectReference Include="..\Umbraco.Cms.Persistence.SqlServer\Umbraco.Cms.Persistence.SqlServer.csproj" />
</ItemGroup>
<!-- Create and pack empty file to add TFM dependency -->
<Target Name="PackTargetFrameworkFile" BeforeTargets="Build">
<WriteLinesToFile File="$(IntermediateOutputPath)_._" />
<ItemGroup>
<None Include="$(IntermediateOutputPath)_._" Pack="true" PackagePath="lib\$(TargetFramework)" />
</ItemGroup>
</Target>
</Project>