Do you have any tips for C# Minification? [closed] - c#

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I need to minify some C# code in a handful of Silverlight .cs and .xmal files. What are your tips for maintaining one code base and running a "tool" to generate minified code for a project?
Are there any tools (like Resharper) that will do this? If not fully, partially or assist in some way...
EDIT: I realize that there is no need for C# minification. This is an exercise that I'm doing that does not make sense on the face of it. (This is not homework.)

How about a source-code obfuscator? They generally abbreviate names, etc - and certainly remove white space.
For example, here, with demo here (although you'd probably want to disable the string encoding if possible). Note that this isn't a direct recommendation: this is just the first hit I got for C# code obfuscator.

Is that necessary? It was my understanding that the compiled .Net assembly would be sent across the wire, not the C# (or whatever language) source code.

Here are two "Lessons Learned" posts from other 10k entrants:
Thoughts on the MIX 10K challenge
MIX09 10K Smart Coding Challenge

Related

Implementing Lua for C# [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I've built a robust system that has many core functions that might actually get mess to use if I keep on expanding the code - therefore I decided to implement a scripting language and ability for program to read scripts from external files.
My first idea was to use C# by default, but then I've remembered how easy and readable Lua was, so I went with that - sadly, I can't find a simple yet effective library that would allow me to incorporate lua into my software.
tl;dr — is there a simple library one could use to implement lua and thus make usage of software built-in functions way easier? What are your thoughts and opinions on that?
First, there's MoonSharp.
I did experiments with it a while ago. Ultimately, I found it unsuitable for my needs, but it was straightforward to make use of.
Edit: dug up my GitHub repo where I tried this out.

Need to compare C# source code with dlls [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
We were using a product from a vendor provided to us in form of dll's. Now we are taking over that vendor product's source code. Our core application is dependent on those vendor provided dll's. We want to make sure that the source code that is provided to us is the same as of the dll's we are using. Otherwise our code can break and that could cost us big time. Can anyone please suggest a tool or a way we can compare the source code with dll's.
One way is that we can compile and publish the dll's and then compare the dll's, but that is going to be a huge task as there are multiple packages included in the base product including some aspx and html pages. We are looking for a quick and clean way to perform the task.
Any help 'd be much appreciated. Thanks
For me the only good way is to ask the vendor to provide the compilation environnement as well as the source code (using a Virtual Machine for example).
Recompilling the source, then comparing the DLLs is the only good way.

XML comments generator for VS 2008 [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I am looking for XML comment generator like GhostDoc for VS 2008. I am looking for open source tool. Is there any Resharper- plug-in for generating XML comments?
Yes, there is: StyleCop for ReSharper. Among a lot of other stuff, it can automatically create comments when you clean your code.
Take a look at Sandcastle. It might be what you are looking for, at least it is open source.
It's not open source, but my addin, AtomineerUtils may suit your needs. It's similar in concept to GhostDoc, but way more powerful and configurable, so it may be able to be configured to achieve what you need without needing access to the source. If it doesn't do something you need, then just mail me - I don't turn down any reasonable feature requests and usually try to implement them as soon as I can.
Alternatively, if you want source code for something very basic in this direction that will get you started, you could take a look here.

Create flow diagram programmatically [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I want to visualize components and connections of a HVAC system with .NET/C#.
The diagrams will just include a few different components and their connections.
They do not have to comply to any formal standard and should look alike the diagrams attached. In addition the user should be able to select a single component/connection (so that I can display additional data).
Which free drawing/charting library would you use and why?
Thanks for your time.
Julian,
Please check out GraphSharp: http://graphsharp.codeplex.com/Release/ProjectReleases.aspx
Small/open source C# library on Git renders to HTML5 (You can modify to render to for example WPF or Winform as well)
https://gridwizard.wordpress.com/2015/03/25/simple-c-library-to-render-graph-to-flowchart
I would try to host VS studio designer in application , how you can host workflow designer for instance. Read about VS extensibilities
It doesn't get more free than System.Drawing...
Seriously, given your requirements I'm not sure you need a framework or library. The most complex part of the system you describe is drawing the lines between components. If that doesn't have to get fancy (automatic layout, detecting where the lines overlay other lines/boxes) then you can probably roll the whole thing custom.

Least Squares C# library [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I am looking to perform a polynomial least squares regression and am looking for a C# library to do the calculations for me.
I pass in the data points and the degree of polynomal (2nd order, 3rd order, etc) and it returns either the C0, C1, C2 etc. constant values or the calculated values "predictions".
Note: I am using Least Squares to create some forecasting reports for disk usage, database size and table size.
Here is a link for C# code on to do exactly this: http://www.trentfguidry.net/post/2009/08/01/Linear-Regression-of-Polynomial-Coefficients.aspx
Good luck!
Edit: Apparently the above link is broken. I made another solution awhile back: http://procbits.com/2011/05/02/linear-regression-in-c-sharp-least-squares/
In the general case you want an "optimizer" or "mimimizer". See http://en.wikipedia.org/wiki/Optimization_(mathematics)#Solvers for some exmples. I see that the first link (http://en.wikipedia.org/wiki/IMSL_Numerical_Libraries) claims to have c# support.
Edit: For the limited use that you propose (linear or quadratic polynomials), you could just go to any copy of Numerical Recipies, grab a straight ahead implementation, and translate to your language. A general minimizer is overkill.
But note, also, that polynomials may be poor predictors.
You can check library form ALGLIB under GPL licence 2.0. They have source code for C#, C++,...
http://www.alglib.net/interpolation/leastsquares.php
You may want to check out alglib. It is in C++ instead of C#, but you might be able to write a wrapper over it.

Categories

Resources