Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
We have a project with over 500,000 lines of VB.NET that we need to convert to C#. Any recommendations, based on experience, for tools to use? We are using Visual Studio 2008 and we're targeting 3.5 .
I would concur with the comment. You have 500,000 lines of tried and true VB.NET code. Why on earth would you waste any time changing that? No one says that you can't write all new components in C#.
I would consider not worrying about a tool and instead ask yourself, truly, why you are doing this?
Reflector will decompile the IL and produce C# for you, it will be rough, but a decent start.
Did this eval a while back. You will find a lot of "free" solutions that are horrible at edge cases. This commercial product http://www.tangiblesoftwaresolutions.com is by no means perfect; but, was the best we could find at the time doing real conversion tests. Note: I am speaking only as a customer. If someone has found a solution that in real-world use produces better conversions than this, please let me know.
SharpDevelop has a converter built-in IIRC.
The converter from Telerik works well.
http://converter.telerik.com/
http://converter.telerik.com/batch.aspx
There used to be an add-in to Reflector which creates a complete Visual Studio solution. However, I don't know if it's still available or working, now that Red Gate has taken over Reflector.
I've used this site for a while now for some of my smaller conversions. It has been quite reliable.
According to the site, their converter is based off an open source IDE that has the converter built in, so you might try the "source site" as well.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I'm new to developing in C# in Visual Studio. While I realize that this question might be a bit subjective, still, what are the most useful extensions out there for a new C# developer using Visual Studio 2012? When I say useful, I mean tools that could guide me to writing better code, point out potential bugs, auto-correct, etc. Tools that would allow me to write better and clearer code while adhering to the style and naming conventions of C#.
As I grow as a C# developer, I feel that I would probably start getting irritated with such auto-correcting tools, but right now it would be really useful. I downloaded Resharper and that seems to be pretty cool and does what I'm talking about. I have also looked at other extensions in the Visual Studio Gallery, but there are so many and it becomes a bit overwhelming.
Any help would be greatly appreciated!
thanks,
Justin
I recently fell in love with Flow.
Apart from that some people would suggest Resharper while others don't. I belong to the first category.
First : Resharper from JetBrains, (paid) this tool totally increase coding speed and are simply comfortable. If you're familiar with InteliJ or PyCharm - you'll feel like home.
Second : I recommend using Productivity Power Tools from Microsoft.
And for manage packages and libraries NuGet
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
<EDIT>
About this question being off-topic and too opinion-based, I'll try to be more clear. My goal was to undestand if such a tool existed, I was not interested in opinions about what was the best one. At the time I wrote this question I spent quite a good amount of time searching the internet and found just old dead projects but such a tool for java existed and I couldn't belive there were nothing for c#.
I think this question is related to programming (code verification), and it is not really asking for an opinion. Also, it's still not easy to find this information and I think my answer could help saving someone's time.
That said, I'm not an expert of stackoverflow, if you still think the question/answer does not fit the site feel free to delete it.
</EDIT>
I've found Moonwalker http://fmt.cs.utwente.nl/tools/moonwalker/ but the last update has been done in 2009 and i don't think it supports .net4.5 (and it's poorly documented).
The answer to this question propose CodeContracts as a model checking tool Model checking tool c# but I've tried using it and I don't think it really is a model checker, not in the same way Java Path Finder for Java is. Im i worng? Can it be used like JPF?
I need to be able to known if a certain part of code is designed in a way that can deadlock. Let's say it's a school thing and even if I'm sure my code is working I must model check it. (Yes we are allowed and encouraged to look on the internet).
As the user #HighCore said, and after lot of searching i can say that a mature and up-to-date tool like the one I described does not exist.
Model checking refers usually to explicit methods, however symbolic methods are equally advanced and arguably more capable for establishing properties of actual code.
For a Turing complete language, the verification problem is undecidable, so model-checking tools usually accept a less powerful language as input. This implies having to convert your problem to that language, before checking. This is why you have not come across any "C# model checking tool".
Have you looked at Boogie and the C#-like Dafny ? These are (essentially) for annotating with Hoare logic.
Alternatively, you can consider model checking your C# solution after (manually) translating it to Promela, then using SPIN.
Related tools (e.g. C-to-Promela translators) are listed here.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
Does anybody know whether it is possible to write a plugin for visual studio 2010 to implement a different key mapping (emacs in particular) for the C# editor? Are there any examples?
EDIT: Lo and behold, Microsoft has just announced an Emacs emulation extension for VS2010 http://blogs.msdn.com/b/visualstudio/archive/2010/09/01/emacs-emulation-extension-now-available.aspx..
It's definitely possible, although I've only heard about Vim implementations as mentioned in this thread: Free vim add-in for Visual Studio?..
It sounds like you're trying to add an emacs emulation mode to Visual Studio. If so that's certainly possible although it does require a considerable amount of work to be done.
It's hard to describe everything in a simple SO question. However there is a large open source Vim emulation mode available on github you can use as a starting point for understanding the work that needs to go into this
http://github.com/jaredpar/VsVim
You might check out XKeyMacs as a more general solution (in terms of what programs it works with) to getting an Emacs interface:
http://www.cam.hi-ho.ne.jp/oishi/indexen.html
I've got this setup to work on VS6, VS.NET, VS2005, VS2008, and VS2010. It also works for pretty much anything that uses "standard" Microsoft keystrokes. You can even apply it to Internet and File Explorer, Firefox, Eclipse, CVI, etc.
It is, however, only for getting an Emacs interface, not a general purpose keyboard remapper.
There is now a plugin by Microsoft to give Emacs keys to VS2010:
http://visualstudiogallery.msdn.microsoft.com/en-us/09dc58c4-6f47-413a-9176-742be7463f92
Of course, this won't work with the Express versions as they don't handle plugins.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
Is there a library that I can use to convert VB.Net code into C#? There is http://codeconverter.sharpdevelop.net/ but i don't want to use it from a web service.
Open your assembly in .NET Reflector. Choose language C#. Copy/paste source code to Visual Studio. Try to compile.
There are plenty online services: Telerik provides one, here's one other and one of the best is on developer fusion. But these are all online.
I've had good experiences with Instant C# of Tangible Solutions, they provide good services for each bug you encounter after conversion. Other than that, many others are available through Google.
If you use Reflector, a few notes: it doesn't translate your source code, but the compiled code. This can make a huge difference in logic inside methods and above all, you loose all your (xml) comments and possibly your file structure (partial classes are not recognized, for instance). Reflector is virtually unusable when it comes to ASPX and inline code. But it is an excellent free tool in all other respects
Just download SharpDevelop 4.4, it contains the same converter for offline use.
Actually, the SharpDevelop converter is even better than the online converter as it can take a look at your whole project and your references.
The SharpDevelop source code repository also contains the full source code for that website. It's all open source.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
C# simple open source desktop application to learn from?
I'm trying to learn C#, but most of the times I found tutorials for non programmers which are pretty boring, or comparission with other lenguages.
I tried to compile an application that look nice enough as to call my attention and simple enough ( at first glance ) as to be understood by me, but it turns out it was developed in Mono.
I've downloaded VS for C# express edition in the past, but didn't knew what to do next with it.
So my question is:
Does anyone knows about a simple open source Windows Application developed in C# I can learn from?
It doesn't have to be too simple, but most of the ones I've looked so far are pretty complex, since they are production ready.
Thanks
If you dont mind wpf, try BabySmash
These aren't desktop applications but they are good open source web applications done mostly in C# that you could learn from.
http://www.asp.net/community/projects/
Have you tried looking at SourceForge or Code Project?
check out http://www.codeplex.com
There are a lot of sample apps for both winforms and WPF over at windowsclient.net. I'm not sure I would call any of them a reference application, but there sure are a lot of them. :)
I've had tremendous luck with Microsoft's SharePoint, and extending it was a lot of fun and very educational WRT c# and learning to use it. Check out pilothouseconsulting's development dvd for a lot of good initial information on setting up a debugger and such.
A very simple command line grep tool I put on google code. You may find that interesting.