Bug 279039 - lang/dotnet: error MSB4044: The "GetAssemblyVersion" task was not given a value for the required parameter "NuGetVersion".
Summary: lang/dotnet: error MSB4044: The "GetAssemblyVersion" task was not given a val...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Gleb Popov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-16 15:47 UTC by Martin Filla
Modified: 2024-11-14 03:16 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (arrowd)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Filla 2024-05-16 15:47:02 UTC
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>
Comment 1 Martin Filla 2024-10-18 08:38:00 UTC
I Fixed this issue
Comment 2 HollieRNavarro 2024-11-14 03:16:56 UTC
The reported bugs required a value for the NuGetVersion parameter, which caused compilation errors, especially when trying to compile PowerShell. Users are encouraged to provide this value to resolve the issue.
https://cgit.freebsd.org/src/tree/sys/dev/virtio/virtqueue.c?h=releng/13.0#n605
https://geometrydashdeadlocked.com 

Additionally, the report notes that the issue has been fixed, which is great news for developers facing similar challenges.