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

david bennett commented on THRIFT-3319:
---------------------------------------

There are two 'obvious' ways to fix this.

1. Add copies of the .thrift files to the CSharp tutorial folder, edit them to 
add the namespace; edit the project file to remove Constant.cs and pick up the 
generated source from one level lower. This is what I did to get mine to build.
2, Edit the main .thrift files to add the CSharp namespace; edit the project 
file to remove Constant.cs; build generated source one level up as per the 
project file.

The preferred patch is probably (2), but in that case namespaces should be 
added for all the other languages as well. This is a more pervasive change with 
bigger test obligations than I would tackle.

A comment in the top level readme about where to put the folder for the 
generated source (in the tutorial folder or the one above?) would be helpful 
too.

> CSharp tutorial will not build
> ------------------------------
>
>                 Key: THRIFT-3319
>                 URL: https://issues.apache.org/jira/browse/THRIFT-3319
>             Project: Thrift
>          Issue Type: Bug
>          Components: C# - Library, Tutorial
>    Affects Versions: 0.9.2
>         Environment: Windows
>            Reporter: david bennett
>            Assignee: Jens Geyer
>            Priority: Minor
>
> 1. tutorial/csharp folder does not contain a tutorial.thrift.
> 2. The tutorial.thrift in the root does not contain a csharp namespace.
> 3. The client and server source expect a namespace of CSharpTutorial.
> 4. The project references constant.cs, which the compiler does not generate.
> Also, it's not at all clear where the generated source should go.
> Also, the NuGet download for 0.9.2 does not contain a compiler (0.9.1 does).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to