Skip to content
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

Impossible to compile msbuild #498

Open
Meister1593 opened this issue May 19, 2021 · 10 comments
Open

Impossible to compile msbuild #498

Meister1593 opened this issue May 19, 2021 · 10 comments

Comments

@Meister1593
Copy link

Meister1593 commented May 19, 2021

  1. For now, you can't compile msbuild because newtonsoft-json src issue: emerging newtonsoft-json failed because mono renamed their master branch #496
  2. When building msbuild (with fix applied for issue above), it tries to compile dev-dotnet/buildtools-1.0.27-r1 but fails to do. log, info
@Meister1593 Meister1593 changed the title Impossible to build msbuild package because of broken packages Impossible to compile msbuild May 19, 2021
@cyborgyn
Copy link
Contributor

cyborgyn commented May 28, 2021

For the 2.) it seems that the problem now, that Newtonsoft.Json is installed into the wrong directory under amd64: under /usr/lib64/mono/gac/... instead of /usr/lib/mono/gac/...
Using the gacutil of mono, to install the dll, dev-dotnet/buildtools builds for me.

Addition:
For the missing dll, just find it under /usr/lib64/mono/gac/, use gacutil -i <dll_file_path>

@Meister1593
Copy link
Author

For the 2.) it seems that the problem now, that Newtonsoft.Json is installed into the wrong directory under amd64: under /usr/lib64/mono/gac/... instead of /usr/lib/mono/gac/...
Using the gacutil of mono, to install the dll, dev-dotnet/buildtools builds for me.

can you elaborate on how to use that util to install that dll? i really need msbuild now)

@Meister1593
Copy link
Author

Meister1593 commented May 28, 2021

Even though i managed to build msbuild, it seems that it's missing a lot of stuff... like, System.CodeDom, System.Linq, System.Windows (winforms)
arch has exactly the same package, from the same repo and it has everything needed
though msbuild version isn't 15.3 on arch, but 16.9

@cyborgyn
Copy link
Contributor

Even though i managed to build msbuild, it seems that it's missing a lot of stuff... like, System.CodeDom, System.Linq, System.Windows (winforms)
arch has exactly the same package, from the same repo and it has everything needed
though msbuild version isn't 15.3 on arch, but 16.9

How do you mean it's missing those? msbuild just builds. Those you mentioned are class libraries, nothing to do with the build system itself, except it need to find it to be able to compile a source referencing it. You need to install those also into GAC to be able to compile against those.

@Meister1593
Copy link
Author

Even though i managed to build msbuild, it seems that it's missing a lot of stuff... like, System.CodeDom, System.Linq, System.Windows (winforms)
arch has exactly the same package, from the same repo and it has everything needed
though msbuild version isn't 15.3 on arch, but 16.9

How do you mean it's missing those? msbuild just builds. Those you mentioned are class libraries, nothing to do with the build system itself, except it need to find it to be able to compile a source referencing it. You need to install those also into GAC to be able to compile against those.

As far as i can tell, i at least have windows namespace

ls /usr/lib/mono/gac | grep -i System.win
System.Windows
System.Windows.Forms
System.Windows.Forms.DataVisualization

do i need to use gac flag on all packages that are needed to install for msbuild to be able to use them?

@Meister1593
Copy link
Author

Meister1593 commented May 29, 2021

I rebuilt everything with gac use flag, and projects still can't reference at least System.Windows... i'm missing something?

@Meister1593
Copy link
Author

I'm using Rider, and using msbuild from directory /usr/lib/mono/mono/msbuild/Current/bin/MSBuild.dll, and every reference what project have is Not resolved by msbuild, even just System.
image

@cyborgyn
Copy link
Contributor

cyborgyn commented May 29, 2021 via email

@cyborgyn
Copy link
Contributor

cyborgyn commented Jun 4, 2021

@Meister1593 : pull requests are merged. Now it should build without intervention. If it does, you can close this issue... for now... :)

@Meister1593
Copy link
Author

@Meister1593 : pull requests are merged. Now it should build without intervention. If it does, you can close this issue... for now... :)

I'm on Archlinux now, so... someone else has to check it now)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants