dotnet / fsharp

The F# compiler, F# core library, F# language service, and F# tooling integration for Visual Studio
https://dotnet.microsoft.com/languages/fsharp
MIT License
3.82k stars 772 forks source link

Clean - build -pack fails #17312

Closed KevinRansom closed 1 week ago

KevinRansom commented 2 weeks ago

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)