Skip to content

Instantly share code, notes, and snippets.

@rpbeukes
Created August 5, 2022 02:22
Show Gist options
  • Save rpbeukes/6b327fa2896b53ee885069d0e87dd7c9 to your computer and use it in GitHub Desktop.
Save rpbeukes/6b327fa2896b53ee885069d0e87dd7c9 to your computer and use it in GitHub Desktop.
Visual Studio Publish to local NuGet directory with a file suffix of local datetime.
<?xml version="1.0" encoding="utf-8"?>
<Project>
<PropertyGroup>
<Configuration>Debug</Configuration>
<Platform>Any CPU</Platform>
<PublishDir>..\..\..\..\NuGetLocal</PublishDir>
<PublishProtocol>FileSystem</PublishProtocol>
<TargetFramework>netstandard2.1</TargetFramework>
<VersionSuffix>$([System.DateTime]::Now.ToString("yyyyMMddHHmmss"))</VersionSuffix>
</PropertyGroup>
</Project>
@rpbeukes
Copy link
Author

rpbeukes commented Aug 5, 2022

Example output:
My.Awesome.Package.1.0.0-20220602153932.nupkg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment