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
Are there any tools or methods for combining an entire c# class library (project) into a single class file.
My primary reason for doing this is because I would like to use some c# open source libraries but each library I add results in another project and another dll to manage and distribute.
If there was an automated way to merge / combine the files then I would still be able to compare the source and look for changes.
In addition, I suspect that if I modified all classes to be "internal" while combining then the compiler could discard everything I don't actually use.
The intention is to then use that class file directly inside my larger project.
My Project
Open Source Pieces
BarcodeLibrary.cs
CryptoLibrary.cs
etc ...
This was supposed to be a simple HowTo question but since I need to provide a philosophical justification...
The comments about using nuget are valid and applicable but I have had multiple experiences with projects built by pulling in a number of "internet" hosted libraries. Those experiences have NOT been joyous to say the least. I now prefer to take a much more hands on and selective approach when using external libraries and code.
Regarding Source Control. A single well structured file for a single project that you are never going to edit (except for updates) would help to reduce the clutter in a project instead of creating extra problems.
Update: I built what I needed and am testing the results, hope to return with a tool and example.
I would seriously recommend against doing such a thing. It makes code navigation a nightmare. Also your version control system is probably not going to like this. If you are worried about forgetting dependencies between your projects, I suggest using build tooling and dependency managers like NuGet to get these under control.
you can use Costura.Fody to bundle all your assemblies into one. I think this is the problem you are trying to solve.
Related
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 4 years ago.
Improve this question
I want the ability to generate POCO entities outside of Visual Studio. Is this possible?
I haven't found a standalone tool (outside of Visual Studio), but I've used the Visual Studio extension EntityFramework Reverse POCO Generator on a previous project when switching from Database First / Model First to Code First.
Why does it need to be a standalone tool? You could remove the extension after the conversion if it's a permanent switch.
EntityDeveloper by DevArt. Nice with UI and strong on updating the model, too. Sadly not free, but then not exactly expensive either.
I realize this is an old question, but it's an issue I'm facing myself currently.
I've managed to have some luck by using EdmGen.exe which is included with in .net4 framework installations, so it's most probably present on client machines.
EdmGen will generate Model and Mapping files and, in addition, you can Generate Object-Layer code with it.
"C:\Windows\Microsoft.NET\Framework\v4.0.30319\edmgen.exe" /mode:fullgeneration /c:"Data Source=<DATASOURCE>; Initial Catalog=<CATALOG>; Integrated Security=SSPI" /project:<PROJECT> /entitycontainer:<ENTITY CONTAINER> /namespace:<NAMESPACE> /language:CSharp
After this you can go ahead a generate your Object-Layer code:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\edmgen.exe" /mode:EntityClassGeneration /incsdl:.\<PROJECT>.csdl /outobjectlayer:.\<PROJECT>.Objects.cs /language:CSharp
Obviously, you'll want to replace the <*> with your particular needs.
You can also replace \Framework\ with \Framework64\ in the path if you're on a 64-bit machine.
You can read up on all of the features here:
EDM Generator Docs
I've managed to get it working, but the performance has been deplorable. I'm working with a somewhat complex database with about 80 tables and 30-40 views and the fullgeneration took over an hour. I've seen other similar cases online, but haven't found a solution.
EDIT: I just ran into this excellent tutorial/article which helps automate the whole process. Hope this helps!
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 8 years ago.
Improve this question
I have an open-source C# project on Google Code Project Hosting and I'm curious if there is a service that does automated daily builds of projects hosted there. It would be great if it it would do builds regularly and then provide binaries to download, or at least notify if the project fails to build.
Does anything like that exist? Also, if there are none for Google Code, does this exist for another project hosting service?
teamcity.codebetter.com provides continuous integration (with TeamCity) for open source projects, no matter where the code is hosted.
You can read more about it (including how to apply your project) here.
EDIT:
I see your point, but's it's the only free CI offer for open source projects that I know of. And it's a generous offer - CodeBetter is no company, but a group of individual bloggers. So I guess they have to pay for server capacity themselves.
The TeamCity Enterprise Edition is sponsored by JetBrains (makers of TeamCity).
I just noticed that you can get the Enterprise Edition for free directly from JetBrains when you're an open source project, but you have to apply for that as well.
But then you just get the software itself...no hosting, you would need to take care of that yourself.
But I think the fact that you have to apply for it (either way) is not that bad.
Sure, it would be nicer if you could just register and that's it, but think about it...you get software worth $1999 (plus $999 yearly renewal!) completely for free, all you need to do is apply for it.
There start-up project called AppHarbour
It clams, that it can build and publish you web site, using only Git/Mercurial-push operation.
I haven't tried it but the idea seems promising.
EDIT: This service provides automated-deployment to it's own cloud, so it is not suitable solely for CI testing, but is still interesting if you use it, as a cloud service provider.
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 4 years ago.
Improve this question
Is there an implementation of the fix protocol running under mono (either free or commercial) ?
I found the following ones, but none indicates if the code it's mono compatible :
QuickFix
VersaFix
Onixs
B2Bits
RA-Cheetah
I tried the 2 open sources solutions :
QuickFix doesn't work on Mono because the .net bindings are developed in C++/CLI, which is not supported by Mono.
VersaFix however does run under mono without any changes, and its performances are quite similar under both platforms.
One possible solution: http://www.fixprotocol.org/discuss/read/adec4479
Other than this, there is nothing specifically designed that I know of, but it does look like each of the engines you mentioned does have a separate forum or mailing list you could try.
I can tell you that the way QuickFix is designed can be a real pain due to the way is uses identical classes in separate namespaces for each version of FIX.
Sorry dont have a better answer, good luck.
I suggest using the MoMA tool provided by http://www.mono-project.com/MoMA. I took the first one you specified "QuickFix" and downloaded the Binary version and scanned it with MoMA. The result was 273 Method calls that are not implemented.
It may sound like a lot but just like compiler errors, you fix a couple of things and the number goes down fast, also you have good odds that the parts you need will be fine and with the source for QuickFix available you may be able modify the code as needed or just throw some try{...}catch wrappers around those problem functions that you do need to use.
Of course you can try the same thing on the other available products, I just tried the first one. I believe MoMA will also work on obfuscated code, so you could test it on trial versions too.
I'm looking into Quickfix/N, which claims to be an open-source native .Net port of Quickfix, without native C++ bindings. In fact the API looks very similar to Quickfix/J (The java port). I will update this post if I find it not to be Mono-compatible.
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 8 years ago.
Improve this question
Due to my next project (much SOA stuff) I need a component based configuration and stored in a database to enable a central administration. app.config/web.config does not support any of those requirements (I know some hacks with app-domains, though). So does anybody of you know a configuration framework? It does not necessary have to be free of cost.
I know how to google ;-) but I'd appreciate some experiences about a framework you already used.
Thanks in advance!
Flo
I also work on a big SOA project. We are using Nini and it is quite good.
Here are some of the features :
Multiple configuration types INI,
XML, Registry, and command line
Strong variable types String,
int, float, etc. Eliminates casts
Set and save Add, remove, edit,
and save configs
Lightweight and fast Small
footprint, built for speed
Merging Merge several configs
into one
100% free Free and open source
code
Value aliases Add aliases for
unclear variables
Key value replacement Replaces
values with other key values
Cross platform Run on .NET/Mono
Linux/Mac/Windows
INI parser Contains a 100%
managed INI parser
Fully documented See the Nini
manual and API reference
Unlimited files/sources Loads an
unlimited number of files
Compact Framework Supports the
.NET Compact Framework
Command line application Has a
command-line configuration editor
Mature and stable Over 140 unit
tests
Have a look at it.
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 2 years ago.
Improve this question
I'm hoping to find an open source .net common library, but I'm having a hard time finding one.
What I'm looking for a is something that contains : Logging, Caching, String Manipulation, Config Reading, ext?!?.
Do you know if anything like this exists or is this more likely something that I will need to create myself?
Use Microsoft Enterprise Application Blocks
Get it from here
http://msdn.microsoft.com/en-us/library/cc467894.aspx
Source code here
http://www.codeplex.com/entlib
Microsoft Enterprise Library - Built by Microsoft, source code is available
Spring.NET - Open source development framework
Kev:
Just a bit more elaboration, I've spent quite a bit of time trying to reuse code from other frameworks:
Here is a breakdown based on feature sets:
Infrastructures frameworks( config, logging, caching, etc)
SpringFramework.NET - ( Port of the popular Java SpringFramework )
Microsoft Enterprise Library - Microsoft "answer" to SpringFramework.
Frameworks providing ActiveRecord or Ioc(Inversion Of Control) or Code generation:
Castle Project
http://www.castleproject.org/index.html
SubSonic
http://subsonicproject.com/
NetTiers
http://nettiers.com
Finally, you may find many other smaller libraries, frameworks on CodePlex.com
Some that are of note:
CommonLibrary.NET
http://commonlibrarynet.codeplex.com/
DotNet Commons
http://dotnetcommons.codeplex.com/
All that is built into the framework, so all you really need is mono.
Check Nido Framework too
Nido is a code framework, a common project, an architectural pattern, written on Microsoft .NET/C# 4.5, to help software engineers to develop their systems faster.
Other than automatically building/ architecting the back end code for you.. it also help you in
Handling of log-in exceptions, display user friendly messages, tracking errors.
Tracking changes done to important data items which is also called audit trails
Validating records and encrypting sensitive data to protect their privacy
Controlling complexity by mean of handling complex problems in one standard way
Set standards pattern for coding
Logging - have a look at Log4net