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: 6 additions & 6 deletions .github/workflows/cd-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
build:
runs-on: windows-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
Expand All @@ -18,22 +18,22 @@ jobs:
dotnet-version: 8.0.x

- name: Restore dependencies
run: dotnet restore src\System.CommandLine.Minimal\System.CommandLine.Minimal.csproj
run: dotnet restore src/System.CommandLine.Minimal/System.CommandLine.Minimal.csproj

- name: Build Minimal CommandLine
run: dotnet build src\System.CommandLine.Minimal\System.CommandLine.Minimal.csproj -c Release --no-restore
run: dotnet build src/System.CommandLine.Minimal/System.CommandLine.Minimal.csproj -c Release --no-restore

# packs all nuget packages at once
- name: Pack MinimalCommandLine Nuget Alpha
run: .\nuget.exe pack src\System.CommandLine.Minimal\MinimalCommandLine.nuspec -Version 0.5.0.${{github.run_number}}-alpha -OutputDirectory packages -Properties Configuration=Release
run: dotnet pack src/System.CommandLine.Minimal/System.CommandLine.Minimal.csproj -p:PackageVersion=0.5.0.${{github.run_number}}-alpha -o ./packages
- name: Pack MinimalCommandLine Nuget
run: .\nuget.exe pack src\System.CommandLine.Minimal\MinimalCommandLine.nuspec -Version 0.5.0.${{github.run_number}} -OutputDirectory packages -Properties Configuration=Release
run: dotnet pack src/System.CommandLine.Minimal/System.CommandLine.Minimal.csproj -p:PackageVersion=0.5.0.${{github.run_number}} -o ./packages

- name: Publish MinimalCommandLine Artifacts
uses: actions/upload-artifact@v4
with:
name: Nugets
path: packages\*.nupkg
path: packages/*.nupkg

integration:
needs: build
Expand Down
2 changes: 1 addition & 1 deletion src/DemoApp/DemoApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</ItemGroup>-->

<ItemGroup>
<ProjectReference Include="..\System.CommandLine.Minimal\System.CommandLine.Minimal.csproj" />
<ProjectReference Include="..\System.CommandLine.Minimal.Core\System.CommandLine.Minimal.Core.csproj" />
<ProjectReference Include="..\System.CommandLine.Minimal.SourceGenerator\System.CommandLine.Minimal.SourceGenerator.csproj">
<OutputItemType>Analyzer</OutputItemType>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
Expand Down
2 changes: 1 addition & 1 deletion src/HelloWorld/HelloWorld.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</ItemGroup>-->

<ItemGroup>
<ProjectReference Include="..\System.CommandLine.Minimal\System.CommandLine.Minimal.csproj" />
<ProjectReference Include="..\System.CommandLine.Minimal.Core\System.CommandLine.Minimal.Core.csproj" />
<ProjectReference Include="..\System.CommandLine.Minimal.SourceGenerator\System.CommandLine.Minimal.SourceGenerator.csproj">
<OutputItemType>Analyzer</OutputItemType>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
Expand Down
22 changes: 0 additions & 22 deletions src/System.CommandLine.Minimal/MinimalCommandLine.nuspec

This file was deleted.

26 changes: 13 additions & 13 deletions src/System.CommandLine.Minimal/System.CommandLine.Minimal.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
<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>
<!--<IsRoslynComponent>true</IsRoslynComponent>-->
<!--<IncludeBuildOutput>false</IncludeBuildOutput>-->
<IncludeBuildOutput>false</IncludeBuildOutput>
</PropertyGroup>

<ItemGroup>
Expand All @@ -26,19 +25,20 @@
</ItemGroup>

<ItemGroup>
<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>
<OutputItemType>Analyzer</OutputItemType>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</ProjectReference>
</ItemGroup>
<!-- Runtime library -->
<Content Include="..\System.CommandLine.Minimal.Core\bin\$(Configuration)\netstandard2.0\System.CommandLine.Minimal.Core.dll"
Pack="true"
PackagePath="lib/netstandard2.0/" />

<!--<ItemGroup>
<None Include="..\System.CommandLine.Minimal.Core\bin\$(Configuration)\netstandard2.0\System.CommandLine.Minimal.Core.dll" Pack="true" PackagePath="lib/netstandard2.0/" />
</ItemGroup>-->
<!-- Source generator library -->
<Content Include="..\System.CommandLine.Minimal.SourceGenerator\bin\$(Configuration)\netstandard2.0\System.CommandLine.Minimal.SourceGenerator.dll"
Pack="true"
PackagePath="analyzers/dotnet/cs/" />
</ItemGroup>

<ItemGroup>
<None Include="..\System.CommandLine.Minimal.SourceGenerator\bin\$(Configuration)\netstandard2.0\System.CommandLine.Minimal.SourceGenerator.dll" Pack="true" PackagePath="analyzers/dotnet/cs/" />
<!-- Runtime library nuget dependencies -->
<PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.1" />
<PackageReference Include="System.CommandLine" Version="2.0.0-rc.1.25451.107" />
</ItemGroup>
</Project>