|
1 | 1 | <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
2 | 2 | <PropertyGroup> |
3 | 3 | <TargetFramework>net9.0</TargetFramework> |
| 4 | + <LangVersion>latest</LangVersion> |
| 5 | + <ImplicitUsings>true</ImplicitUsings> |
4 | 6 | </PropertyGroup> |
5 | 7 | <PropertyGroup> |
6 | 8 | <Product>grandnode</Product> |
7 | 9 | <PackageProjectUrl>https://grandnode.com/</PackageProjectUrl> |
8 | | - <RepositoryUrl>https://github.com/grandnode/grandnode2</RepositoryUrl> |
9 | 10 | <PackageLicenseUrl>https://github.com/grandnode/grandnode2/blob/main/LICENSE</PackageLicenseUrl> |
| 11 | + <RepositoryUrl>https://github.com/grandnode/grandnode2</RepositoryUrl> |
10 | 12 | <RepositoryType>Git</RepositoryType> |
11 | | - <LangVersion>latest</LangVersion> |
12 | 13 | </PropertyGroup> |
13 | 14 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'"> |
14 | 15 | <DebugSymbols>false</DebugSymbols> |
15 | 16 | <DebugType>none</DebugType> |
16 | 17 | <Optimize>true</Optimize> |
17 | 18 | </PropertyGroup> |
| 19 | + |
18 | 20 | <ItemGroup> |
19 | | - <Using Include="System" /> |
20 | | - <Using Include="System.Collections.Generic" /> |
21 | | - <Using Include="System.IO" /> |
22 | | - <Using Include="System.Text" /> |
23 | | - <Using Include="System.Linq" /> |
24 | | - <Using Include="System.Threading" /> |
25 | | - <Using Include="System.Threading.Tasks" /> |
| 21 | + <Using Include="System.Text"/> |
26 | 22 | </ItemGroup> |
| 23 | + |
27 | 24 | <Target Name="SetSourceRevisionId" BeforeTargets="InitializeSourceControlInformation" |
28 | 25 | Condition="'$(SourceRevisionId)'=='' And Exists('$(MSBuildProjectDirectory)\.git')"> |
29 | 26 | <Exec Command="git describe --long --always --exclude=* --abbrev=8" ConsoleToMSBuild="True" |
30 | 27 | IgnoreExitCode="True"> |
31 | | - <Output PropertyName="SourceRevisionId" TaskParameter="ConsoleOutput" /> |
| 28 | + <Output PropertyName="SourceRevisionId" TaskParameter="ConsoleOutput"/> |
32 | 29 | </Exec> |
33 | 30 | </Target> |
34 | 31 | <Target Name="SetRepositoryBranch" BeforeTargets="InitializeSourceControlInformation" |
35 | 32 | Condition="'$(GitBranch)'=='' And Exists('$(MSBuildProjectDirectory)\.git')"> |
36 | 33 | <Exec Command="git rev-parse --abbrev-ref HEAD" ConsoleToMSBuild="True" IgnoreExitCode="True"> |
37 | | - <Output PropertyName="branch" TaskParameter="ConsoleOutput" /> |
| 34 | + <Output PropertyName="branch" TaskParameter="ConsoleOutput"/> |
38 | 35 | </Exec> |
39 | 36 | <ItemGroup> |
40 | | - <AssemblyMetadata Include="GitBranch" Value="$(branch)" /> |
| 37 | + <AssemblyMetadata Include="GitBranch" Value="$(branch)"/> |
41 | 38 | </ItemGroup> |
42 | 39 | </Target> |
43 | 40 | <ItemGroup Condition="'$(GitBranch)'!=''"> |
44 | | - <AssemblyMetadata Include="GitBranch" Value="$(GitBranch)" /> |
| 41 | + <AssemblyMetadata Include="GitBranch" Value="$(GitBranch)"/> |
45 | 42 | </ItemGroup> |
46 | 43 | <Target Name="SetVersion" BeforeTargets="PrepareForBuild"> |
47 | 44 | <PropertyGroup> |
|
0 commit comments