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

Lutz Mahle commented on AVRO-2470:
----------------------------------

Thank you so much, for pointing me into the right direction.

You're right: I must use -p instead of -s... Don't know, why I use -p first 
time to get a valid code generation and later always -s...?

I'm now one step further. While using the generated (1.8.2) code in my project, 
a _"missing dependency 'System.CodeDom'"_ exception occurs in *Avro.CodeGen*. 
Installing "System.CodeDom" via NuGet-Manager into my project solves this 
issue. Now I can use Avro beside the code generation.

Answer your request for avrogen in ./dotnet/tools via Paket-Manager-Console:

 
{code:java}
// avrogen -p .\avro-rpc-rpcserver.avpr codegen
Exception occurred. Could not load file or assembly 
'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, 
PublicKeyToken=cc7b13ffcd2ddd51'. Das System kann die angegebene Datei nicht 
finden.
{code}
...means "File not found by system"

For test purposes, I replace your avrogen with the 
"Confluent.Apache.Avro.AvroGen" tool (dotnet tool unistall...dotnet tool 
install...)

This tool works fine. Don't know, what they did to make it work. Filesize is 
identically (137728 Bytes). Only version should be a little bit outdated 
(1.7.7).

Maybe this is another 'PATH'-enviroment problem, but I'm sure I have Framework 
2.0, 3.x and 4.0.x installed?

 

Thanks in advance

 

 

> 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.14#76016)

Reply via email to