Open praeclarum opened 4 years ago
We are also seeing this, however we are compiling against windows, on windows:
[Step 9/12] 29:11>C:\Program Files\dotnet\sdk\5.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.TargetFrameworkInference.targets(54,5): error MSB4186: Invalid static method invocation syntax: "[MSBuild]::GetTargetFrameworkIdentifier('$(TargetFramework)')". Method '[MSBuild]::GetTargetFrameworkIdentifier' not found. Static method invocation should be of the form: $([FullTypeName]::Method()), e.g. $([System.IO.Path]::Combine(`a`, `b`)). [C:\BuildAgent\work\40be139df87d45a2\DAMCenter\Messaging\Digizuite.Messaging.Shared\Digizuite.Messaging.Shared.csproj]
And the strange thing is, it seems to only happen on one of our build machines, not all of them.
Saw a similar issue when upgrading my C# to JS compiler: https://github.com/dotnet/msbuild/issues/5875
Had the same issue local on my mac. After updating VS2019 to the latest version the error was gone
Has anyone seen this recently? It sounds like a Visual Studio for Mac update may have helped.
I get the following error from Visual Studio for Mac when restoring packages after installing .NET5 RC2.
This project is a Xamarin.iOS app that uses
<PackageReference>
for nuget.