|
1 | | -<Project Sdk="Microsoft.NET.Sdk"> |
2 | | - |
3 | | - <PropertyGroup> |
4 | | - <OutputType>Exe</OutputType> |
5 | | - <AssemblyName>dotnet-release-note</AssemblyName> |
6 | | - <TargetFramework>net9.0</TargetFramework> |
7 | | - <LangVersion>preview</LangVersion> |
8 | | - <ImplicitUsings>disable</ImplicitUsings> |
9 | | - <Nullable>enable</Nullable> |
10 | | - <WarningLevel>4</WarningLevel> |
11 | | - <TreatWarningsAsErrors>true</TreatWarningsAsErrors> |
12 | | - <AnalysisMode>All</AnalysisMode> |
13 | | - <EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild> |
14 | | - <NoWarn>CA2007,CA1305,CA1310,CA1002,CA1707,CA1307,CA1304,CA1311,CA1031,IDE0045,IDE0046,IDE0090,IDE0057,IDE0305,IDE0005,IDE0063,IDE0056,IDE0066</NoWarn> |
15 | | - <GenerateDocumentationFile>false</GenerateDocumentationFile> |
16 | | - </PropertyGroup> |
17 | | - |
18 | | - <ItemGroup> |
19 | | - <PackageReference Include="Tomlyn" Version="0.17.0" /> |
20 | | - <PackageReference Include="Spectre.Console" Version="0.49.1" /> |
21 | | - <PackageReference Include="Spectre.Console.Cli" Version="0.49.1" /> |
22 | | - </ItemGroup> |
23 | | - |
24 | | - <ItemGroup> |
25 | | - <ProjectReference Include="..\NF.Tool.ReleaseNoteMaker.Common\NF.Tool.ReleaseNoteMaker.Common.csproj" /> |
26 | | - </ItemGroup> |
27 | | - |
28 | | - <ItemGroup> |
29 | | - <EmbeddedResource Include="res\Template.tt"> |
30 | | - <LogicalName>Template.tt</LogicalName> |
31 | | - </EmbeddedResource> |
32 | | - <EmbeddedResource Include="res\Template.liquid"> |
33 | | - <LogicalName>Template.liquid</LogicalName> |
34 | | - </EmbeddedResource> |
35 | | - <EmbeddedResource Include="res\ReleaseNote.config.toml"> |
36 | | - <LogicalName>ReleaseNote.config.toml</LogicalName> |
37 | | - </EmbeddedResource> |
38 | | - <!--<None Update="Template.tt" CopyToOutputDirectory="PreserveNewest" />--> |
39 | | - <None Remove="CHANGELOG.md" /> |
40 | | - <None Remove="ChangeLog.d/**/*" /> |
41 | | - </ItemGroup> |
42 | | - |
43 | | - <PropertyGroup> |
44 | | - <PackAsTool>true</PackAsTool> |
45 | | - <PackageId>dotnet-release-note</PackageId> |
46 | | - <Version>0.0.3</Version> |
47 | | - <Authors>netpyoung</Authors> |
48 | | - <Company>netpyoung</Company> |
49 | | - <Copyright>netpyoung</Copyright> |
50 | | - <ToolCommandName>dotnet-release-note</ToolCommandName> |
51 | | - <PackageOutputPath>./nupkg</PackageOutputPath> |
52 | | - <PackageTags>dotnet;dotnet-tool;release-note</PackageTags> |
53 | | - <PackageLicenseExpression>MIT</PackageLicenseExpression> |
54 | | - <PackageReadmeFile>README.md</PackageReadmeFile> |
55 | | - <PackageProjectUrl>https://github.com/netpyoung/NF.Tool.ReleaseNoteMaker</PackageProjectUrl> |
56 | | - <PublishRepositoryUrl>true</PublishRepositoryUrl> |
57 | | - <Description>Release Note Maker</Description> |
58 | | - </PropertyGroup> |
59 | | - |
60 | | - <ItemGroup> |
61 | | - <None Include="$(MSBuildThisFileDirectory)../../README.md" Pack="true" PackagePath="/" /> |
62 | | - </ItemGroup> |
63 | | - |
64 | | - <ItemGroup> |
65 | | - <Folder Include="nupkg\" /> |
66 | | - </ItemGroup> |
67 | | - |
68 | | - <Target Name="InstallTool" AfterTargets="Pack"> |
69 | | - <Exec Command="dotnet tool list --global" ContinueOnError="true" /> |
70 | | - <Exec Command="dotnet tool uninstall -g $(PackageId) || echo 'Tool not installed, skipping uninstall.'" ContinueOnError="true" /> |
71 | | - <Exec Command="dotnet tool install -g --add-source $(PackageOutputPath) $(PackageId)" /> |
72 | | - </Target> |
73 | | - |
74 | | - <Target Name="CleanOutputDir" AfterTargets="Clean"> |
75 | | - <RemoveDir Directories="$(OUTDIR)"/> |
76 | | - </Target> |
77 | | -</Project> |
| 1 | +<Project Sdk="Microsoft.NET.Sdk"> |
| 2 | + |
| 3 | + <PropertyGroup> |
| 4 | + <OutputType>Exe</OutputType> |
| 5 | + <AssemblyName>dotnet-release-note</AssemblyName> |
| 6 | + <TargetFramework>net10.0</TargetFramework> |
| 7 | + <LangVersion>preview</LangVersion> |
| 8 | + <ImplicitUsings>disable</ImplicitUsings> |
| 9 | + <Nullable>enable</Nullable> |
| 10 | + <WarningLevel>4</WarningLevel> |
| 11 | + <TreatWarningsAsErrors>true</TreatWarningsAsErrors> |
| 12 | + <AnalysisMode>All</AnalysisMode> |
| 13 | + <EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild> |
| 14 | + <NoWarn>CA2007,CA1305,CA1310,CA1002,CA1707,CA1307,CA1304,CA1311,CA1031,IDE0045,IDE0046,IDE0090,IDE0057,IDE0305,IDE0005,IDE0063,IDE0056,IDE0066</NoWarn> |
| 15 | + <GenerateDocumentationFile>false</GenerateDocumentationFile> |
| 16 | + </PropertyGroup> |
| 17 | + |
| 18 | + <ItemGroup> |
| 19 | + <PackageReference Include="Tomlyn" Version="0.17.0" /> |
| 20 | + <PackageReference Include="Spectre.Console" Version="0.49.1" /> |
| 21 | + <PackageReference Include="Spectre.Console.Cli" Version="0.49.1" /> |
| 22 | + </ItemGroup> |
| 23 | + |
| 24 | + <ItemGroup> |
| 25 | + <ProjectReference Include="..\NF.Tool.ReleaseNoteMaker.Common\NF.Tool.ReleaseNoteMaker.Common.csproj" /> |
| 26 | + </ItemGroup> |
| 27 | + |
| 28 | + <ItemGroup> |
| 29 | + <EmbeddedResource Include="res\Template.tt"> |
| 30 | + <LogicalName>Template.tt</LogicalName> |
| 31 | + </EmbeddedResource> |
| 32 | + <EmbeddedResource Include="res\Template.liquid"> |
| 33 | + <LogicalName>Template.liquid</LogicalName> |
| 34 | + </EmbeddedResource> |
| 35 | + <EmbeddedResource Include="res\ReleaseNote.config.toml"> |
| 36 | + <LogicalName>ReleaseNote.config.toml</LogicalName> |
| 37 | + </EmbeddedResource> |
| 38 | + <!--<None Update="Template.tt" CopyToOutputDirectory="PreserveNewest" />--> |
| 39 | + <None Remove="CHANGELOG.md" /> |
| 40 | + <None Remove="ChangeLog.d/**/*" /> |
| 41 | + </ItemGroup> |
| 42 | + |
| 43 | + <PropertyGroup> |
| 44 | + <PackAsTool>true</PackAsTool> |
| 45 | + <PackageId>dotnet-release-note</PackageId> |
| 46 | + <Version>0.0.3</Version> |
| 47 | + <Authors>netpyoung</Authors> |
| 48 | + <Company>netpyoung</Company> |
| 49 | + <Copyright>netpyoung</Copyright> |
| 50 | + <ToolCommandName>dotnet-release-note</ToolCommandName> |
| 51 | + <PackageOutputPath>./nupkg</PackageOutputPath> |
| 52 | + <PackageTags>dotnet;dotnet-tool;release-note</PackageTags> |
| 53 | + <PackageLicenseExpression>MIT</PackageLicenseExpression> |
| 54 | + <PackageReadmeFile>README.md</PackageReadmeFile> |
| 55 | + <PackageProjectUrl>https://github.com/netpyoung/NF.Tool.ReleaseNoteMaker</PackageProjectUrl> |
| 56 | + <PublishRepositoryUrl>true</PublishRepositoryUrl> |
| 57 | + <Description>Release Note Maker</Description> |
| 58 | + </PropertyGroup> |
| 59 | + |
| 60 | + <ItemGroup> |
| 61 | + <None Include="$(MSBuildThisFileDirectory)../../README.md" Pack="true" PackagePath="/" /> |
| 62 | + </ItemGroup> |
| 63 | + |
| 64 | + <ItemGroup> |
| 65 | + <Folder Include="nupkg\" /> |
| 66 | + </ItemGroup> |
| 67 | + |
| 68 | + <Target Name="InstallTool" AfterTargets="Pack"> |
| 69 | + <Exec Command="dotnet tool list --global" ContinueOnError="true" /> |
| 70 | + <Exec Command="dotnet tool uninstall -g $(PackageId) || echo 'Tool not installed, skipping uninstall.'" ContinueOnError="true" /> |
| 71 | + <Exec Command="dotnet tool install -g --add-source $(PackageOutputPath) $(PackageId)" /> |
| 72 | + </Target> |
| 73 | + |
| 74 | + <Target Name="CleanOutputDir" AfterTargets="Clean"> |
| 75 | + <RemoveDir Directories="$(OUTDIR)"/> |
| 76 | + </Target> |
| 77 | +</Project> |
0 commit comments