-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
create a nuget package for a single Docopt.cs file #8
Comments
Interesting. What is the advantage of a single cs file over an assembly? |
It allows me to make the class internal/private to my project. No need ilmerge. Users consuming my library don't care about the details. Allows me to expose only necessary api. Like Try installing SimpleJson. Replace the nampespace with namespace https://github.com/facebook-csharp-sdk/simple-json/blob/master/jakefile.js#L269-L273 Also would love to have an options like this. // NOTE: uncomment the following line to make SimpleJson class internal.
//#define SIMPLE_JSON_INTERNAL |
Ok thanks for the explanation, I am going to have a look.— On Tue, Jun 3, 2014 at 1:47 AM, Prabir Shrestha [email protected]
|
👍 This approach is nice for small libraries and frameworks in which you'd like to keep the footprint small. |
One thing to consider: |
The way I am planning to implement this is to have a special build step that is going to merge all the cs file into a giant DocOpt.cs and package separately. I don't see myself having to manage this manually. |
I was talking about the consuming projects of this file. |
@voieducode Even I was thinking of a post build step to merge all the files into a single .cs file. |
@dhilgarth cross communication, this was meant as a general comment on the approach I was thinking of. Re: resharper, as per http://hadihariri.com/2011/06/27/preventing-items-from-being-analyzed-in-resharper/, just name the .cs file something like Docopt.generated.cs and it will be automatically skipped by resharper. |
Found a promising powershell solution that decompiles the docoptnet.dll into a single csharp source file using https://github.com/icsharpcode/ILSpy/tree/master/ICSharpCode.Decompiler |
I will close this issue now as there does not seem to be no more traction. |
Something similar to this mono.options. http://www.nuget.org/packages/Mono.Options/
This will allow to easily embed docopt.net.
The text was updated successfully, but these errors were encountered: