What steps should I take to troubleshoot a testdriven.net installation? - nunit

I'm trying to get up and running with nUnit, which has been pretty painful so far. I have successfully installed and added a reference to the nUnit framework, and I've successfully created a simple test--but get this error when I try to use the nUnit GUI:
C# .NET 4.0 Testing Framework?
On the advice of that post, I'm now trying to run nUnit from inside VS2010 with testdriven.net. I successfully installed testdriven.net, but when I re-start visual studio, I simply don't see the context menus described in the testdriven.net quickstart. How do I know if testdriven.net even installed correctly? What can I do to get up set up with testdriven.net or nUnit?

If you wanna check if it's installed, go to: Tools->Add in Manager, you should see it listed there.
If it's not there, then it is not installed, try the following:
try uninstalling from control panel 'TestDriven.Net 3.0 Personal', restart, then install again while visual studio is closed
make sure you download the RTM not the beta version, right click and unblock the zip file, install as admin.

Related

Nuget (PowerShell 2.0 Error) Visual Studio 2015, Windows 10 (PwrShl 5.0)

I am using Visual Studio 2015, on Windows 10 - I am having an issue running the Nuget Console, it wants Powershell 2.0. I do infact have powershell installed, but its version 5.0
I don't really understand why 5 wouldn't be compatible with 2? or why nuget cant find 5 when 2 is not installed?
I've tried install 2, didn't work
I've tried the usual change permissions for nuget package signing, didn't work either
Any one got a suggestion? I'm sure it must be possible!
I need to download the latest Google Custom Search API, and it seems that Nuget is the only way to do it, but if not, then a link to direct download of the API would be just as useful for now! (I've got almost everything from google API, except search lol)
I've also tried installing the (Google Search API) packages manually via PowerShell 5.0, but it cant find them, as far as I am aware, the repositories should already be added, but perhaps not?
Full Error Message:
Error: The Package Manager Console requires PowerShell 2.0 runtime, which is
not detected on this machine. Please install the PowerShell 2.0 from
support.microsoft.com/kb/968929 and restart Visual Studio
You need to install Powershell 2.0. On Windows 10 you can follow these steps:
Go to This Pc
Click Uninstall or change a program on computer tab
Click Turn Windows features on or off
Mark Poweshell 2.0 for installation
Click OK
Or open powershell as admin and :
PS> Install-WindowsFeature PowerShell-V2

Deploying .NET Framework 4.5 with Installshield

I have written an application that I deploy via Clickonce, but I want to deploy it via Installshield, so I am experimenting with it. I found and downloaded dotnetfx45_full_x86_x64.exe, the redistributable for .NET Framework 4.5, and made a Installshield prerequisite from it. I wrote a simple application that has a RDLC report that just says “Hello World”, and it needs .NET Framework 4.5, and used Installshield to deploy it. The Reportviewer needs Microsoft SQLClrTypes_x86.msi and SQLClrTypes_x64.msi, and ReportViewer.msi, so I got those and made Installshield prerequisites from them. For the ReportViewer.prq, I specified SQLClrTypes_x86.prq and SQLClrTypes_x64.prq, as dependencies, and for SQLClrTypes_x86.prq and SQLClrTypes_x64.prq I specified dotnetfx45_full_x86_x64.prq as a dependency.
When I installed my little application on my test computer (running Windows 7), it installed the 4.5 framework, said it needed to reboot, and asked if I wanted to reboot now, and I clicked Yes. I was thinking it would reboot and continue the installation, but when it rebooted, that was the end of the installation. I ran setup again, it asked if I wanted to install the 4.5 Framework (it asked me the first time, too), so I clicked No. After clicking No, it installed the rest of my program, and it ran perfectly.
How can I get the installation to continue after it reboots from installing the .NET Framework 4.5?
Thanks
Here's a blog I wrote about 9 years ago:
Using InstallShield 12 to Install .NET Framework 3.0
It hasn't changed much. You want to use the prereq editor to change the reboot behavior to Note it, fail to resume if the machine is rebooted, and reboot after the installation.
Also please note that InstallShield consumes it's PRQ files from the ISProductFolder (C:\Program Files (x86)\InstallShield.... ) I don't care for this from a CM perspective. I recommend isolating the file and file references to relative paths based on ISProjectFolder and keeping all of these files in your source control tool.
Behavior Tab

Unable To Install Jint 2.1.0.0

I am trying to use Jint in my C# WinForms Application but NuGet is refusing to install the package. I can install other packages perfectly fine including this one called JavaScriptEngineSwitcher.Jint. I googled around and couldn't find anyone else with the same problem. The error says it has a problem with the .NET Framework version but it is my understanding that 4.0 should be just fine (even so, I played around with it but nothing worked).
https://www.nuget.org/packages/Jint/2.1.0
The package does work fine in .NET 4.0 packages. Make sure you have the latest update of the Package Manager console. If it is updated or udpating doesn't work, try restarting Visual Studio and try again.

Microsoft.Moles.vshost has stopped working

I have a bunch of unit tests written in C# that use moles for mocking a serial port class. I'm using Visual Studio 2008. This has all worked fine until today when I went to re-run the tests... and as soon as it tries to create an MSerialPort object, the warning box pops up with the message "Microsoft.Moles.VsHost has stopped working". I've tried re installing moles, etc but not sure what else to try or where to find more information on this. None of the tests themselves have changed so it's got to be something with the .net runtime or the like. I'm using .net 3.5. Anyone else run into something like this?
Found the problem... something about security update KB2742599 (security update to .NET 3.5) broke moles. I uninstalled this update, restarted the PC, and everything works fine again. I'm using windows 7 SP1, x86.

How to deploy application with QT5

So I have made GUI frontend for latex with QT5 using QT creator. The application works fine, but I'm unable to deploy it. The deploy option in build is grayed out. I have also tried following this guide but I can't even configure my QT to use static linking. I was able to configure the source, but when I try to run mingw32-make sub-src, it says nothing to do here.
I downloaded QT from here using the link Qt 5.0.1 for Windows 32-bit (MinGW 4.7, 823 MB). I have also downloaded microsoft visual studio express for Windows 8 to get tools required for building c++.
I also tried to install mingw32 manually. I have also installed Strawberry perl, because one guide told me to do that, but that did nothing.
I managed to fix this problem. There was one .dll. Reason why I didn't find it earlier was that my application did not need it by itself, but one of libraries I used was dependaple from it. The missing .dll was icuuc49.dll.