Actually in VS2010 professional edition, there was no code contracts. I had installed the standard version of code contracts.
Now in the Visual Studio 2010 > project properties > I get the code contracts tab.
My Question is if i have used the code contracts in my code, do i need to ship my project with any special dll or other thing so that the code contracts work after deployment.
Also, i am not currently planning to purchase the professional edition of code contracts. kindly explain me.
* Newly Added *
I would like to know whether using this mechanism will affect the use of Enterprise Library features like Unity & Exception logging. Also will this work for WCF, because if some new C#4.0 features are not supported in WCF.
I can't answer all of your questions but I can say that Code Contracts can be used in VS Professional edition but to get build-time checking to work in Visual Studio you will need VS Premium and up from what I understand.
Also if your interested I did put in a feature request to support Code Contracts in all editions of Visual Studio and I could use a little help adding some votes to it to get some attention from Microsoft.
Apparently they have the made the static checker available to all editions of Visual Studio in their 1.4.412128.0 release (December 28, 2011).
Check the release notes and you can download the latest msi here.
-Hope this helps
Related
Can I use Roslyn and all its tooling in Visual Studio 2015 Community edition?
I am about to download the community edition and it's a big decision for me given that I have a single piece of hardware, my laptop, which I use for everything, and the only reason I am going to download 2015 is because I want to practice coding Roslyn, which is not available in the VS 2013 or earlier expression editions.
"Roslyn" is just the compiler platform in Visual Studio 2015. So yes, the Community edition has Roslyn.
We've been referring to it by its code name for so long that it's not really clear, but "Roslyn" is simply a rewrite of the C# and VB .NET compilers in managed code. On top of the compiler platform, you can write extensions to interact with code and the IDE as it's parsed in the form of quickfixes and refactorings.
The Visual Studio Community editions are nearly functionally identical to Visual Studio Professional, albeit under different license terms. This includes extension support.
The Roslyn GitHub page has awesome documentation to help you get your head wrapped around it.
Can I create ASP.NET-5 projects in Visual Studio 2013 somehow?
Also share please links with documentation, examples or anything that could help to create project using mvc6 that used to be on web api.
The simple answer is not. I'm pretty sure, vNext is such big change in Microsoft technologies that they will not put any effort in adding that vs2013, you can get vs2015 community edition is very complete free version of visual studio.
this link is very good starting point.
For past express editions, I've been able to find a "compare editions" page that shows what features are available in express, professional, ultimate, etc. Something like this.
However, every comparison table I've seen so far omits the express editions. Surely Microsoft must have a list of things you get by upgrading to Visual Studio Professional from an Express Edition--after all, it's a free product, and they would like you to upgrade to a paid product! So, where have they hidden this feature comparison table, or "reasons to upgrade to Professional" list?
As far as I know there is no single table with a summary.
It depends on which version of express your talking about. Express is split up into a lot of different SKUs based on the type of product you're building; Web, Phone etc. Which is probably why there isn't an entry on this table for Express. 2013 was a point release to 2012 and there is a comparison of Express Web 2012 to Pro on MSDN.
The biggest single difference is that you cannot run plugins in Express. This means no Resharper, Test Driven .NET etc. This also applies to some plugins that you might consider to be written my Microsoft because they were not part of the official Microsoft release, for example plugins written my various other groups. This is a long-standing gripe for users of Express and looks like it is still the case for 2013, How to install Nunit plugin in Visual Studio 2013 Express?.
I was very surprised when I downloaded Visual Studio 2013 Express Edition for web development on my new Windows 8.1 machine, and it was starkly different from what I believe is the identical product that I have been using for a while on a Windows 7 machine.
For example, when creating a very small demo app using Web API (from the asp.net website), the "New ASP.Net Project" wizard did not offer Web API. And the new project did not include the App_Start folder, which would include code for things like routing.
I tried to use NuGet to add the essential features, but no luck. That tutorial only took a few minutes on Windows 7, but was a miserable failure and an hour I will never get back on Windows 8. I don't really understand Microsoft's strategy here.
From what I observed Visual Studio Express 2013 doesn't come with a 64-bit compiler.
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC>vcvarsall.bat x64
The specified configuration type is missing. The tools for the
configuration might not be installed.
And since the Win 8 SDK doesn't provide compilers anymore either, it appears like you must pay for Visual Studio 2013 Pro or you won't be compiling 64-bit binaries.
"The Windows SDK no longer ships with a complete command-line build
environment"
https://dev.windows.com/en-us/downloads/windows-8-sdk
I'm in the process of deciding whether or not to use Visual Studio 2012 Express for Desktop or purchase a retail copy of Visual Studio 2012 Professional for my desktop program. The program is built using C# though portions of it may include F#.
From what I've gathered so far, the express edition supports NuGet, Unit Testing, and Code Analysis. It mentions a subset of Code Analysis rules are used but I'm unsure how they compare to the professional edition as well as FxCop/StyleCop.
I'm assuming the express edition lacks extension support but the only extension I really cared about was NuGet. I also assume it doesn't include a TFS CAL despite having the ability to connect to TFS. This again isn't an issue as I'm using Perforce for source control. I also understand that this version is limited to desktop style applications only, but have so far only seen mention C++ and C#. Does it support F#?
Can someone clue me in as to any other limitations of 2012 Express for Desktop? Are there any license limitations for developing a commercial application?
In the past, MS included express editions as part of their version comparison. But when they updated their site for 2012, they separated out the express editions and offer little to no detail.
There are few limitation I can gather :
First of all there are different IDE's for different use
Visual Studio Express 2012 for Web.
Visual Studio Express 2012 for Windows 8
Visual Studio Express 2012 for Windows Desktop.
Visual Studio Team Foundation Server Express 2012
Express editions of the IDE omit the following features included in the Professional editions
Multi-unit testing framework and refactoring support
Static code analysis, profiling, and HLSL editing and debugging
Third-party extensibility support (though the Extension Manager feature is still present)
OpenMP support
But there are few positives I explore in 2012 :
Unlike previous version
Solution is allowed, you can create multiple projects in a single solutions.
64bit compilations support is there.
If working in single or less than 5 person team, express is the way to go.
It definitely bring much more new and unlock features than it predecessors.
As you receive a product key if you register I think it confirms that you then are free to use VS 2012 Express as you like.
http://www.microsoft.com/visualstudio/eng/downloads#d-2010-express say:
"After installation, you can try this product for up to 30 days. You
must register to obtain a free product key for ongoing use after 30
days."
"Productivity Power Tools 2012" cannot be installed on VS2012 Express edition, hence such features like "Entity Framework Reverse Engineer Code First" won't be available, which is critical to migrate existing apps's DB into Model's classes.
Portable Class Libraries are not supported in express versions. (You can reference PCL dlls, you just can't work with PCL projects.)
F# is available for VS Express 2012 for Web
http://blogs.msdn.com/b/fsharpteam/archive/2012/09/12/announcing-the-release-of-f-tools-for-visual-studio-express-2012-for-web.aspx
Looks like NuGet worked with VS 2010 Express Web so I would expect it to work with 2012
http://docs.nuget.org/docs/start-here/nuget-faq
Professional gives you a lot of the profiling and static analysis tools. I couldn't find out how the FxCop rules differ.
I am very impressed with the Microsoft Code Contracts.
Unfortunately the static analysis is only available in Visual Studio 2008 Team System and Visual Studio 2010 Premium.
We are happily using Visual Studio 2008 Professional (without MSDN). Upgrading our Visual Studio license from pro to premium is way to expensive.
Is there a good alternative?
Take a look at the MSDN Ultimate Offer for Devs. It's not cheap, but it's a lot less expensive than 2008 Team Suite. Then you can use Visual Studio 2010 from now on with Code Contracts. :)
Also, Code Contracts is different from FxCop, where the latter is what everyone is going to think you're talking about when you say "static code analysis."
I personally use the following tools to help with my code analysis needs:
CodeIt.Right can be used as an analysis tool.
FxCop quite extensive and thorough and also free
CAT tool 1.1 is a simple tool to help identify security flaws in managed code.
Concerning code contracts, take a look at DevLabs portal and click on the "Projects" link to link you to the Code Contracts project available for Visual Studio 2008 and Visual Studio 2010
The compiler that comes with the platform SDK has static analysis for free.
cl /analyze. You can configure your IDE to use it.