Skip to content

Commit d8f5f11

Browse files
committed
Product template updated.
1 parent 016f264 commit d8f5f11

File tree

5 files changed

+24
-14
lines changed

5 files changed

+24
-14
lines changed

Directory.Packages.props

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project>
3+
<PropertyGroup>
4+
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
5+
</PropertyGroup>
6+
<!-- Set versions of dependencies that need special treatment or consist of multiple packages of the same version. -->
7+
<PropertyGroup>
8+
<PostSharpEngineeringVersion Condition="'$(PostSharpEngineeringVersion)'==''">2023.2.111</PostSharpEngineeringVersion>
9+
</PropertyGroup>
10+
<ItemGroup>
11+
<PackageVersion Include="PostSharp.Engineering.BuildTools" Version="$(PostSharpEngineeringVersion)" />
12+
</ItemGroup>
13+
</Project>

eng/Versions.props

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,6 @@
88
<MyProductAssemblyVersion>$(MainVersion)</MyProductAssemblyVersion>
99
</PropertyGroup>
1010

11-
12-
<!-- Set the default versions of dependencies -->
13-
<PropertyGroup>
14-
<PostSharpEngineeringVersion>2023.2.34</PostSharpEngineeringVersion>
15-
</PropertyGroup>
16-
1711
<!-- Set the deafult versions of auto-updated dependencies -->
1812
<Import Project="AutoUpdatedVersions.props" />
1913

@@ -25,4 +19,7 @@
2519
<Version>$(MyProductVersion)</Version>
2620
</PropertyGroup>
2721

22+
<!-- Versions of other dependencies are set in Directory.Packages.props. -->
23+
<!-- See https://learn.microsoft.com/en-us/nuget/consume-packages/central-package-management. -->
24+
2825
</Project>

eng/src/BuildMyProduct.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net6.0</TargetFramework>
5+
<TargetFramework>net8.0</TargetFramework>
66
<AssemblyName>Build</AssemblyName>
7-
<GenerateDocumentationFile>false</GenerateDocumentationFile>
7+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
88
<LangVersion>latest</LangVersion>
99
<Nullable>enable</Nullable>
1010
<NoWarn>SA0001;CS8002</NoWarn>
1111
</PropertyGroup>
1212

1313
<ItemGroup>
14-
<PackageReference Include="PostSharp.Engineering.BuildTools" Version="$(PostSharpEngineeringVersion)"/>
14+
<PackageReference Include="PostSharp.Engineering.BuildTools" />
1515
</ItemGroup>
1616

1717
</Project>

global.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"sdk": {
3-
"version": "6.0.401",
4-
"rollForward": "disable"
3+
"version": "8.0.200",
4+
"rollForward": "patch"
55
},
66
"msbuild-sdks": {
7-
"PostSharp.Engineering.Sdk": "2023.2.34"
7+
"PostSharp.Engineering.Sdk": "2023.2.111"
88
}
99
}

src/My.Product/My.Product.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net6.0</TargetFramework>
5+
<TargetFramework>net8.0</TargetFramework>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="Metalama.Framework" Version="$(MetalamaVersion)"/>
11+
<PackageReference Include="Metalama.Framework" />
1212
</ItemGroup>
1313

1414
</Project>

0 commit comments

Comments
 (0)