Skip to content

Commit

Permalink
升级 YamlToCSharp 的编译可执行程序,使之不再使用已被弃用的 .NETCoreApp 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
walterlv committed Mar 1, 2024
1 parent a883b5e commit f4b6bc2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<Nullable>enable</Nullable>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<Description>将 YAML 文件转 C# 代码</Description>
<Copyright>Copyright (c) 2020 dotnet-campus</Copyright>
<Copyright>Copyright (c) 2020-2024 dotnet-campus</Copyright>
<PackageProjectUrl>https://github.com/dotnet-campus/dotnetCampus.YamlToCSharp</PackageProjectUrl>
<RepositoryUrl>https://github.com/dotnet-campus/dotnetCampus.YamlToCSharp</RepositoryUrl>
<RepositoryType>git</RepositoryType>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFrameworks>net48;netcoreapp3.1</TargetFrameworks>
<TargetFrameworks>net8.0-windows</TargetFrameworks>
<UseWPF>true</UseWPF>
<RootNamespace>dotnetCampus.YamlToCSharp</RootNamespace>
<ShouldFixNuGetImportingBugForWpfProjects>False</ShouldFixNuGetImportingBugForWpfProjects>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework>
<TargetFramework>net8.0-windows</TargetFramework>
<Nullable>enable</Nullable>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>net45;netstandard2.0;netcoreapp3.1</TargetFrameworks>
<TargetFramework>net8.0</TargetFramework>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<IncludeBuildOutput>false</IncludeBuildOutput>
<RootNamespace>dotnetCampus.YamlToCSharp</RootNamespace>
Expand All @@ -25,14 +25,14 @@
<ItemGroup>
<None Include="Assets\build\PackageId.props" Pack="True" PackagePath="build\$(PackageId).props" />
<None Include="Assets\build\PackageId.targets" Pack="True" PackagePath="build\$(PackageId).targets" />
<None Include="$(OutputPath)\netcoreapp3.1\**" Pack="True" PackagePath="tools" />
<None Include="$(OutputPath)**" Pack="True" PackagePath="tools" />
</ItemGroup>
</Target>

<!-- For debug only. -->
<Target Name="_DCYB_CopyOutputToDebuggableFolder" BeforeTargets="GenerateNuspec">
<Target Name="_DCYB_CopyOutputToDebuggableFolder" AfterTargets="AfterBuild">
<ItemGroup>
<_DCYB_ToCopyFiles Include="$(OutputPath)\netcoreapp3.1\**" />
<_DCYB_ToCopyFiles Include="$(OutputPath)**" />
</ItemGroup>
<Message Text="Copy output files into the debug folder: @(_DCYB_ToCopyFiles)" />
<Copy SourceFiles="@(_DCYB_ToCopyFiles)" DestinationFolder="Assets\tools" />
Expand Down

0 comments on commit f4b6bc2

Please sign in to comment.