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

v1.3.3 Fails Compilation on Linux #110

Open
mwang87 opened this issue Apr 4, 2021 · 7 comments
Open

v1.3.3 Fails Compilation on Linux #110

mwang87 opened this issue Apr 4, 2021 · 7 comments

Comments

@mwang87
Copy link

mwang87 commented Apr 4, 2021

The following commands:

git clone -b master --single-branch https://github.com/compomics/ThermoRawFileParser --branch v1.3.3 /src
xbuild

Yield the following error


        Writer/MetadataWriter.cs(421,51): error CS0012: The type 'Enum' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.
        Writer/MgfSpectrumWriter.cs(204,52): error CS0012: The type 'Enum' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.
        Writer/MzMlSpectrumWriter.cs(1915,97): error CS0012: The type 'Enum' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.
        Writer/MzMlSpectrumWriter.cs(40,37): error CS0012: The type 'Enum' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.
        Writer/MzMlSpectrumWriter.cs(44,37): error CS0012: The type 'Enum' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.
        Writer/OntologyMapping.cs(14,43): error CS0012: The type 'Enum' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.
        Writer/OntologyMapping.cs(85,43): error CS0012: The type 'Enum' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.
        Writer/OntologyMapping.cs(156,43): error CS0012: The type 'Enum' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.
        Writer/ParquetSpectrumWriter.cs(25,37): error CS0012: The type 'Enum' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.
        Writer/ParquetSpectrumWriter.cs(28,37): error CS0012: The type 'Enum' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.

         2 Warning(s)
         10 Error(s)

v1.3.2 does not cause this issue.

@nielshulstaert
Copy link
Contributor

Thanks for reporting this, I'll have a look at it and get back to you.

@nielshulstaert
Copy link
Contributor

I have the same problem with an old mono version (4.6.2) from the Ubuntu repositories. It works with the latest mono version (6.12.0) from the official mono repository. I'll have a look to make it work again on older mono versions. Suggestions are welcome.

@caetera
Copy link
Collaborator

caetera commented Apr 6, 2021

Can it be because Mono 4.6.2 do not support NET Standard 2.0?

https://docs.microsoft.com/en-us/dotnet/standard/net-standard

@nielshulstaert
Copy link
Contributor

Yes indeed, there should be a version of the thermo libraries that don't use .net standard, I'll try to get it so it still works on older mono versions.

@nielshulstaert
Copy link
Contributor

Hi I don't have access to the new version of the thermo libraries without .net standard, but it should work for mono 5 and higher. If you can't upgrade mono, I can make branch that use the previous thermo libraries, let me know.

@zslastman
Copy link

So I'm still getting this bug, and am using mono 6.12.0 (Installed with conda, though I get it if I use the mono .pkg installer on my mac laptop instead).

I also get issues with 1.3.2:

        /fast/home/d/dharnet/miniconda3/envs/mono/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets:  warning : TargetFrameworkVersion 'v4.7.2' not supported by this toolset (ToolsVersion: 14.0).```
        
 though I do end up with a usable binary at `./bin/x64/Debug/ThermoRawFileParser.exe`

@caetera
Copy link
Collaborator

caetera commented Oct 21, 2022

I have stumbled upon this issue and have a suggestion. Can it be that the compilation problem can be solved by switching from xbuild to msbuild? See #138

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

4 participants