pragmatrix / tnt

Command line tool for organizing translation strings extracted from .NET assemblies. Supports Excel, XLIFF roundtrips and machine translations.
MIT License
30 stars 2 forks source link

Dotnet pack fails with dotnet version 3.1.401 (Visual Studio 16.7) #93

Open pragmatrix opened 4 years ago

pragmatrix commented 4 years ago
> dotnet pack

Fails with

error MSB4181: The "PackTask" task returned false but did not log an error.

This error is probably related to paket: https://github.com/fsprojects/Paket/issues/3897

Workaround: Install dotnet 3.1.302 from https://dotnet.microsoft.com/download/dotnet-core/3.1 and create a file named global.json in the tnt directory with the following contents:

{
    "sdk": {
        "version": "3.1.302"
    }
}

Ref: https://docs.microsoft.com/en-us/dotnet/core/versions/selection