A clean follow by the command build -pack it fails because the nuspec is hard coded to release builds. I am astonished I haven't seen this before, it has been like it for more than a few years.
build -pack
fails
C:\kevinransom\fsharp\.dotnet\sdk\9.0.100-preview.3.24204.13\Sdks\NuGet.Build.Tasks.Pack\build\NuGet.Build.Tasks.Pack.t
argets(221,5): error : Could not find a part of the path 'C:\kevinransom\fsharp\artifacts\bin\fsc\Release\net8.0'. [C:\
kevinransom\fsharp\src\Microsoft.FSharp.Compiler\Microsoft.FSharp.Compiler.fsproj]
Build FAILED.
C:\kevinransom\fsharp\.dotnet\sdk\9.0.100-preview.3.24204.13\Sdks\NuGet.Build.Tasks.Pack\build\NuGet.Build.Tasks.Pack.t
argets(221,5): error : Could not find a part of the path 'C:\kevinransom\fsharp\artifacts\bin\fsc\Release\net8.0'. [C:\
kevinransom\fsharp\src\Microsoft.FSharp.Compiler\Microsoft.FSharp.Compiler.fsproj]
0 Warning(s)
1 Error(s)
A clean follow by the command build -pack it fails because the nuspec is hard coded to release builds. I am astonished I haven't seen this before, it has been like it for more than a few years.
build -pack fails