Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 May 2024 15:47:02 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 279039] lang/dotnet: error MSB4044: The "GetAssemblyVersion" task was not given a value for the required parameter "NuGetVersion".
Message-ID:  <bug-279039-7788@https.bugs.freebsd.org/bugzilla/>

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

            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 fi=
x ?=20

/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.A=
utomation/System.Management.Automation.csproj]


<!--
    =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
                                            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.
    =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
  -->
  <Target Name=3D"GetAssemblyVersion">
    <GetAssemblyVersion Condition=3D"'$(AssemblyVersion)' =3D=3D ''"
NuGetVersion=3D"$(Version)">
      <Output TaskParameter=3D"AssemblyVersion" PropertyName=3D"AssemblyVer=
sion" />
    </GetAssemblyVersion>

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

--=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-279039-7788>