Skip to content

Commit d01663a

Browse files
authored
Move TFM to Directory.Build.props (#56)
1 parent df60657 commit d01663a

6 files changed

Lines changed: 7 additions & 32 deletions

File tree

DashboardApplication/DashboardApplication.csproj

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

3-
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
5-
<ImplicitUsings>enable</ImplicitUsings>
6-
</PropertyGroup>
7-
83
<ItemGroup>
94
<PackageReference Include="OrchardCore.Admin" Version="$(OrchardCoreVersion)" />
105
<PackageReference Include="OrchardCore.Application.Mvc.Targets" Version="$(OrchardCoreVersion)" />

Directory.Build.props

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
<Project>
22

3-
<PropertyGroup>
4-
<OrchardCoreVersion>2.2.1</OrchardCoreVersion>
5-
</PropertyGroup>
3+
<PropertyGroup>
4+
<TargetFramework>net8.0</TargetFramework>
5+
<ImplicitUsings>enable</ImplicitUsings>
6+
<OrchardCoreVersion>2.2.1</OrchardCoreVersion>
7+
</PropertyGroup>
68

79
</Project>

ModularApplication/ModularApplication.csproj

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

3-
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
5-
<ImplicitUsings>enable</ImplicitUsings>
6-
</PropertyGroup>
7-
83
<ItemGroup>
94
<PackageReference Include="OrchardCore.Application.Mvc.Targets" Version="$(OrchardCoreVersion)" />
105
</ItemGroup>

Module1/Module1.csproj

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,13 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
54
<OutputType>Library</OutputType>
65
<IsPackable>true</IsPackable>
76
<PackageVersion>1.0.4</PackageVersion>
87
</PropertyGroup>
98

109
<ItemGroup>
11-
<EmbeddedResource Remove="Pages\_ViewStart.cshtml" />
12-
</ItemGroup>
13-
14-
<ItemGroup>
15-
<Content Include="Pages\_ViewStart.cshtml">
16-
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
17-
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
18-
</Content>
19-
</ItemGroup>
20-
21-
<ItemGroup>
10+
<PackageReference Include="OrchardCore.Application.Mvc.Targets" Version="$(OrchardCoreVersion)" />
2211
<PackageReference Include="OrchardCore.Module.Targets" Version="$(OrchardCoreVersion)" />
2312
</ItemGroup>
2413

Module2/Module2.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
<Project Sdk="Microsoft.NET.Sdk.Web">
1+
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
54
<OutputType>Library</OutputType>
65
</PropertyGroup>
76

MultiTenantApplication/MultiTenantApplication.csproj

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

3-
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
5-
<ImplicitUsings>enable</ImplicitUsings>
6-
</PropertyGroup>
7-
83
<ItemGroup>
94
<PackageReference Include="OrchardCore.Application.Mvc.Targets" Version="$(OrchardCoreVersion)" />
105
<!-- If Module1 were a NuGet package instead of a project you could reference it this way: <PackageReference Include="Module1" Version="1.0.4" /> -->

0 commit comments

Comments
 (0)