Description
Get the error message when running dotnet pack with .NET Core 2.1.500:
/Users/dbrattli/Developer/GitHub/classlib/.paket/Paket.Restore.targets(226,5): error : The provided SymbolPackageFormat value is invalid. Allowed values : 'snupkg', 'symbols.nupkg'. [/Users/dbrattli/Developer/GitHub/classlib/classlib.csproj]
I have no idea is this is an issue is related to dotnet and/or paket. Tested on Mac OS X 14.4.1, and Windows 10, and get the same error on three different machines and installations.
Repro steps
-
Install .NET Core 2.1.500, https://www.microsoft.com/net/download
-
dotnet new classlib -o myproject
-
Add paket to new project and initialize. Add a nuget to dependencies so project file classlib.csproj imports Paket.Restore.targets`:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>
<Import Project=".paket\Paket.Restore.targets" />
</Project>
-
dotnet restore
-
dotnet build
-
dotnet pack
Expected behavior
Expected behavior is that dotnet pack completes without error. This used to work in earlier versions of dotnet.
Actual behavior
➜ classlib dotnet pack
Microsoft (R) Build Engine version 15.9.20+g88f5fadfbe for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
shasum: /Users/dbrattli/Developer/GitHub/classlib/.paket/../paket-files/paket.restore.cached:
Paket version 5.188.1
Starting full restore process.
Performance:
- Disk IO: 17 milliseconds
- Runtime: 2 seconds
Restoring packages for /Users/dbrattli/Developer/GitHub/classlib/classlib.csproj...
Restore completed in 178.88 ms for /Users/dbrattli/Developer/GitHub/classlib/classlib.csproj.
Paket version 5.188.1
The last restore is still up to date. Nothing left to do.
Performance:
- Runtime: 60 milliseconds
classlib -> /Users/dbrattli/Developer/GitHub/classlib/bin/Debug/netstandard2.0/classlib.dll
Paket version 5.188.1
Performance:
- Runtime: 644 milliseconds
/Users/dbrattli/Developer/GitHub/classlib/.paket/Paket.Restore.targets(226,5): error : The provided SymbolPackageFormat value is invalid. Allowed values : 'snupkg', 'symbols.nupkg'. [/Users/dbrattli/Developer/GitHub/classlib/classlib.csproj]
Known workarounds
Don't know any workarounds. Downgrading dotnet might work.
Description
Get the error message when running
dotnet packwith .NET Core 2.1.500:I have no idea is this is an issue is related to dotnet and/or paket. Tested on Mac OS X 14.4.1, and Windows 10, and get the same error on three different machines and installations.
Repro steps
Install .NET Core 2.1.500, https://www.microsoft.com/net/download
dotnet new classlib -o myproject
Add paket to new project and initialize. Add a nuget to dependencies so project file
classlib.csprojimports Paket.Restore.targets`:dotnet restoredotnet builddotnet packExpected behavior
Expected behavior is that
dotnet packcompletes without error. This used to work in earlier versions of dotnet.Actual behavior
Known workarounds
Don't know any workarounds. Downgrading dotnet might work.