Skip to content

F# projects are not supported #191

@tastyeggs

Description

@tastyeggs

For the following fsproj file:

<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFrameworks>net6.0;netstandard2.0</TargetFrameworks>
    <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
  </PropertyGroup>

  <PropertyGroup Condition="'$(Configuration)'=='Release'">
        <Version>1.0.0</Version>
    <GeneratePackageOnBuild>true</GeneratePackageOnBuild>
    <IsPackable>True</IsPackable>
  </PropertyGroup>

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

  <ItemGroup>
    <PackageReference Include="NuGetizer" Version="0.8.0" />
  </ItemGroup>
</Project>

Running the following command:

PS ...\LibLangFsharp\src> dotnet build -c Release
Microsoft (R) Build Engine version 17.2.0+41abc5629 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.

  Determining projects to restore...
  All projects are up-to-date for restore.
C:\Program Files\dotnet\sdk\6.0.301\FSharp\Microsoft.FSharp.NetSdk.targets(60,77): error MSB4057: The target "_GetFrameworkAssemblyReferences" does not exist in the project. [...\LibLangFsharp\src\LibLangFsharp.fsproj]
C:\Program Files\dotnet\sdk\6.0.301\FSharp\Microsoft.FSharp.NetSdk.targets(60,77): error MSB4057: The target "_GetFrameworkAssemblyReferences" does not exist in the project. [...\LibLangFsharp\src\LibLangFsharp.fsproj]

Build FAILED.

The nugetize command however succeeds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions