3 Commits

Author SHA1 Message Date
Tyrrrz
ca8368e1d9 asd 2025-09-11 20:54:14 +03:00
Tyrrrz
d4b6a2b7a9 asd 2025-09-11 20:44:13 +03:00
dependabot[bot]
63f57025e8 Bump the nuget group with 5 updates (#163)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-04 14:13:09 +03:00
7 changed files with 46 additions and 40 deletions

View File

@@ -11,10 +11,10 @@
<PackageReference Include="clipr" Version="1.6.1" /> <PackageReference Include="clipr" Version="1.6.1" />
<PackageReference Include="Cocona" Version="2.2.0" /> <PackageReference Include="Cocona" Version="2.2.0" />
<PackageReference Include="CommandLineParser" Version="2.9.1" /> <PackageReference Include="CommandLineParser" Version="2.9.1" />
<PackageReference Include="CSharpier.MsBuild" Version="0.30.6" PrivateAssets="all" /> <PackageReference Include="CSharpier.MsBuild" Version="1.1.2" PrivateAssets="all" />
<PackageReference Include="McMaster.Extensions.CommandLineUtils" Version="4.1.1" /> <PackageReference Include="McMaster.Extensions.CommandLineUtils" Version="4.1.1" />
<PackageReference Include="PowerArgs" Version="4.0.3" /> <PackageReference Include="PowerArgs" Version="4.0.3" />
<PackageReference Include="System.CommandLine" Version="2.0.0-beta5.25306.1" /> <PackageReference Include="System.CommandLine" Version="2.0.0-beta6.25358.103" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>

View File

@@ -8,8 +8,8 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="CSharpier.MsBuild" Version="0.30.6" PrivateAssets="all" /> <PackageReference Include="CSharpier.MsBuild" Version="1.1.2" PrivateAssets="all" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.6" /> <PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.9" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>

View File

@@ -1,5 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework> <TargetFramework>netstandard2.0</TargetFramework>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies> <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
@@ -7,7 +6,6 @@
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules> <EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
<NoWarn>$(NoWarn);RS1035</NoWarn> <NoWarn>$(NoWarn);RS1035</NoWarn>
</PropertyGroup> </PropertyGroup>
<PropertyGroup> <PropertyGroup>
<!-- <!--
Because this project only has a single target framework, the condition in Because this project only has a single target framework, the condition in
@@ -15,13 +13,15 @@
--> -->
<Nullable>annotations</Nullable> <Nullable>annotations</Nullable>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="CSharpier.MsBuild" Version="0.28.2" PrivateAssets="all" /> <PackageReference Include="CSharpier.MsBuild" Version="1.1.2" PrivateAssets="all" />
<!-- Make sure to target the lowest possible version of the compiler for wider support --> <!-- Make sure to target the lowest possible version of the compiler for wider support -->
<PackageReference Include="Microsoft.CodeAnalysis" Version="4.11.0" PrivateAssets="all" /> <PackageReference Include="Microsoft.CodeAnalysis" Version="4.11.0" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.11.0" PrivateAssets="all" /> <PackageReference
<PackageReference Include="PolyShim" Version="1.12.0" PrivateAssets="all" /> Include="Microsoft.CodeAnalysis.CSharp"
Version="4.11.0"
PrivateAssets="all"
/>
<PackageReference Include="PolyShim" Version="1.15.0" PrivateAssets="all" />
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@@ -41,10 +41,9 @@ internal partial class CommandSymbol(
private string GenerateSchemaInitializationCode(CommandInputSymbol input) => private string GenerateSchemaInitializationCode(CommandInputSymbol input) =>
input switch input switch
{ {
CommandParameterSymbol parameter CommandParameterSymbol parameter =>
=> // lang=csharp
// lang=csharp $$"""
$$"""
new CliFx.Schema.CommandParameterSchema<{{Type.FullyQualifiedName}}, {{parameter new CliFx.Schema.CommandParameterSchema<{{Type.FullyQualifiedName}}, {{parameter
.Property .Property
.Type .Type
@@ -59,10 +58,9 @@ internal partial class CommandSymbol(
// TODO // TODO
); );
""", """,
CommandOptionSymbol option CommandOptionSymbol option =>
=> // lang=csharp
// lang=csharp $$"""
$$"""
new CliFx.Schema.CommandOptionSchema<{{Type.FullyQualifiedName}}, {{option new CliFx.Schema.CommandOptionSchema<{{Type.FullyQualifiedName}}, {{option
.Property .Property
.Type .Type
@@ -78,7 +76,7 @@ internal partial class CommandSymbol(
// TODO // TODO
); );
""", """,
_ => throw new ArgumentOutOfRangeException(nameof(input), input, null) _ => throw new ArgumentOutOfRangeException(nameof(input), input, null),
}; };
public string GenerateSchemaInitializationCode() => public string GenerateSchemaInitializationCode() =>

View File

@@ -7,7 +7,7 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="CSharpier.MsBuild" Version="0.30.6" PrivateAssets="all" /> <PackageReference Include="CSharpier.MsBuild" Version="1.1.2" PrivateAssets="all" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>

View File

@@ -9,18 +9,18 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Basic.Reference.Assemblies.Net80" Version="1.8.2" /> <PackageReference Include="Basic.Reference.Assemblies.Net80" Version="1.8.3" />
<PackageReference Include="CliWrap" Version="3.9.0" /> <PackageReference Include="CliWrap" Version="3.9.0" />
<PackageReference Include="coverlet.collector" Version="6.0.4" PrivateAssets="all" /> <PackageReference Include="coverlet.collector" Version="6.0.4" PrivateAssets="all" />
<PackageReference Include="CSharpier.MsBuild" Version="0.30.6" PrivateAssets="all" /> <PackageReference Include="CSharpier.MsBuild" Version="1.1.2" PrivateAssets="all" />
<PackageReference Include="FluentAssertions" Version="8.4.0" /> <PackageReference Include="FluentAssertions" Version="8.6.0" />
<PackageReference Include="GitHubActionsTestLogger" Version="2.4.1" PrivateAssets="all" /> <PackageReference Include="GitHubActionsTestLogger" Version="2.4.1" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.11.0" /> <PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.14.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.6" /> <PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.9" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1" /> <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1" />
<PackageReference Include="PolyShim" Version="1.15.0" PrivateAssets="all" /> <PackageReference Include="PolyShim" Version="1.15.0" PrivateAssets="all" />
<PackageReference Include="xunit" Version="2.9.3" /> <PackageReference Include="xunit" Version="2.9.3" />
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.1" PrivateAssets="all" /> <PackageReference Include="xunit.runner.visualstudio" Version="3.1.4" PrivateAssets="all" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>

View File

@@ -1,12 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<TargetFrameworks>netstandard2.0;netstandard2.1;net8.0;net9.0</TargetFrameworks> <TargetFrameworks>netstandard2.0;netstandard2.1;net8.0;net9.0</TargetFrameworks>
<IsPackable>true</IsPackable> <IsPackable>true</IsPackable>
<IsTrimmable Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))">true</IsTrimmable> <IsTrimmable
<IsAotCompatible Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net7.0'))">true</IsAotCompatible> Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))"
>true</IsTrimmable
>
<IsAotCompatible
Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net7.0'))"
>true</IsAotCompatible
>
</PropertyGroup> </PropertyGroup>
<PropertyGroup> <PropertyGroup>
<Authors>$(Company)</Authors> <Authors>$(Company)</Authors>
<Description>Class-first framework for building command-line interfaces</Description> <Description>Class-first framework for building command-line interfaces</Description>
@@ -17,21 +21,25 @@
<PackageLicenseExpression>MIT</PackageLicenseExpression> <PackageLicenseExpression>MIT</PackageLicenseExpression>
<GenerateDocumentationFile>true</GenerateDocumentationFile> <GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<None Include="../favicon.png" Pack="true" PackagePath="" Visible="false" /> <None Include="../favicon.png" Pack="true" PackagePath="" Visible="false" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="CSharpier.MsBuild" Version="0.30.6" PrivateAssets="all" /> <PackageReference Include="CSharpier.MsBuild" Version="1.1.2" PrivateAssets="all" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="all" /> <PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="all" />
<PackageReference Include="PolyShim" Version="1.15.0" PrivateAssets="all" /> <PackageReference Include="PolyShim" Version="1.15.0" PrivateAssets="all" />
<PackageReference Include="System.Threading.Tasks.Extensions" Version="4.6.0" Condition="!$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'netstandard2.1'))" /> <PackageReference
Include="System.Threading.Tasks.Extensions"
Version="4.6.3"
Condition="!$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'netstandard2.1'))"
/>
</ItemGroup> </ItemGroup>
<!-- Embed the analyzer inside the package --> <!-- Embed the analyzer inside the package -->
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\CliFx.SourceGeneration\CliFx.SourceGeneration.csproj" ReferenceOutputAssembly="false" OutputItemType="analyzer" /> <ProjectReference
Include="..\CliFx.SourceGeneration\CliFx.SourceGeneration.csproj"
ReferenceOutputAssembly="false"
OutputItemType="analyzer"
/>
</ItemGroup> </ItemGroup>
</Project> </Project>