Skip to content

Commit

Permalink
Use .NET6 only in Release mode
Browse files Browse the repository at this point in the history
  • Loading branch information
enisn committed Aug 7, 2023
1 parent 5eeec4c commit bede530
Showing 1 changed file with 20 additions and 15 deletions.
35 changes: 20 additions & 15 deletions AbpDevTools.csproj
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
<!--<TargetFramework>net7.0</TargetFramework>-->
<Version>1.0.1</Version>
<ImplicitUsings>enable</ImplicitUsings>
<PackAsTool>true</PackAsTool>
<ToolCommandName>abpdev</ToolCommandName>
<PackageOutputPath>./nupkg</PackageOutputPath>
</PropertyGroup>
<PropertyGroup>
<OutputType>Exe</OutputType>
<Version>1.0.1</Version>
<ImplicitUsings>enable</ImplicitUsings>
<PackAsTool>true</PackAsTool>
<ToolCommandName>abpdev</ToolCommandName>
<PackageOutputPath>./nupkg</PackageOutputPath>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="CliFx" Version="2.3.2" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="7.0.0" />
<PackageReference Include="Spectre.Console" Version="0.46.1-preview.0.20" />
</ItemGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
<TargetFramework>net7.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="CliFx" Version="2.3.2" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="7.0.0" />
<PackageReference Include="Spectre.Console" Version="0.46.1-preview.0.20" />
</ItemGroup>

</Project>

0 comments on commit bede530

Please sign in to comment.