IntelliTect.EssentialCSharp.ListingManager 2.1.0

dotnet tool install --global IntelliTect.EssentialCSharp.ListingManager --version 2.1.0                
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local IntelliTect.EssentialCSharp.ListingManager --version 2.1.0                
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=IntelliTect.EssentialCSharp.ListingManager&version=2.1.0                
nuke :add-package IntelliTect.EssentialCSharp.ListingManager --version 2.1.0                

EssentialCSharp.ListingManager NuGet

Tool used to expose useful functionality to IntelliTect/EssentialCSharp collaborators

Installation

Run dotnet tool install IntelliTect.EssentialCSharp.ListingManager -g. This will install the Nupkg as a dotnet global tool.

Update

Run dotnet tool update -g IntelliTect.EssentialCSharp.ListingManager. This will update the Nupkg for use globally.

Usage

Any command can be run with these optional parameters.

  • verbose → provides more detail into what the command is doing

ListingUpdating can be run with the following additional optional parameters.

  • preview → leave files in place but still print actions that would take place to console
  • by-folder → changes a listing's chapter based on the chapter number in the chapter's path
  • chapter-only → changes only the chapter of the listing, leaving the listing number unchanged. Use with byfolder

Run ListingManager from the command line.

For available commands run ListingManager -h. This will display all the commands available to you.

To update Listings at a path provide the Chapter's path and specify the ListingUpdating mode. ListingManager --path "user/EssentialCSharp/src/Chapter03/" --mode ListingUpdating or ListingManager --path "user/EssentialCSharp/src/Chapter03/" NOTE: It is highly recommended that you commit and push your changes before running this command. Additionally you should run this command with --preview and --verbose specified to ensure there are no adverse affects. Once you are confident that the proposed changes are what you want, you can run the command without the --preview modifier.

To find potentially mismatched listings in a chapter run, ListingManager --path "user/EssentialCSharp/src/Chapter03/" --mode ScanForMismatchedListings. Potentially mismatched listings will be printed to the console.

To run all chapters in powershell from ListingManager directory,

Get-ChildItem -Path 'insert.srcPathNameHere' -Directory | Where-Object {
!$_.name.EndsWith("Tests")
} | ForEach-Object {
listingmanager --path $_.FullName --preview --verbose
} 

Pushing new versions

The easiest and best way is to create a new release with a tag number and version number that are identical in the format of vx.x.x and a nuget release will be created and uploaded with that same number.

If you want the more difficult method: To push a new version from the command line you must first pack the changes as a nupkg by running dotnet pack at the solution level. If the pack is successfully navigate to the directory where the nupkg was created. Run dotnet nuget push IntelliTect.EssentialCSharp.<version>.nupkg -k <ApiKey> -s https://api.nuget.org/v3/index.json. For more detailed instructions and to get an API key visit. https://docs.microsoft.com/en-us/nuget/nuget-org/publish-a-package and scroll down to the "Create API Keys" section. Replace <version> with the proper version number. In other words, provide the full name of the newly generated nupkg. NOTE: The version must be higher than the version present on nuget. To change this modify the <version> tag in ListingManager/ListingManager.csproj

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
2.1.0 312 11/30/2023
2.0.0 213 11/16/2023
1.2.0 257 10/17/2023
1.1.3 338 12/5/2022
1.1.2 330 10/31/2022
1.1.1 411 10/19/2022
1.1.0 424 10/18/2022
1.0.0 430 10/3/2022 1.0.0 is deprecated.
0.1.5 753 4/28/2020 0.1.5 is deprecated.
0.1.4 718 3/9/2020 0.1.4 is deprecated.
0.1.3 733 9/30/2019 0.1.3 is deprecated.
0.1.2 736 9/27/2019 0.1.2 is deprecated.
0.1.1 766 9/27/2019 0.1.1 is deprecated.
0.1.0 738 9/27/2019 0.1.0 is deprecated.