I know Visual Studio 2010 has a new Code Analysis tool built in, but that is only for the premium and ultimate editions. From what I can see the latest FxCop supports .NET 3.5 SP1. Searching I wasn't able to find any references to an FxCop for .NET 4.0. Is there plans to continue to offer FxCop and for it to support .NET 4.0? Where would I find more information about it and download it?
The latest version of FXCop (v10) is bundled with the install of the latest Windows SDK for Windows 7 and .Net 4, released on 5/19/2010. From Microsoft - Full ISOs
Once the SDK is installed you can find the FXCop installer EXE under %programfiles%\Microsoft SDKs\Windows\v7.1\Bin\FXCop (This assumes you kept the default install directory when installing the SDK).
Enjoy.
FxCop is now enhanced to work with .NET 4.0. You can find it here:
http://blogs.msdn.com/b/codeanalysis/archive/2010/07/26/fxcop-10-0-is-available.aspx
New version is marked with 10.0 just like Visual Studio.
I googled for FXcop 4.0 and found the following a helpful links:
http://social.msdn.microsoft.com/Forums/en/vstscode/thread/74b2815a-626d-4aef-a08a-14c2fa72b506
Looks like its not yet out but FXCop support for .NET 4.0 is planned.
An alternative to FxCop rules would be to use the tool NDepend. This tool that lets write Code Rules over C# LINQ Queries what we call CQLinq, supports .NET v4 and v4.5, and is integrated in VS 2012, 2010, 2008. Disclaimer: I am one of the developers of the tool
More than 200 code rules are proposed by default. Customizing existing rules or creating your own rules is straightforward thanks to the C# LINQ syntax.
Rules can be verified live in Visual Studio and at Build Process time, in a generated HTML+javascript report.
Related
Where can I download the Microsoft HTML Help 2 compiler (or bounding SDK)? I want to generate HTML 2 documentation from my programming projects using Sandcastle Help File Builder and the Sandcastle Guided Installation wizard is instructing me to download that component.
Excerpt about HTML 2 taken from Sandcastle main page:
The HTML Help 2.x output includes a
valid set of collection files and an
H2Reg.exe configuration file to
simplify deployment and integration of
the help file into existing
collections such as those used by
Visual Studio.
The HTML Help 2 compiler is available from Microsoft in the Visual Studio 2008 SDK 1.0 download.
(You shouldn't need to have Visual Studio 2008 IDE installed to have these SDK tools.)
Apparently the file needed is hxcomp.exe
After installation of the SDK (on x64 system) the needed file was installed here and the Sandcastle Wizard found it.
C:\Program Files (x86)\Common Files\microsoft shared\Help 2.0 Compiler\hxcomp.exe
On an x86 system it would be found under the regular Program Files folder name.
Addendum Notes: About tracking down the answer, etc:
According to a CodePlex Sandcastle Help File Builder forum post:
So I checked my installation, and it
appears that I don't have HXCOMP.EXE
installed on my machine anywhere.
According to this article, it's only
in version 1.0 of the VS 2008 SDK. I
have Visual Studio 2008 installed.
-- http://shfb.codeplex.com/discussions/212256
The article referenced in the above post mentions:
Where can I download HxComp.exe?
VS 2010 doesn't use MS Help2 format so there is no Help2
compiler available for it. Starting
with VS 2010, the new MS Help Viewer
format is used
For VS 2008 hxcomp.exe is a part of VS 2008 SDK version 1.0. Note, the
latest version VS 2008 SDK doesn't
contain hxcomp.exe, so you need to
install version 1.0! It is probably
possible to install version 1.0 and
then the latest version over it.
For VS 2005 hxcomp.exe is a part of VS 2005 SDK.
For VS .NET 2003 hxcomp.exe is a part of VSHIK 2003.
For VS .NET 2002 hxcomp.exe is a part of VSHIK 2002 (Visual Studio Help
Integration Kit v2.1).
-- Excerpted from http://www.helixoft.com/vsdocman-faqs/where-can-i-download-hxcompexe.html
Although I found the solution by installing the recommended VS 2008 SDK 1.0, you might use one of the alternate sources listed in the points.
I would like to use Nemerle to write parts of a .NET application. Is there a plugin for Visual C# 2010 Express?
The only one I found returns an error because it is thought for a different version of Visual C#.
The plan is to release Nemerle 1.0 with full 2008 integration ASAP, then work on 2010. There are major differences between these versions of Visual Studio.
There is no full working add on for VS2010 right now.
There is some early stage work.
If you wish, you can help with this project.
I have a old web application developed in .NET 1.0. How can I do some minor changes in it? What Visual Studio do I need and how do I obtain it? Or can I develop in some other tool?
Thanks in advance!
It was called VisualStudio.NET, followed by Visual Studio 2003 (also known as version 7.1).
I don't think this is available anymore, unless you have a pro MSDN subscription or above.
Visual Studio 2005/2008/2010 cannot be used for this, nor can mono-develop, but you might be able to use the version of SharpDevelop that supports 1.1.
You'd need Visual Studio 2002, it targeted .NET 1.0. That edition didn't last long, Visual Studio 2003 and .NET 1.1 quickly followed. Your project should have good odds opening and running properly on that edition. Odds get lower once you move to VS 2005/8 and .NET 2.0+
If you don't have VS2002 then you can obtain a license through an MSDN Library subscription. An auction site like Ebay is a cheaper alternative.
It was originally called Visual Studio.NET but later on also got referred to as Visual Studio 2002.
I looked it up and apparently you can still download it if you have an MSDN subscription.
You can use VS 2005, VS 2003, or VS 2002. I think the 2002 edition was called VS.NET.
From http://weblogs.asp.net/scottgu/archive/2007/06/20/vs-2008-multi-targeting-support.aspx
What about .NET 1.0 and 1.1?
Unfortunately the VS 2008 multi-targeting support only works with .NET 2.0, .NET 3.0 and .NET 3.5 - and not against older versions of the framework. The reason for this is that there were significant CLR engine changes between .NET 1.x and 2.x that make debugging very difficult to support. In the end the costing of the work to support that was so large and impacted so many parts of Visual Studio that we weren't able to add 1.1 support in this release.
VS 2008 does run side-by-side, though, with VS 2005, VS 2003, and VS 2002. So it is definitely possible to continue targeting .NET 1.1 projects using VS 2003 on the same machine as VS 2008.
Take a back up of your project.
Try to down load visual studio express 2008 version and open the project. you will have an option to convert. Once converted download the latest visual studio express and then convert into the latest version.
BTW Visual stuido express is FREE
Note:
Some of the methods may not be supported or droped. you need to recode them or replace them.
I am going to install Visual Studio. I want to know if the latest version of Visual Studio 2010 is backward compatible with previous versions like VS 2005 and 2008. Or is the code functionality and deploy-ability more dependent on the .NET framework version.
I am trying to use a code which will be built into dll. I am not sure in which version of VS the code was written(most probably VS 2005).
Thanks...
I would suggest to go with the latest Version.
VS 2010 can target multiple frameworks.
http://msdn.microsoft.com/en-us/library/bb398197.aspx
So the dll should know with which framework it was compiled...
I have never found any issues with Visual Studio 2010 and previous versions' code. It also does feature significantly improved Intellisense and [IMHO] faster building.
they are all backward compatible
2005 and above allow you to target the framework you want when creating
the project
if the project is older
than the VS, it will prompt you with
a migration wizard upon opening
it(this is a one time only step.
Couple of things to note that i've found with 2010 which have caused us a couple of issues:
1) NHibernate (Castle Proxy) doesn't work with .net framework 4 (Currently)
2) Test Projects are always created aimed at .net framework 4, and you cannot target a lower version of the framework.
Otherwise not many problems, its also nice that the database addition of Visual Studio 2010 has intellisense on your tables/views, as well as many other changes
Always go with the latest, now 2010
Will Visual Studio 2008 be supported by new .NET 4 from the get go?
I'm particularly interested in the System.Collections.Concurrent namespace and the parallel task library, which I would use immediately.
Is it worth upgrading to Visual Studio 2010 when it comes out?
No. VS2008 will not be able to target .NET 4.0:
[...] Visual Studio 2010 supports .NET 4 and earlier projects. Visual Studio 2008 supports .NET 3.5SP1 projects.
Source, comment posted by Polita Paulus
While you can't use .NET 4.0 itself from VS2008, if you're interested in the Parallel Extensions stuff, you could download the Reactive Framework (formerly LINQ to Rx) which I believe contains at least a lot of Parallel Extensions backported to .NET 3.5 SP1.
From the Release Notes, it includes:
System.Threading, backport of Parallel Extensions for .NET 4 to .NET 3.5 SP1
Task for executing asynchronous operations.
Concurrent Collections such as ConcurrentStack, ConcurentQueue ad ConcurrentDictionary.
PLINQ for writing parallel queries.
addition Threading operations such as Barrier,SpinLock and SpinWait.
If you want to know whether upgrading to VS 2010 will be worth it, then download beta 2 now, and try it out. Run it in a virtual machine if you don't trust it on a normal development machine. Run through some of the PDC videos showing the new features. Go through the Training Courses.
And above all, tell Microsoft what you think.
Historically - No.
Starting with 2008 the IDE has been able to target lower version frameworks, but I doubt they will ever target a newer version framework.