RenamePhotos 1.0.7
.NET 6.0
dotnet tool install --global RenamePhotos --version 1.0.7
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 RenamePhotos --version 1.0.7
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=RenamePhotos&version=1.0.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package RenamePhotos --version 1.0.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Rename photos
From this: DSC106.jpg
To: 20200312_2345.jpg
Dotnet tool for renaming photos in date taken metadata style. Works with .net5.0.
Install
dotnet tool install renamephotos -g
Usage
Use RenamePhotos
command in folder with .jpg
pictures. It will rename them all.
How to create and publish NuGet package
This is mostly selfnote for me. When I will be buildingcreating next nuget package I know I will look at here ¯\(ツ)/¯ .
Create nuget package
- change the package vesion inside
.csproj
:<PackageVersion>1.0.6</PackageVersion>
- instal nuget with choco:
choco install nuget.commandline
- publish project
dotnet publish -c release
- this will generate package, because there is
<PackageOutputPath>./nupkg</PackageOutputPath>
and<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
that will ensure package will be created innupkg
folder. In that case.nuspec
is not needed here.
- this will generate package, because there is
Publish
(easy way) Login to nuget.org and drag the package in there, or:
generate api key on nuget.org
store the api key:
nuget setApiKey iamthesecretkey
push the package:
nuget push .\nupkg\RenamePhotos.1.0.6.nupkg -Source https://api.nuget.org/v3/index.json
More info here
Properties for
.nuspec
file and their alternatives in.csproj
.
Product | Versions |
---|---|
.NET | net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows |
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.