Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 May 2024 04:01:16 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 279049] lang/dotnet cannot create executable.
Message-ID:  <bug-279049-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D279049

            Bug ID: 279049
           Summary: lang/dotnet cannot create executable.
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: arrowd@FreeBSD.org
          Reporter: devosalain@ymail.com
          Assignee: arrowd@FreeBSD.org
             Flags: maintainer-feedback?(arrowd@FreeBSD.org)

Installed lang/dotnet from package.
Trying to compile a F# file and create an executable i get the error:
dotnet publish
Code:=20
```
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 (=3D 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.1=
5 ]
/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:
```
<Project Sdk=3D"Microsoft.NET.Sdk">

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

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

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

</Project>
```

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-279049-7788>