Make ReSharper run test using .net Framework 3.5 - testing

I am currently testing sharepoint components using msTest, which works nicely. However, when I run my testst using ReSharper all tests fail because ReSharper (6) is running the tests using .net Framework 4.
Is it possible to configure ReSharper (6) to run all tests using .net Framework 3.5 (CLR 2)?

In case you use Visual Studio 2010: This is an issue in Visual Studio, not in ReSharper.
See Microsoft's answer:
Hi Chris,
In VS 2010, the Test Team has made a painful yet concious decision to
not support multi-targeting. As a result, test projects will be
upgraded to target .NET 4.0. We have made some, workarounds to allow a
VB Test Project that references an MVC code under test to not upgrade,
but in general, all others will be retargeted. The VB 3.5 Test Project
sill has some limitations and will always run tests in a .NET 4.0
process. Also, you cannot take the tests and run them on a VS 2008
test system.
Thanks Visual Studio Product Team.
in site http://connect.microsoft.com/VisualStudio/feedback/details/514130/visual-studio-2010-beta-2-silently-upgrades-mstest-test-projects-to-net-4-0.

Related

VB.NET application requests .NET 4.5 even though I built it to use .NET 3.5

I created an application in VB.NET Visual Studio 2013. I set the target as .NET Framework 3.5 (through Solution Explorer -> Application Properties), but when I rebuild the application and run it in another system, it asks for .NET 4.5 to run the application.
I checked several times, and I have definitely selected only 3.5 in my source.
same problem happened with me
Use ccleaner
clean the cache and regex errors
launch vs 2013 again
( PS : before you build the app select 3.5 framework at the start )

Using FxCop code analysis for .NET 4.5 applications

Is it possible to use FxCop for .NET 4.5 applications?
I am looking to use FxCop with the Visual Studio 2013 Professional edition.
Visual Studio 2013 Professional comes with Static Code Analysis (which is FxCop, just a fancy name for it).
In this link some information is provided:
As a developer, you can run code analysis on your project automatically or you can run it manually.
To run code analysis each time that you build a project, you select Enable Code Analysis on Build (defines CODE_ANALYSIS constant) on the project's Property Page. For more information, see How to: Enable and Disable Automatic Code Analysis for Managed Code.
To run code analysis manually on a project, on the Analyze menu, click Run Code Analysis on ProjectName. For more information, see How to: Enable and Disable Automatic Code Analysis for Managed Code.
This version runs perfectly on .NET 4.5.
FxCop 1.36 is a standalone version of Code Analysis. Microsoft no longer supports or works on the standalone version and currently only working on the integrated version that is included in Visual Studio.
There is a Uservoice going on which asks Microsoft to update the standalone FxCop version. See this link.

Can I install VB6 over VS 2010?

I have already using Visual Studio 2010 for my project. Now I have to work with a Visual Basic 2006 legacy application. Can I install VB 2006 Enterprise Edition on my system?
Will this affect Visual Studio 2010?
Yes. Visual Studio 2010 and Visual Studio 6 will happily install side-by-side.
You can run multiple versions of Visual Studio on the same machine. I currently have VS2003, VS2005, VS2008 and VS2010 installed and am using all of them.
Where you may get into problems is with something like hooking up the older ones to TFS. This can be done, as I have VS2003 and VS2008 connected to TFS2010, but my VS2005 won't work as it whinges about the provider for some reason.
Another area to watch out for is IIS. As you have already installed VS2010, IIS may be defaulting to .Net 4.0 so if you start deploying .Net 2.0 apps then the websites may not work without some adjustment of things like app pools.
But if you are just using them independently of each other then you should be fine. If you're really paranoid, consider creating a VM and installing the old VS on it.
EDIT
I see from your edited post that you were talking about VB6. This also can be installed alongside any of the later versions of Visual Studio.

Targeting .NET 4.0 in VS 2012 on Windows 8

I just installed VS 2012 Ultimate RTM on Windows 8 Pro RTM and tried to open a solution containing several projects (class libraries and WinForms) targeting .NET 4.0.
When the solution is loaded, VS prompts that .NET 4.0 isn't supported. It gives me the chance to update my projects to 4.5 (and promises that I could change the target later) or install a "Multi targeting pack" for 4.0 from this page.
I decided to update my projects to 4.5 because I had no luck installing the offered Multi targeting pack (errors see below).
Unfortunately, VS does not show 4.0 as a target by default (when changing the target for an updated project), but redirects me to the page where I can download the Multi targeting pack.
So far so good, but I wasn't able to install any of the offered downloads (neither runtime nor targeting pack) again.
The error message says in case of .NET Framework 4.0.3 Targeting Pack:
Setup has detected that this computer does not meet the requirements to install this software. The following blocking issues must be resolved before you can install KB2600213 software package.
Installation Requirements:
Microsoft .NET Framework 4 Multi-Targeting Pack was not found. Please repair your installation for Microsoft Visual Studio 2010 in order to get this update.
Strange enough since I have no VS2010 installed.
.NET Framework 4.0.3 Runtime Installation stops with the following error:
KB2600211 does not apply, or is blocked by another condition on your computer.
I've checked that .NET 4.0 is installed (using the .NET Installation verification tool), I've tried to repair VS2012 but nothing let me target .NET 4 and the Event log does not contain any related reports. Any suggestions or hints (besides going back to Win7/VS2010)?
I'm honestly not sure what's going on. I have VS 2012 Ultimate RTM and all versions of .NET are supported.
I'm almost positive I never installed any .NET frameworks manually, though I did install Visual Studio 2010 Express for Windows Phone from http://create.msdn.com.

unit testing vb.net in VS2010 express

What are some easy and simple unit testing frameworks to use with Visual Studio 2010 Express vb.net?
Are there any good tutorials geared towards this?
It may not be true anymore, but previous versions of VS Express weren't able to install any plugins. This meant that you couldn't use the integrated test-runners, but that's really not that big of a deal.
Worst case is that you use VS to write your tests and compile both, then manually run your tests using their testrunner external to VS. The most common unit-testing platform for .NET is nUnit which includes a standalone test runner.
You can certainly install nUnit for VS 2010 Express C# (I just tried this out this morning), so I would think you could for VB. The link is a tutorial/demo for VS Express 2008, but it worked in my Express 2010 -- again, C#.
I also found a older tutorial using nUnit and VS 2005 Express VB
See also:
Is
it possible to integrate NUnit with
VB.net Express Edition? Which is the
best way?
Best
way to do TDD in express versions of
visual studio(eg VB Express)