Retargeting VS2010 Unit Tests to .Net 3.5 (with VS2010 SP1)
Visual Studio Team Test - How to re-target unit-tests to .Net Framework 3.5 in VS 2010 SP1
“Visual Studio 2010 Service Pack 1 enables basic support for unit tests that target .Net framework 3.5. With this support the users can:
- Create new unit-test projects and target them to the .NET Framework 3.5.
- Upgrade VS 2008 unit-test projects to VS 2010 SP1 and then re-target them to .NET Framework 3.5
- Run unit tests that target the .NET Framework 3.5 from Visual Studio 2010 SP1 on your local machine.
- Run unit tests that target the .NET Framework 3.5 using mstest.exe from the command prompt.
- Run unit tests on a VS 2010 SP1 build agent as part of a build.
The capabilities listed above also enable developers to write unit tests, and integration tests for SharePoint 2010 applications using Visual Studio 2010 SP1.
The following walkthrough covers the steps required to re-target various unit-test projects to .Net Framework 3.5
…
With the multi-targeting goodness that is VS2010, I found it weird that you couldn’t create .Net 3.5 targeted unit tests. I actually thought it was a weirdness on my machine at first… Well in VS2010 SP1 that weirdness has been resolved.
On a related note, I’ve been running VS2010 SP1 for close to a week now and “it just seems to work.” I love it when that happens…. :)
No comments:
Post a Comment