v10networkscom / saltychat-fivem

FiveM implementation of Salty Chat (TeamSpeak 3 based Voice Plugin)
https://gaming.v10networks.com
GNU General Public License v3.0
70 stars 64 forks source link

Build dll under linux #70

Closed Gentil-Boo closed 3 years ago

Gentil-Boo commented 3 years ago

Hello when i sue the command xbuild I got lot of errors

xbuild /home/bast/server-data/resources/saltychat/SaltyChat-RedM.sln

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

Build started 20/04/2021 16:19:28.


/home/bast/server-data/resources/saltychat/SaltyChat-RedM.sln: warning : /home/bast/server-data/resources/saltychat/SaltyServer/SaltyServer.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 element. If the project has been authored in the old 1.0 or 1.2 format, please convert it to MSBuild 2003 format. /home/bast/server-data/resources/saltychat/SaltyShared/SaltyShared.shproj: warning : Could not find project file /usr/lib/mono/xbuild/Microsoft/VisualStudio/v/CodeSharing/Microsoft.CodeSharing.Common.Default.props, to import. Ignoring. /home/bast/server-data/resources/saltychat/SaltyShared/SaltyShared.shproj: warning : Could not find project file /usr/lib/mono/xbuild/Microsoft/VisualStudio/v/CodeSharing/Microsoft.CodeSharing.Common.props, to import. Ignoring. /home/bast/server-data/resources/saltychat/SaltyShared/SaltyShared.shproj: warning : Could not find project file /usr/lib/mono/xbuild/Microsoft/VisualStudio/v/CodeSharing/Microsoft.CodeSharing.CSharp.targets, to import. Ignoring. /home/bast/server-data/resources/saltychat/SaltyChat-RedM.sln: warning : Don't know how to handle GlobalSection SharedMSBuildProjectFiles, Ignoring. /home/bast/server-data/resources/saltychat/SaltyChat-RedM.sln: warning : Don't know how to handle GlobalSection ExtensibilityGlobals, Ignoring. Project "/home/bast/server-data/resources/saltychat/SaltyChat-RedM.sln" (default target(s)): Target ValidateSolutionConfiguration: Building solution configuration "Debug|Any CPU". Target Build: /home/bast/server-data/resources/saltychat/SaltyServer/SaltyServer.csproj: error : /home/bast/server-data/resources/saltychat/SaltyServer/SaltyServer.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 element. If the project has been authored in the old 1.0 or 1.2 format, please convert it to MSBuild 2003 format. Project "/home/bast/server-data/resources/saltychat/SaltyClient/SaltyClient.csproj" (default target(s)): Target PrepareForBuild: Configuration: Debug Platform: AnyCPU Target GenerateSatelliteAssemblies: No input files were specified for target GenerateSatelliteAssemblies, skipping. Target _GenerateTargetFrameworkMonikerAttribute: Skipping target "_GenerateTargetFrameworkMonikerAttribute" because its outputs are up-to-date. Target CoreCompile: Skipping target "CoreCompile" because its outputs are up-to-date. Done building project "/home/bast/server-data/resources/saltychat/SaltyClient/SaltyClient.csproj". Task "MSBuild" execution -- FAILED Done building target "Build" in project "/home/bast/server-data/resources/saltychat/SaltyChat-RedM.sln".-- FAILED Done building project "/home/bast/server-data/resources/saltychat/SaltyChat-RedM.sln".-- FAILED

Build FAILED.

Warnings:

/home/bast/server-data/resources/saltychat/SaltyChat-RedM.sln: warning : /home/bast/server-data/resources/saltychat/SaltyServer/SaltyServer.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 element. If the project has been authored in the old 1.0 or 1.2 format, please convert it to MSBuild 2003 format. /home/bast/server-data/resources/saltychat/SaltyShared/SaltyShared.shproj: warning : Could not find project file /usr/lib/mono/xbuild/Microsoft/VisualStudio/v/CodeSharing/Microsoft.CodeSharing.Common.Default.props, to import. Ignoring. /home/bast/server-data/resources/saltychat/SaltyShared/SaltyShared.shproj: warning : Could not find project file /usr/lib/mono/xbuild/Microsoft/VisualStudio/v/CodeSharing/Microsoft.CodeSharing.Common.props, to import. Ignoring. /home/bast/server-data/resources/saltychat/SaltyShared/SaltyShared.shproj: warning : Could not find project file /usr/lib/mono/xbuild/Microsoft/VisualStudio/v/CodeSharing/Microsoft.CodeSharing.CSharp.targets, to import. Ignoring. /home/bast/server-data/resources/saltychat/SaltyChat-RedM.sln: warning : Don't know how to handle GlobalSection SharedMSBuildProjectFiles, Ignoring. /home/bast/server-data/resources/saltychat/SaltyChat-RedM.sln: warning : Don't know how to handle GlobalSection ExtensibilityGlobals, Ignoring.

Errors:

/home/bast/server-data/resources/saltychat/SaltyChat-RedM.sln (default targets) -> (Build target) ->

    /home/bast/server-data/resources/saltychat/SaltyServer/SaltyServer.csproj: error : /home/bast/server-data/resources/saltychat/SaltyServer/SaltyServer.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.

     6 Warning(s)
     1 Error(s)

Time Elapsed 00:00:01.7993020

Gentil-Boo commented 3 years ago

I've updated mono https://www.mono-project.com/download/stable/ and now I use

msbuild /home/bast/server-data/resources/saltychat/SaltyChat-RedM.sln as sudo user.

And it's working ;)