Source Control for Self-Managed Project [closed] - c#

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
What source control would be recommended to use for a self-managed project? It's a C# WPF project on Visual Studio 2010.

Use Mercurial with it's, probably, best Windows Desktop client TortoiseHG.
If you would like online repository, you can use GoogleCode. For local, fast changes, or some experimental stuff you can use a local one, provided by Mercurial itself, like all standard Distributed revision control system.
If you want good information on the management of Mercurial in general and HG in like a client, you can have look on excelent article from Joel Spolsky:
Hg Init: a Mercurial tutorial
There are also other alteranatives, like Git, for example, but honestly, I find Mercurial much easier to manage and understand and much more suitable for simple personal projects than Git or any other. It perfectly combines, in my opinion, the power of distributed system (with probably less functionality than Git offers, but do you really need all of that functionality??) and simplicity of control, which is the main point on my opinion.

If you do not want to set up your own repo, you may use bitbucket.org.
It is free for private commercial repos and works with bot git and Mercurial.

Personally ? I'd use git / tortoisegit.

I would recommend Team Foundation Service. It's still in preview and it is completely free.
You can subscribe at http://tfspreview.com
It integrates nicely with Visual Studio. You dont't have to install anything or worry about backups.

AnjhSVN (VS Plugin), using TortoiseSVN. You will also need an SVN Server. All three are free.

Related

Create Installer out of .exe file [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I let the Crypto Obfuscator run over my program and i got an .exe file with all DLLs and everything in it. Thats really great but i need to create an installer out of it.
It should cost no time and have a graphical UI!
Whats the best (free) way to do this?
Are there any programs?
There are a few solutions:
Inno Setup and NSIS are popular free and open source scripted installer creators.
If you prefer having a graphical interface, the free InstallSimple and Clickteam's Install Creator are common choices.
For more alternatives, Wikipedia has a page entitled "List of installation software" providing a decent overview of what's available.
(Sorry about the lack of hyperlinks - the site's spam prevention system won't allow me to post more.)
Its in Visual Studio :)
http://msdn.microsoft.com/en-us/library/2kt85ked.aspx
You can use Nullsoft Scriptable Install System

