tonynhan / protobuf-net

Automatically exported from code.google.com/p/protobuf-net
Other
0 stars 0 forks source link

Make it easier to use protogen in a build task / pre-build step #39

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
http://stackoverflow.com/questions/453820

Original issue reported on code.google.com by marc.gravell on 18 Jan 2009 at 5:14

GoogleCodeExporter commented 8 years ago
See the attached for a quick and dirty Visual Studio Custom Tool wrapper around 
ProtoGen.exe.  This makes adding .proto files to C# projects extremely easy.

... stackoverflow didn't seem to have a way to attach files, so I attached it 
here.  
I will also post a comment on stackoverflow pointing back to this.

Original comment by scoo...@gmail.com on 24 Jun 2009 at 6:00

Attachments:

GoogleCodeExporter commented 8 years ago
I was incorrectly adding a new namespace around the ProtoGen created namespace 
instead of using the -ns cmdline param.  This is fixed in the attached file.

Original comment by scoo...@gmail.com on 24 Jun 2009 at 6:23

Attachments:

GoogleCodeExporter commented 8 years ago
Cool - I will investigate; thanks

Original comment by marc.gravell on 24 Jun 2009 at 9:34

GoogleCodeExporter commented 8 years ago
Hi again scooley - I've had a look at this, and it is very good. I actually 
started 
doing this a while ago, but got lost in the maze of random interfaces and 
side-lined 
it, so it is fantastic to get this. I'm probably going to make a few tweaks 
though; 
in particular, to call into protogen as a reference (rather than Process), and 
to 
keep the xslt as files (rather than resources) to allow user-customization. I 
have, 
however, moved protoc.exe into protogen as a resource, which simplifies things.

I'm very grateful for the contribution. My explicit assumption is that by 
posting it 
here you're happy to contribute it under the existing license terms of 
protobuf-net; 
if not, please say so now.

Huge thanks,

Marc

Original comment by marc.gravell on 26 Jun 2009 at 7:22

GoogleCodeExporter commented 8 years ago
Marc -
  I'm glad that you find the tool useful and want to include it in protobuf-net.  
I'm all for it being added in to the main protobuf-net project so that going 
forward 
it stays up to date with the rest of the project.

  I had originally planned to directly call protogen code (instead of the exe), but 
it was quicker for me to just launch the exe since it didn't require me to 
understand the protogen code.

  Yes, I posted this so that it could become part of the protobuf-net project (under 
the protobuf-net license).  The only thing I must point out is that the code in 
the 
CustomTool folder comes from http://customtooltemplate.codeplex.com/ - The 
CustomToolTemplate license is wide open and can be read at 
http://customtooltemplate.codeplex.com/license .

Original comment by scoo...@gmail.com on 26 Jun 2009 at 7:32

GoogleCodeExporter commented 8 years ago
Fixed; now has VS2008 "custom tool" support; see blog

Original comment by marc.gravell on 16 Jul 2009 at 8:34

GoogleCodeExporter commented 8 years ago
Is this custom tool support available for visual studio 2012 or later? 

Original comment by manojkum...@gmail.com on 29 May 2014 at 12:22