Is that possible to add CodeContracts library to Visual Studio 2005? - visual-studio-2005

I was just wondering, would I be able to add and use CodeContracts under System.Diagnostics in Visual Studion 2005?
Thank's

It appears that the answer is no.
https://social.msdn.microsoft.com/forums/en-US/10f23fc4-d9cb-44e2-98a8-36488e7c9f9c/code-contracts-and-vs2005
Given that you can only "prove" an application correct using the more expensive SKU, Code Contracts sort of acts like fancy assertions, which you can simulate withe the Should Library:
https://github.com/erichexter/Should
Or upgrade to a newer version of VS.

Related

Remove c++ langage and unnecessary package from visual studio 2012?

i want to remove c++ language development from visual studio 2012 express for desktop to be faster, i just use c# and Wpf, plus my pc is not so fast.
so using the Total Remover app let me chose the packages to remove
bat i don't know what to uninstall exactly may i get some help on this ?
i just use c# and wpf. what is the unnecessary package to remove from the list.
without breaking visual studio.
And thank you
Usually, if the modules are not loaded, it won't impact your performance. Unless you had very serious storage issues, you should not worry, it probably won't make it run faster.
Have you tried running the installer again? It may offer you some options.

Tool "Code Map" of VS2012 in VS2010

I'd like to use Code Map, which can be used in Visual Studio 2012, also in Visual Studio 2010.
If you don't know what Code Map is, this is how it looks like:
here's a tutorial from Microsoft: http://msdn.microsoft.com/en-us/library/vstudio/dn194476.aspx
Is it somehow possible to use this in VS2010 or is there any similiar tools, which displays the different method calls? By this I want to display a method Method1() which calls another method called Method2(). This should be displayed like in the CodeMap (not by using hierarchy call, I want to see it with a UI). It should be free or an extension for VS2010.
I'm not aware of a free version that offers something that the Visual Studio 2012 Ultimate Edition offers, but you have a few alternatives:
NDepend features a Call Graph option
You can open the VS2010 solution in VS2012
Debugger Canvas offers a similar feature while debugging
Architecture Explorer Dependency Graphs and Sequence Diagrams

What development tool should I use to code in F#?

I got started with F# back in the day (before VS2010 beta); at the time, if I remember correctly, there was not an Express version of F#, but one could use the VS Shell (I think that was the name) and then install F# on top of it.
What's the current state of affairs? I've read out there that there's no 2010 Express version of F#; is there a 2010 Shell that one can download and install F# latest on top of? If not, what's the best way (if any) to code in F# 2010 for free?
I'm aware that asking for free stuff is A LOT to ask for. But this was possible in VS2008 and I'm wondering if it's also possible in VS2010.
Thanks!
PS - I believe (not sure though) that VS2010 beta can be downloaded for free; the problem with that is that when the final release comes out, one will have to pay for a license. For a guy who codes for fun like myself it doesn't make much sense to buy the full version if I can get the very basic features for free...
See
https://stackoverflow.com/questions/734525/getting-started-with-f
Basically right now you can use the free VS2008 integrated shell along with the F# CTP, or use the VS2010RC (which is free as a Beta).
(I don't know if there is a VS2010 shell published yet, and I don't know if the F# CTP works with it; for the moment, your best long-term-free strategy is to use 2008.)
I think you can also use SharpDevelop with F#:
http://www.icsharpcode.net/OpenSource/SD/Features.aspx
If you mean visual F# the best tool is Visual Studio 2010 RC:
Check out these links :
Creating Your First F# Program with Visual Studio
Using Visual F# to Create, Debug, and Deploy an Application
**[Update]**Check out this link too:Features of the Visual Studio 2010 Release of Visual F#

VS2005 and LINQ

Can I use LINQ within VS2005 if I have .NEt 3.5 installed?
The thing to remember is that at it's core Visual Studio, like any IDE, is a glorified text editor with an integrated debugger, and maybe a few other features as well. You could certainly use Visual Studio 2005 to input the code text of your linq program and then use the .Net 3.5 command line compiler to build it. You might even be able to find or write an add-in to automate the build process.
That means the technically correct answer to your question is, "Yes."
However, you won't get any extra IDE support:
Incorrect/broken intellisense.
Incorrect/broken syntax highlighting
Inability to work with .Net 3.5+ solution files.
No debugger support
The result is that you would probably be better served if I had simply said, "No."
If you already have 2005 but not 2008, you have a few options:
Get the 2008 Express Edition
Use a third-party tool like #Develop
Buy a 2008 full edition
There is no direct compiler support for LINQ in VS 2005.
You can still use the LINQ namespace and methods, however, it is not as elegant as using it in VS 2008.
See this article for details.
Vs2005 and C# do not directly support Extension Methods, Lambda Expression, Anonymous Types or Expression Trees which are key enabling features of LINQ. Some of the early LINQ betas did work with VS2005 and C# but none of the release products.
Likely the same for VB but I can't directly comment on VB other than I am about 99.99% sure you can't.
Simple answer is no.
LINQ relies on language features (such as extension methods) that VS2005 does not support.

Do I need to buy Visual Studio Professional?

I have been using Visual Studio Express versions. I used to use the full Pro VS 2005. I can't figure out what I am missing with the Express version. What benefits will I get if I buy the full version of VS?
Here you go. This link is vs2005 specific rather than the more-recent 2008, but that's the version you asked about.
Some highlights:
No Mobile Device support
No Object Test Bench
No Extensions
No built-in source control support (they should really change this)
No remote debugging
No Office Development support
No 64-bit compiler support
No Visual Studio Package support
No profiler
No SQL Server debugging integration
Limited deployment options
This list is actually quite lengthy, but with the notable exception of source control they are mostly things you might be able to do without as a single developer, if you really have to. Even the source control can be handled by a file-system-only tool like Tortoise.
Obviously if you're building something like a smart phone app or VS extension it's a non-starter, so you'll need to evaluate what you're really doing. Some of the other missing features like object test bench or the profiler can be partially replaced by third-party tools.
Here's a link to a downloadable Visual Studio 2008 Product Comparison Guide from Microsoft.
The full version of Visual studio supports some extra features and tools.
One of the big differences is more debugging options (You can specify break conditions for debugging, unlike the express version). That feature alone is probably worth it.
You can also install 3rd party addons to add extra featues.
No Resharper.
also, you can add addins like VisualSVN and Resharper into pro. You can't into express.
Matze might be right - MS needs the money - 5K people layed off today, and only 4.7b profit! :(
Depends on what you do. Look at the product matrix to see what features you gain with higher SKUs. Testing, Smart Devices, etc may or may not be relevant for you.
This really just requires a bit of Googling.
You can view a comparison of the paid versions here and an overview of the Express versions here
Have a look at this:
http://blogshare.members.winisp.net/docs/VisualStudio2008-ProductComparison-v1.02-Revisions.xps
If you are doign any sort of professional development with Visual Studio you should buy the Standard edition at a bare minimum. Without it you will loose Source Control integration which IMHO is vital absolute must no questions asked must have for professional development.
I used VS2003 for a while, and am currently using VS2008 C# Express.
Personally, I miss the ability to set a conditional breakpoint instead of simply breaking when a line is hit, and the Threads window.
Support for code version systems is a feature that is real essential.
And Microsoft needs your money to go on implementing new, hot stuff.

Resources