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

Publish of OracleService dependencies has problems due to CONFIG files with same name #726

Closed
vncoelho opened this issue Jun 7, 2022 · 4 comments · Fixed by #729
Closed
Labels
question Further information is requested

Comments

@vncoelho
Copy link
Member

vncoelho commented Jun 7, 2022

After publishing each plugin, we use to get specific dependencies, such as (for OracleService):

Google.Protobuf.dll
Grpc.AspNetCore.Server.ClientFactory.dll
Grpc.AspNetCore.Server.dll
Grpc.Core.Api.dll
Grpc.Net.Client.dll
Grpc.Net.ClientFactory.dll
Grpc.Net.Common.dll
Neo.FileStorage.API.dll

Something changed recently and our script is not finding these files anymore inside the published directory.

We use to use the following command:

dotnet publish -c Release -o /opt/neo-modules/src/OracleService/app

We are just finding them at:

/root/.nuget/packages/grpc.net.clientfactory/2.36.0/lib/net5.0/Grpc.Net.ClientFactory.dll
/root/.nuget/packages/grpc.net.clientfactory/2.36.0/lib/netstandard2.1/Grpc.Net.ClientFactory.dll
/root/.nuget/packages/neofs.api/3.3.0/lib/net6.0/Neo.FileStorage.API.dll
etc...
@vncoelho vncoelho added the question Further information is requested label Jun 7, 2022
@vncoelho
Copy link
Member Author

vncoelho commented Jun 7, 2022

We are also getting other warning/errors such as:

Microsoft (R) Build Engine version 17.0.0+c9eb9dd64 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.

  Determining projects to restore...
  Restored /opt/neo-modules/src/OracleService/OracleService.csproj (in 16.12 sec).
  2 of 3 projects are up-to-date for restore.
  neo -> /opt/neo-modules/neoLib/src/neo/bin/Release/net6.0/Neo.dll
  RpcServer -> /opt/neo-modules/src/RpcServer/bin/Release/net6.0/RpcServer.dll
  OracleService -> /opt/neo-modules/src/OracleService/bin/Release/net6.0/OracleService.dll
/usr/share/dotnet/sdk/6.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.ConflictResolution.targets(112,5): error NETSDK1152: Found multiple publish output files with the same relative path: /opt/neo-modules/src/RpcServer/config.json, /opt/neo-modules/src/OracleService/config.json. [/opt/neo-modules/src/OracleService/OracleService.csproj]

@vncoelho
Copy link
Member Author

vncoelho commented Jun 13, 2022

It is a problem because of the config files with same name.
It is now needed to change the name of OracleService before publish.
This should be fixed in order to make the publish to work as expected. Otherwise it does not generate dependencies and the process becomes harder.

@vncoelho
Copy link
Member Author

vncoelho commented Jun 13, 2022

Thanks @superboyiii, as always, for suggest me to change name and test.

@vncoelho vncoelho changed the title Where to get OracleService dependencies? Publish of OracleService dependencies has problems due to CONFIG files with same name Jun 13, 2022
@vncoelho
Copy link
Member Author

vncoelho commented Jun 13, 2022

#727, perhaps that we can soon close this one because @superboyiii better explained it there.

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

Successfully merging a pull request may close this issue.

1 participant