[ 
https://issues.apache.org/jira/browse/AVRO-2470?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16882485#comment-16882485
 ] 

Brian Lachniet commented on AVRO-2470:
--------------------------------------

[~Banzai666], it looks like you are providing an {{.avpr}} file (protocol). Are 
you using the {{-p}} option (for protocols), rather than the {{-s}} option (for 
schemas)? Could you post the command that you are running and the output, now 
that you are using the dotnet tool?

{code:title=avrogen help}
$ avrogen.exe -h
avrogen

Usage:
  avrogen -p <protocolfile> <outputdir> [--namespace <my.avro.ns:my.csharp.ns>]
  avrogen -s <schemafile> <outputdir> [--namespace <my.avro.ns:my.csharp.ns>]

Options:
  -h --help   Show this screen.
  --namespace Map an Avro schema/protocol namespace to a C# namespace.
              The format is "my.avro.namespace:my.csharp.namespace".
              May be specified multiple times to map multiple namespaces.
{code}

re: Newtonsoft.Json version - Yes, we should probably update this to something 
much more recent.

re: Avro.ipc - No, it is not in this package. We do not have a NuGet package 
for it, nor has it received much love recently.

> 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)

Reply via email to