You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
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: