-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Build error GenerateDepFiles .NET 3.0.100-preview3-010431 [OSX] #2460
Comments
Since you can build outside of VS for Mac using the CLI, I'm suspicious that it may be something on the VS for Mac side. Adding a few folks @livarcocc @sayedihashimi @mhutch ? |
On a simple
But if I open the .csproj file in Visual Studio preview, I get build errors like OP. |
/cc @mrward |
.NET Core 3 preview 3 is not supported with Mono's MSBuild currently. .NET Core 3 preview 2 should be OK. Mono's MSBuild is currently using NuGet v4 which does not support .NET Core 3 preview 3. NuGet v5 is needed. |
Seems to be answered above. Closing. |
So what is the solution here? |
I guess there is no solution. Only wait for the next MSBuild update and uninstall preview 3 till then if you need to compile. |
Thank you, just asking for would be travellers falling onto this Github issue. This issue should probably not be closed as it's not really fixed? |
@sergiotapia please follow up with @mrward where to file the issue fo VS for Mac. |
The issue is already filed on the Visual Studio for Mac's Developer Community - can you follow that to get updates? There should be a Follow button on the page. |
We're having a problem with a build suddenly failing[1], and the only thing that could have changed recently is the .NET Core version. There's a similar issue filed here[2] whose error is almost the same as ours: [3] [1] https://gitlab.com/DiginexGlobal/geewallet/pipelines/55116937 [2] dotnet/core#2460 [3] Error MSB4018: The "GenerateDepsFile" task failed unexpectedly. [/builds/DiginexGlobal/geewallet/src/GWallet.Backend.NetStandard/GWallet.Backend.NetStandard.fsproj] /usr/share/dotnet/sdk/2.1.602/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(129,5): error MSB4018: System.TypeLoadException: Could not load type of field 'Microsoft.NET.Build.Tasks.DependencyContextBuilder:_filteredPackages' (12) due to: Could not resolve type with token 01000025 from typeref (expected class 'NuGet.Packaging.Core.PackageIdentity' in assembly 'NuGet.Packaging, Version=5.0.0.6, Culture=neutral, PublicKeyToken=31bf3856ad364e35') assembly:NuGet.Packaging, Version=5.0.0.6, Culture=neutral, PublicKeyToken=31bf3856ad364e35 type:NuGet.Packaging.Core.PackageIdentity member:(null)
The title of the issue should be tweaked, because it doesn't affect just .NET Core 3 anymore. I just reproduced it when my CI build pulled dotnet 2.1.602-1 (instead of 2.1.505-1 which was working fine yesterday). In my case the error is:
I thought 2.1 was considered stable? Or is that 2.0? I'm confused. |
same here with dotnet 2.1.602-1 |
Same here with current dotnet 2.2.202 on MacOS Mojave 10.14.4 with Mono 5.18.1.3 |
my theory: |
nothing worked on my system after the .net core - update last night |
@lytico the issue was closed because I thought the problem was answered - the scenario was unsupported. Nobody pushed back. |
@karelz yes, i see, you closed the issue before the problems raised with .dotnetcore 2.1 and 2.2 too. but its a really showstopper: if you build projects with mono and install dotnetcore 2.1.602 then you can't build projects any more cause of this error |
I am using Ubuntu 18.04 and Jet Brains Rider. |
Same Issue on ubuntu 18.04, dotnet core version 2.3.203 |
@karelz This is a really confusing error. I finally figured out the workaround for now:
It's also not obvious how to get from anywhere on https://dotnet.microsoft.com/download/dotnet-core/2.2 to the information needed to construct the terminal command above. |
@jnm2 do you have suggestion what to change where? (in code or in docs?) |
This notification is good, but you could also mention MonoDevelop on Linux which has the exact same issue as VS for Mac: Then when you click the link, it takes you here: But the page at the Linux Package Manager Instructions: x64 doesn't actually explain how to get 2.2.107 which was the reason we followed these links in the first place. It could say something to the effect of:
|
@leecow that sounds like reasonable request - can you please help make it happen? |
Yes, I'll get with @rowanmiller to talk through how we might do cover this scenario. |
@leecow @rowanmiller did it happen? |
Sorry, no. Scheduling some time with Rowan now. |
Build error GenerateDepFiles .NET 3.0.100-preview3-010431 [OSX]
IDE:
Visual Studio for Mac 2019 (Preview 8.0 build 2624)
PKGS:
com.microsoft.dotnet.hostfxr.3.0.0-preview3-27503-5.component.osx.x64
com.microsoft.dotnet.sharedframework.Microsoft.NETCore.App.3.0.0-preview3-27503-5.component.osx.x64
Project:
netstandard 2.0 library
After install preview3, I'm unable to build any of my netstandard projects. All of them fails with following error:
For now, I tried to fix this error by removing all existing dotnet sdk versions by running this script. After that, I performed a reboot and reinstall preview3, same error.
The dotnet cli can build my projects with dotnet build, no errors, all fine.
The text was updated successfully, but these errors were encountered: