Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nuget restore macOS14-15 #11464

Open
3 of 16 tasks
Pmr-precure opened this issue Jan 24, 2025 · 2 comments
Open
3 of 16 tasks

Nuget restore macOS14-15 #11464

Pmr-precure opened this issue Jan 24, 2025 · 2 comments

Comments

@Pmr-precure
Copy link

Description

No idea if this is a bug or just me being stupid. Im trying to add a Private nuget package to my MAUI project. But when adding it with NugetCommand and trying to restore it. it gives following error:

error MSB4185: The function "Now" on type "System.DateTimeOffset" is not available for execution as an MSBuild property function.

I use the DatetimeOffset to set the build version. And it has never been an issue before, only now when i try to "restore".

I see when its running the nuget restore command it autodetects MSBuild version 15, that might be the issue? Not sure.

  • task: NuGetToolInstaller@1
    inputs:
    versionSpec:
    checkLatest: true
    • task: NuGetCommand@2
      inputs:
      command: 'restore'
      restoreSolution: '**/*.sln'
      feedsToUse: 'select'
      vstsFeed: '72c0baca-4087-8-1c4611d2717c'

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 20.04
  • Ubuntu 22.04
  • Ubuntu 24.04
  • macOS 12
  • macOS 13
  • macOS 13 Arm64
  • macOS 14
  • macOS 14 Arm64
  • macOS 15
  • macOS 15 Arm64
  • Windows Server 2019
  • Windows Server 2022
  • Windows Server 2025

Image version and build link

20250106.587

Is it regression?

No

Expected behavior

Not failing to restore.

Actual behavior

Throws error.

Repro steps

Run nuget restore

@susmitamane
Copy link
Contributor

Hi @Pmr-precure

We will investigate the issue and keep you posted on further updates.

Thank you.

@Pmr-precure
Copy link
Author

Hi @Pmr-precure

We will investigate the issue and keep you posted on further updates.

Thank you.

Thank you, it works just fine on windows-2022 when building our Android app.
Here i also see it uses "MSBuild auto-detection: using msbuild version '17.12.12.57101'" and not 15.

BR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants