AIGuiders.DotnetTools.PublishFixedTarget 0.1.2

dotnet tool install --global AIGuiders.DotnetTools.PublishFixedTarget --version 0.1.2
                    
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 AIGuiders.DotnetTools.PublishFixedTarget --version 0.1.2
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=AIGuiders.DotnetTools.PublishFixedTarget&version=0.1.2
                    
nuke :add-package AIGuiders.DotnetTools.PublishFixedTarget --version 0.1.2
                    

aid-publish

aid-publish is a .NET tool that wraps dotnet publish with two pragmatic features:

  • Mirrors the publish output into a fixed target directory (no-spaces friendly) so you can reliably point MCP configs or shortcuts to a stable path.
  • Optionally kills the running app only if it is running from that target path (prevents file-lock publish failures).

Install (local tool)

From a repo root:

dotnet tool install AIGuiders.DotnetTools.PublishFixedTarget

Usage

dotnet aid-publish -Project path/to/app.csproj -Target D:\my-app-debug -Runtime win-x64 -Configuration Debug -SelfContained -KillRunning

Show help:

dotnet aid-publish -Help

Options (high level)

  • -Project: .csproj to publish (required)
  • -Target: target directory to mirror into (required)
  • -Runtime: RID (default win-x64)
  • -Configuration: Debug or Release (default Debug)
  • -SelfContained: publish self-contained
  • -OutDir: publish output directory (default: publish-{configuration})
  • -AppExeName: executable/process name if it differs from project file name
  • -KillRunning: kill the app if it is running from the target path
  • -MsbuildProp: repeatable /p:Name=Value
  • -DotnetArg: repeatable extra args appended to dotnet publish
  • -RequireMirrorFile: repeatable relative path — after mirroring must exist as file under Target. Example for RoslynMcp (Microsoft.CodeAnalysis.Workspaces.MSBuild): BuildHost-netcore/Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.dll — catches incomplete publish output before MCP fails at runtime.
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.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
0.1.2 98 5/9/2026
0.1.1 102 5/8/2026