Smart refactoring using Roslyn CTP [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I'm running some analysis tools on our build like StyleCop/FXCop.
What i'd like to achieve is auto-correct some of the warnings produced by these.
Do you think this can be done using the Roslyn CTP? is there any other tool that allows:
Scanning my code text for some rule not being followed.
Replacing this with the correct code.
Some of the operations can be done using a simple text replace of the VS editor, but more complicated things require use of some other tool.
So my question is - to this end, is the Roslyn CTP the tool to use? or what other tools exist for .NET for doing this?
This is certainly one of the scenarios that Roslyn addresses. Take a look at this walkthrough that demonstrates how to write a "Quick Fix" using Roslyn. In fact, the CTP also ships with a couple of samples that demonstrate how one could write stylecop / fxcop style rules using Roslyn.
You can also glance through this document for an overview of the overall scope of the CTP.
Disclaimer: I work for Microsoft on the Roslyn team.
OP asks, "what other tools exist for .NET for doing this?"
Our DMS Software Reengineering Toolkit is a source-to-source program transformation tool.
DMS can parse, analyze, and transform source codes for many computer languages such as C++, Java, COBOL, and particularly including C#. It can also handle multiple languages simultaneously.

continuous integration tools for visual studio [duplicate]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I'm looking for a lightweight, easy to setup CI server that I can run on my laptop along with Visual Studio & Resharper. I'm obviously looking at all the big names like CruiseControl, TeamCity etc etc but the biggest consideration to me is ease of setup and to a lesser extent memory footprint.
Edit: I'd also like some suggestions for other solutions outside the big 2/3...
Edit: I'm about to accept an answer if no one else has anything to add?
I use TeamCity, and is really, really easy to setup and get it running.
Check the Demos and Documentation. You will have it up and running in less than one hour!
I have just started to use CruiseControl.NET.
With no prior knowlege I was able to get it up and running with a single test project using MSBuild, MSTest and Team Foundation Server (i.e. CodePlex) in a couple of hours. I posted a bunch of links to useful resources here Devsta 2008 Day 0: Source Control and CI
I can't help on memory footprint as my project was pretty small. I can tell you that while it's not doing anything (i.e. most of the time) it is using ~5MB on my system. In fact the Tray Icon notifier that comes with it takes up more memory than the service at about 6MB. That goes up when it does stuff of course.
Hudson (update: Jenkins 1) is extremely easy to set up, and managing jobs (projects) in it is certainly a breeze compared to e.g. CruiseControl. It works great for a solo developer too.
For more, see this answer about using Hudson specifically in a .NET environment.
(1 Background info about Hudson/Jenkins situation: How to choose between Hudson and Jenkins?)
For ease of use, I have found CruiseControl.Net to be very easy. Now when it comes to memory footprint, I'd have to say it does chew up my system. That is that a development box that also hosts CruiseControl.Net is not a good way to go. Unfortunately that is all I had access to when I used it in the past.
I can't speak to the other tools.
I use CI as a Solo Developer.
When I merge my dev branch into my test branch, CI grabs the code, compiles it, modifies the connection string, changes a couple of app settings, and copies it up via Beyond Compare to my test site for people testers to have a look at.

What are some of the best-written open-source projects you have seen? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
What are some of the open source projects out there that you would hold up as shining examples of projects that correctly and effectively use enterprise sofware patterns and best practices such as Inversion of Control, Model-View-Controller, Unit Testing, etc.?
For purposes of this question the project should:
Include source code that illustrates the pattern in use, and
Be doing something important and useful, i.e. not using the pattern frivolously just because it is flavor of the week. Hence the words, "Correctly and Effectively" in the question
It should be software that you could show to the people who work for you and enthusiastically be able to say, "I want you to do it the way these guys did it."
Most of the GNU project is very very well written, over a very long period of time, with strict guidelines.
Prism is very good for MVVM in WPF and Silverlight
patterns they use Patterns in the Composite Application Library
An objective pick would be the Spring Batch project.
How did I pick it? Judging from the technical debt as seen on the Nemo Sonar instance, Spring Batch has the lowest debt/line ratio for projects larger than 10k lines of code.
When I first looked at the source code for DotNetBlogEngine, I was impressed at how well it was organized. And it didnt couple any of its components to the interface, making it extremely flexible.
It's not a terribly huge project either, not like trying to recompile your own linux kernal or something. So you can dive in quickly and have some fun with it.
Castle project
You can try this book - Beautiful Code
The author has collected some experience-sharing articles of open source projects. e.g. Python's Dictionary Implementation, Subversion's Delta Editor, etc.
You mean Spring? Or projects that use it?
UPDATE: WebWork, Guice, and Spring Security all fit the mold.

How can I use VIM to do .Net Development [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Visual Studio is the defacto editor, but what are our other options that avoid a heavy UI while still integrating with a C# build chain?
Looking for options which preferably use vi or vim directly, and those which emulate some or all of the functionality of vi and/or vim.
Here is a guide on Vim C# compiling.
In response to the comments -
It sounds like your goal is to have a fully functional IDE that works cross platform for C# development, not necessarily to use VIM. If that's the case, you can use MonoDevelop on all platforms (including Windows, but that's a bit trickier), and since you're probably already using the mono compilers on your other platforms, this might be a nicer option.
I'm not connected with the company in any way, but I've heard very good things about ViEmu. If the price were a little lower, I'd get it myself, because I love the editing power of Vim.
Right now there's now something called OpenIDENet from ContinuousTests https://github.com/continuoustests/OpenIDE
This along with AutoTestNet and EditorEngine provide a seamless Test Driven Development tooling for VIM.
EditorEngine gives AutoTest capabilities & commandline interactions to VIM ( ie. adding references, new projects to a solution etc. )
AutoTest does the heavy lifting by compiling on save; as it watches a directory. It also feeds back when tests fail.
The main page provides a video demonstration & howto for this tooling.
Also on windows NuGet is now available to be used from the commandline too.
I must point out that I do not work for continuoustests or get any money or favor from them, it's just that they produce awesome software for developing with.
MSBuild is a very powerful analog to Ant.
Use msbuild project files to manage your .NET projects, and write a nmake file that calls msbuild.
Map your vi make command to nmake
You can just use :make to do a build
If you are on the latest versions of VS, then the solution files can be built with MSBuild, which is basically a NAnt equivalent.
Otherwise, call csc to compile the files yourself.
I use nant as a build file (very simple and flexible) then call
:set makerpg=nant\ compile.all
Then whenever you wan't to compile just type :mak
This can be extended with custom error formats etc.

Categories