Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions src/DemoApp/DemoApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@
<CompilerGeneratedFilesOutputPath>obj\Generated</CompilerGeneratedFilesOutputPath>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\System.CommandLine.Minimal\System.CommandLine.Minimal.csproj"
OutputItemType="Analyzer"
ReferenceOutputAssembly="true" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\System.CommandLine.Minimal\System.CommandLine.Minimal.csproj" />
<ProjectReference Include="..\System.CommandLine.Minimal.SourceGenerator\System.CommandLine.Minimal.SourceGenerator.csproj">
<OutputItemType>Analyzer</OutputItemType>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</ProjectReference>
</ItemGroup>

</Project>
14 changes: 8 additions & 6 deletions src/HelloWorld/HelloWorld.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
<CompilerGeneratedFilesOutputPath>obj\Generated</CompilerGeneratedFilesOutputPath>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\System.CommandLine.Minimal\System.CommandLine.Minimal.csproj"
OutputItemType="Analyzer"
ReferenceOutputAssembly="true" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\System.CommandLine.Minimal\System.CommandLine.Minimal.csproj" />
<ProjectReference Include="..\System.CommandLine.Minimal.SourceGenerator\System.CommandLine.Minimal.SourceGenerator.csproj">
<OutputItemType>Analyzer</OutputItemType>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</ProjectReference>
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<PackageId>MinimalCommandLine.Core</PackageId>
<Title>Minimal Command Line Core APIs</Title>
<Authors>dotnetKyle</Authors>
<Description>A set of minimal builders that sits on top of the System.CommandLine namespace to give an experience similar to the ASP.Net Core minimal API builders.</Description>
<PackageProjectUrl></PackageProjectUrl>
<RepositoryUrl>https://github.com/dotnetKyle/MinimalCommandLine</RepositoryUrl>
<PackageTags>Command; Line</PackageTags>
<DebugType>embedded</DebugType>
<RootNamespace>System.CommandLine.Minimal</RootNamespace>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.1" />
<PackageReference Include="System.CommandLine" Version="2.0.0-rc.1.25451.107" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
namespace System.Runtime.CompilerServices;

internal class IsExternalInit { }
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<PackageId>MinimalCommandLine.SourceGenerator</PackageId>
<Title>Minimal Command Line Source Generator</Title>
<Authors>dotnetKyle</Authors>
<Description>A source generator for MinimalCommandLine. Enables the quick rigging of commands using a Command attribute.</Description>
<PackageProjectUrl></PackageProjectUrl>
<RepositoryUrl>https://github.com/dotnetKyle/MinimalCommandLine</RepositoryUrl>
<PackageTags>Command; Line</PackageTags>
<DebugType>embedded</DebugType>

<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
<CompilerGeneratedFilesOutputPath>obj\Generated</CompilerGeneratedFilesOutputPath>
<IsRoslynComponent>true</IsRoslynComponent>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\System.CommandLine.Minimal.Core\System.CommandLine.Minimal.Core.csproj" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.12.0" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.11.0" PrivateAssets="all">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

</Project>
12 changes: 12 additions & 0 deletions src/System.CommandLine.Minimal.sln
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HelloWorld", "HelloWorld\HelloWorld.csproj", "{B20E4694-01C6-4866-966D-56961B159961}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "System.CommandLine.Minimal.Core", "System.CommandLine.Minimal.Core\System.CommandLine.Minimal.Core.csproj", "{86A9F343-6ACE-4291-8016-A8B242FCAFDA}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "System.CommandLine.Minimal.SourceGenerator", "System.CommandLine.Minimal.SourceGenerator\System.CommandLine.Minimal.SourceGenerator.csproj", "{5AF84270-8ECB-4097-A8DA-9C676E1E9373}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -34,6 +38,14 @@ Global
{B20E4694-01C6-4866-966D-56961B159961}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B20E4694-01C6-4866-966D-56961B159961}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B20E4694-01C6-4866-966D-56961B159961}.Release|Any CPU.Build.0 = Release|Any CPU
{86A9F343-6ACE-4291-8016-A8B242FCAFDA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{86A9F343-6ACE-4291-8016-A8B242FCAFDA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{86A9F343-6ACE-4291-8016-A8B242FCAFDA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{86A9F343-6ACE-4291-8016-A8B242FCAFDA}.Release|Any CPU.Build.0 = Release|Any CPU
{5AF84270-8ECB-4097-A8DA-9C676E1E9373}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5AF84270-8ECB-4097-A8DA-9C676E1E9373}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5AF84270-8ECB-4097-A8DA-9C676E1E9373}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5AF84270-8ECB-4097-A8DA-9C676E1E9373}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
23 changes: 9 additions & 14 deletions src/System.CommandLine.Minimal/System.CommandLine.Minimal.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,13 @@
<PackageId>MinimalCommandLine</PackageId>
<Title>Minimal Command Line</Title>
<Authors>dotnetKyle</Authors>
<Description>A set of minimal builders that sits on top of the System.CommandLine namespace to give an experience similar to the ASP.Net Core minimal API builders.</Description>
<Description>A source generator on top of System.CommandLine to minimize the boiler plate needed to get started. Just add a [Command] attribute to a function to get started!</Description>
<PackageProjectUrl></PackageProjectUrl>
<PackageReadmeFile>README.md</PackageReadmeFile>
<RepositoryUrl>https://github.com/dotnetKyle/MinimalCommandLine</RepositoryUrl>
<PackageTags>Command; Line</PackageTags>
<PackageReleaseNotes>Added missing support for the Root Command.</PackageReleaseNotes>
<PackageTags>Command; Line; System.CommandLine; Minimal; Source Generator; Minimal CLI; CLI</PackageTags>
<PackageReleaseNotes>Added a source generator to quickly rig up commands with minimal effort.</PackageReleaseNotes>
<DebugType>embedded</DebugType>

<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
<CompilerGeneratedFilesOutputPath>obj\Generated</CompilerGeneratedFilesOutputPath>
<IsRoslynComponent>true</IsRoslynComponent>
</PropertyGroup>

<ItemGroup>
Expand All @@ -29,12 +24,12 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.1" />
<PackageReference Include="System.CommandLine" Version="2.0.0-rc.1.25451.107" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.12.0" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.11.0" PrivateAssets="all">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<ProjectReference Include="..\System.CommandLine.Minimal.Core\System.CommandLine.Minimal.Core.csproj" />
<ProjectReference Include="..\System.CommandLine.Minimal.SourceGenerator\System.CommandLine.Minimal.SourceGenerator.csproj">
<PrivateAssets>all</PrivateAssets>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
<OutputItemType>Analyzer</OutputItemType>
</ProjectReference>
</ItemGroup>

</Project>