Open poggersplayzyt opened 4 years ago
Unfortunately this is a mismatch between the NuGet dlls that ship with MSBuild in Mono and those in the .NET Core SDK. If you update to Mono 6.13 I believe this will work - https://github.com/mono/mono
NuGet 5.7 (which is used by the .NET Core SDK 3.1.401) introduced a breaking change. Mono 6.10 and 6.12 still ship an older NuGet 5.6 version with MSBuild which is not compatible.
In VS Mac we worked around this by copying the NuGet.Build.Tasks.dll version 5.7 to the MonoDevelop MSBuilder directory.
Where can I find Mono 6.13? I tried to find where I can get Mono 6.13 but I could not find it.
There are CI builds available from GitHub https://github.com/mono/mono - the main branch is Mono 6.13 currently.
The builds dont show up for me.
I also tried to do sudo cp /usr/lib/mono/msbuild/Current/bin/NuGet.Build.Tasks.dll /usr/lib/monodevelop/bin/MSBuild
than tried to build again but to no avail. (I had the same error)
Copying the NuGet.Build.Tasks.dll to the monodevelop/bin/MSBuild directory will not do anything. MonoDevelop does not copy files from that location to the folder where it runs the MSBuild host.
I recieved the same error after trying to import and use xUnit packages from nuget. I'm running elementary based on Ubuntu 20.04 on a macbook. When I load the same project into macos using visual studio rather than monodevelop under linux it loads OK. Obviously I want to use linux and monodevelop rather than vs. I'm pulling monodevelop using the ppa package download instructions, so would be awesome if this fix could be updates in vs-focal version so I could update my installation in linux.
In my case i solved it just now @poggersplayzyt, I have ubuntu 20.04.2, $ mono --version Mono JIT compiler version 6.12.0.122 (tarball Mon Feb 22 17:33:28 UTC 2021) Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com, $ dotnet --version 3.1.407
just is to make this:
to every project solucion go to -> project -> $yourProjectnameSolucionOption (show project option windows) -> on: Build -> custom command -> select: Build and add this to: Command: dotnet build Working directory: ${ProjectDir}
add other: select: Clean and add this to: Command: dotnet clean Working directory: ${ProjectDir} in the same custom Commands
click ok, if you have more projects in that solution you have to do the same. example:
now yow can press F8 (Build all) and enjoy it!
I cannot Build/Run my project because I keep running into this error
Dotnet Version 3.1.401 [/usr/share/dotnet/sdk]
Mono Version Mono JIT compiler version 6.10.0.104 (tarball Fri Jun 26 19:40:42 UTC 2020)
I am on Debian 10