[
https://issues.apache.org/jira/browse/AVRO-2470?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16882135#comment-16882135
]
Lutz Mahle commented on AVRO-2470:
----------------------------------
Thank you for your fast reaction and bringing a possible solution.
Unfortunally no success.... but step-by-step:
I installed the alpha-1.9.1 on a fresh Win 10 x64 Pro with VS2019 CE and .NET
Core 2.2.3 via NuGet-Package Manager and with your line ({{dotnet tool install
--global Apache.Avro.Tools --version 1.9.1-alpha002}}) in Paket-Manager-Console.
The PATH is correct set, installation succceed and I've found avrogen.exe in
"%USER%\.dotnet\tools"; avrogen.exe starts, but:
First a parsing error pops up, expecting a "type" in json-root.
Here is the source (first lines)
{code:java}
// {
"namespace": "foo.rpcserver.resources",
"protocol": "FooRpcServiceServer",
"doc": "Event Service FOO RPC",
"types": [
{"name": "Device", "type": "record", "aliases": ["Dev"],
:
:
{code}
...and that should work (?)
{code:java}
// {
"namespace": "foo.rpcserver.resources",
"protocol": "FooRpcServiceServer",
"doc": "Event Service FOO RPC",
"type": "Something",
"types": [
{"name": "Device", "type": "record", "aliases": ["Dev"],
:
:
{code}
Now, avrogen can handle the file....!?
Second (with the inserted "type:"-line) same dependencie-error pop-up.
Another issue is the outdated NewtonSoft.Json.dll (3.5.8)... but that's not a
real problem at the time.
BTW.: Where is Avro.ipc in this package? Or should I download another one?
Thanks in advance and best regards.
> avrogen.dll for C# .NET Core not useable!
> -----------------------------------------
>
> Key: AVRO-2470
> URL: https://issues.apache.org/jira/browse/AVRO-2470
> Project: Apache Avro
> Issue Type: Bug
> Components: csharp, dependencies, release
> Affects Versions: 1.9.0
> Environment: * Windows 7 x64 Pro
> * Visual Studio 2017 Community Edition
> * from here
> [#[http://apache.lauf-forum.at/avro/avro-1.9.0/csharp/avro-csharp-1.9.0.tar.gz]AVRO]
> Reporter: Lutz Mahle
> Assignee: Brian Lachniet
> Priority: Blocker
> Fix For: 1.9.0
>
>
> Latest download for avrogen for C# as a .NET Core application is not
> executable in case of missing dependencies.
> There is no description, how to run or fix this issue.
> This happens after do a install of NewtonSoft.Json 3.8.5 in Visual Studio and
> copied from NuGet-cache into directoy includes avrogen.dll manually:
> {code:java}
> // ...>dotnet avrogen.dll -s avro-jsonfile.avpr codegeneration
> Error:
> An assembly specified in the application dependencies manifest
> (avrogen.deps.json) was not found:
> package: 'System.CodeDom', version: '4.4.0'
> path: 'lib/netstandard2.0/System.CodeDom.dll'
> {code}
> Please make a "Standalone" download for direct usage as avrogen.exe
> (Selfcontaining Executable) or batch file for installing dependencies.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)