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

Mono Compilation instructions #111

Open
TechnologyClassroom opened this issue Dec 6, 2024 · 1 comment
Open

Mono Compilation instructions #111

TechnologyClassroom opened this issue Dec 6, 2024 · 1 comment
Labels
question Further information is requested

Comments

@TechnologyClassroom
Copy link

Has anyone gotten this to work with Mono? I tried building PKHeX.CLI on Debian 12 with mono and I could use some pointers. I am not very familiar with C#. I see the installer pulls the release, but I am not sure how to compile the program. I installed the mono-everything package. I tried xbuild on the csproj file. I get this failed output:

PKHeX.Everywhere/src/PKHeX.CLI$ xbuild PKHeX.CLI.csproj 

>>>> xbuild tool is deprecated and will be removed in future updates, use msbuild instead <<<<

XBuild Engine Version 14.0
Mono, Version 6.8.0.105
Copyright (C) 2005-2013 Various Mono authors

Build started 12/6/2024 9:57:38 AM.
__________________________________________________
PKHeX.CLI.csproj: error : /home/user/builds/PKHeX.Everywhere/src/PKHeX.CLI/PKHeX.CLI.csproj: The default XML namespace of the project must be the MSBuild XML namespace. If the project is authored in the MSBuild 2003 format, please add xmlns="http://schemas.microsoft.com/developer/msbuild/2003" to the <Project> element. If the project has been authored in the old 1.0 or 1.2 format, please convert it to MSBuild 2003 format.  
Build FAILED.
Errors:

PKHeX.CLI.csproj: error : /home/user/builds/PKHeX.Everywhere/src/PKHeX.CLI/PKHeX.CLI.csproj: The default XML namespace of the project must be the MSBuild XML namespace. If the project is authored in the MSBuild 2003 format, please add xmlns="http://schemas.microsoft.com/developer/msbuild/2003" to the <Project> element. If the project has been authored in the old 1.0 or 1.2 format, please convert it to MSBuild 2003 format.  

         0 Warning(s)
         1 Error(s)

Time Elapsed 00:00:00.0090070
@arleypadua
Copy link
Owner

Microsoft in the recent years has been incorporating the work done in mono as part of its native .NET Framework.

To compile this project, just install .NET 9 SDK: https://dotnet.microsoft.com/en-us/download/dotnet/9.0

after installing, you should have access to the cli tool dotnet in your PATH

then you cd into the root folder of this repository and run:

dotnet build

@arleypadua arleypadua added the question Further information is requested label Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants