-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Comments
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. BR. |
Any news on this? Right now its preventing us from deploying our iOS app. BR. |
@Pmr-precure I understand your concern. We're still looking into this—please allow us some more time, and we'll get back to you with updates. |
Hi @Pmr-precure
|
Hi, I tried with the conditional, but it seems to just skip that in the process, throwing the same error. ##[error]The nuget command failed with exit code(1) and error(/Users/runner/work/1/s/MLI_App/MLI_App.csproj(20,3): error MSB4185: The function "UtcNow" on type "System.DateTimeOffset" is not available for execution as an MSBuild property function. This is how i have it, and it has never been an issue before. Only now when we have to use a private nuget package. and needs to do the restore step. BR |
I tried to remove the Datetime, and just put "123", And it still throws an error, now this: ##[error]The nuget command failed with exit code(1) and error(/var/folders/ps/c0906c6x6pnghyl4jw54srz00000gn/T/NuGetScratchrunner/j9iljr3h.48u.nugetrestore.targets(206,5): error MSB4018: The "WriteRestoreGraphTask" task failed unexpectedly. [/var/folders/ps/c0906c6x6pnghyl4jw54srz00000gn/T/NuGetScratchrunner/uunbtdyt.bq2.nugetinputs.targets] |
|
The project is private. But creating a MAUI project -> add a private nuget package in azure artifacts -> restore it. |
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.
inputs:
versionSpec:
checkLatest: true
inputs:
command: 'restore'
restoreSolution: '**/*.sln'
feedsToUse: 'select'
vstsFeed: '72c0baca-4087-8-1c4611d2717c'
Platforms affected
Runner images affected
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
The text was updated successfully, but these errors were encountered: