ONLYOFFICE / CommunityServer

Free open source office suite with business productivity tools: document and project management, CRM, mail aggregator.
http://www.onlyoffice.com
Apache License 2.0
2.71k stars 613 forks source link

build on linux fails #511

Open dsl400 opened 3 weeks ago

dsl400 commented 3 weeks ago

I am trying to build the project on debian linux after installing all the tools I removed all the System.Net.Http references and replaced them with package references I added assembly bindings almost to all app.config files I can see the binding reference work for FirebaseAdmin.dll

Unified primary reference "System.Net.Http, Version=4.1.1.3, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
      Using this version instead of original version "4.0.0.0" in "/home/dsl400/.nuget/packages/awssdk.core/3.7.2.9/lib/net45/AWSSDK.Core.dll" because AutoUnify is 'true'.
      Using this version instead of original version "4.2.0.0" in "/home/dsl400/.nuget/packages/firebaseadmin/2.3.0/lib/net461/FirebaseAdmin.dll" because AutoUnify is 'true'.

but it does not want to work for 'Google.Cloud.Storage.V1

"/home/dsl400/work/CommunityServer/build/msbuild/build.proj" (default target) (1) ->
"/home/dsl400/work/CommunityServer/Studio.sln" (Restore;Build target) (2) ->
"/home/dsl400/work/CommunityServer/common/ASC.ActiveDirectory/ASC.ActiveDirectory.csproj" (default target) (3:9) ->
"/home/dsl400/work/CommunityServer/web/core/ASC.Web.Core/ASC.Web.Core.csproj" (default target) (22:40) ->
"/home/dsl400/work/CommunityServer/common/ASC.Data.Storage/ASC.Data.Storage.csproj" (default target) (9:30) ->
(CoreCompile target) -> 
  /home/dsl400/work/CommunityServer/common/ASC.Data.Storage/GoogleCloud/GoogleCloudStorage.cs(181,36): error CS1705: Assembly 'Google.Cloud.Storage.V1' with identity 'Google.Cloud.Storage.V1, Version=3.5.0.0, Culture=neutral, PublicKeyToken=185c282632e132a0' uses 'System.Net.Http, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Net.Http' with identity 'System.Net.Http, Version=4.1.1.3, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' [/home/dsl400/work/CommunityServer/common/ASC.Data.Storage/ASC.Data.Storage.csproj]
  /home/dsl400/work/CommunityServer/common/ASC.Data.Storage/GoogleCloud/GoogleCloudStorage.cs(741,36): error CS1705: Assembly 'Google.Cloud.Storage.V1' with identity 'Google.Cloud.Storage.V1, Version=3.5.0.0, Culture=neutral, PublicKeyToken=185c282632e132a0' uses 'System.Net.Http, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Net.Http' with identity 'System.Net.Http, Version=4.1.1.3, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' [/home/dsl400/work/CommunityServer/common/ASC.Data.Storage/ASC.Data.Storage.csproj]
Carazyda commented 4 days ago

Hello @dsl400 Yes, there is a problem with building sources on Linux. We will try to fix it in future releases.