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.
For the following fsproj file:
Running the following command:
The nugetize command however succeeds.