Other lang/dotnet missing packages.

Installed lang/dotnet from package.
Trying to compile a F# file and create an executable i get the error:
dotnet publish
Code:
MSBuild version 17.8.3+195e7f5a3 for .NET
  Determining projects to restore...
/mnt/xxx_source/Languages_ok/fsharptut/01_exe/fsharp_test.fsproj : error NU1102: Unable to find package Microsoft.NETCore.App.Crossgen2.freebsd-x64 with version (= 8.0.0)
/mnt/xxx_source/Languages_ok/fsharptut/01_exe/fsharp_test.fsproj : error NU1102:   - Found 1 version(s) in Package source 1 [ Nearest version: 7.0.15 ]
/mnt/xxx_source/Languages_ok/fsharptut/01_exe/fsharp_test.fsproj : error NU1102:   - Found 0 version(s) in /usr/local/dotnet/sdk/8.0.100/FSharp/library-packs
/mnt/xxx_source/Languages_ok/fsharptut/01_exe/fsharp_test.fsproj : error NU1102:   - Found 0 version(s) in nuget.org

My fsproj file:
Code:
<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <PublishReadyToRun>true</PublishReadyToRun>
    <SelfContained>true</SelfContained>
    <PublishSingleFile>true</PublishSingleFile>
    <PublishTrimmed>true</PublishTrimmed>
    <IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
    <OutputType>Exe</OutputType>
    <TrimMode>partial</TrimMode>
    <TargetFramework>net8.0</TargetFramework>
    <InvariantGlobalization>true</InvariantGlobalization>
  </PropertyGroup>

  <ItemGroup>
    <Compile Include="Program.fs" />
  </ItemGroup>

  <ItemGroup>
    <PackageReference Include="FSharp.Data" Version="6.3.0" />
  </ItemGroup>

</Project>
 
Back
Top