Closed atifaziz closed 5 years ago
Per NuGet/Home#6630, seems like the language for NU1212 is being clarified:
The requested package does not have the expected DotnetTool type and can't be used where that type is expected. For example, this package can't be used with "dotnet install tool -g"
Per dotnet/cli#9464, it appears that the only solution is to publish two separate packages as each package requires a distinct type. For the global tool version, a name other than T5.TextTransform.Tool will be needed, and ugly as it seems, I'm currently thinking T5.TextTransform.DotNetTool. 🤔 @0xced Do you have another suggestion?
How about dotnet-tt
for the new global tool package? I saw @nil4 used dotnet-xdt for his Xml Document Transformation global tool.
dotnet-t4-project-tool is just so much better.
Closing in agreement with @Konard.
T5.TextTransform.Tool is currently available for .NET Core as
dotnet-tt
using the CLI tools extensibility model. .NET Core 2.1 introduces .NET Core Global Tools but which seems incompatible. Runningdotnet tool install -g T5.TextTransform.Tool
ends up in the following error:Consider making T5.TextTransform.Tool available as a .NET Core Global Tool (so it can be run like
dotnet tt
) without compromising the existing ability to use on .NET Core 2.0, especially as a per-project tool via<DotNetCliToolReference>
.