[Bug 279039] lang/dotnet: error MSB4044: The "GetAssemblyVersion" task was not given a value for the required parameter "NuGetVersion".

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 16 May 2024 15:47:02 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279039

            Bug ID: 279039
           Summary: lang/dotnet: error MSB4044: The "GetAssemblyVersion"
                    task was not given a value for the required parameter
                    "NuGetVersion".
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: arrowd@FreeBSD.org
          Reporter: freebsd@sysctl.cz
             Flags: maintainer-feedback?(arrowd@FreeBSD.org)
          Assignee: arrowd@FreeBSD.org

hi,
i tried to build Powershell but i have a problem with SDK dotnet. How to fix ? 

/usr/local/dotnet/sdk/8.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.GenerateAssemblyInfo.targets(226,5):
error MSB4044: The "GetAssemblyVersion" task was not given a value for the
required parameter "NuGetVersion".
[/usr/ports/shells/powershell/work/PowerShell-7.4.2/src/System.Management.Automation/System.Management.Automation.csproj]


<!--
    ==================================================================
                                            GetAssemblyVersion

    Parses the nuget package version set in $(Version) and returns
    the implied $(AssemblyVersion) and $(FileVersion).

    e.g.:
        <Version>1.2.3-beta.4</Version>

    implies:
        <AssemblyVersion>1.2.3</AssemblyVersion>
        <FileVersion>1.2.3</FileVersion>

    Note that if $(AssemblyVersion) or $(FileVersion) are are already set, it
    is considered an override of the default inference from $(Version) and they
    are left unchanged by this target.
    ==================================================================
  -->
  <Target Name="GetAssemblyVersion">
    <GetAssemblyVersion Condition="'$(AssemblyVersion)' == ''"
NuGetVersion="$(Version)">
      <Output TaskParameter="AssemblyVersion" PropertyName="AssemblyVersion" />
    </GetAssemblyVersion>

    <PropertyGroup>
      <FileVersion Condition="'$(FileVersion)' ==
''">$(AssemblyVersion)</FileVersion>
      <InformationalVersion Condition="'$(InformationalVersion)' ==
''">$(Version)</InformationalVersion>
    </PropertyGroup>
  </Target>

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