Install under admin account - using under user account
Unit testing for .NET
Brought to you by:
charliepoole
Hello,
I downloaded the NUnit 2.4.1 installer for windows and installed it under an admin account to WinXP. Usually I do all my work under a normal user account, having no admin rights. And so, under this user account, I wanted to design a new test assembly and tried to assign the NUnit-assembly-reference to it. But I couldn't find any of all the NUnit assemblies in the .NET reference list. Under my admin account all is fine, I can see them all. What to do, to get them work (be seen) under user accounts too?
BTW, I can't see the NUnit assemblies in the global cache, under no account. Is this deliberated?
Hope you may have a hint for me.
Best regards
Ralf
Logged In: YES
user_id=1806120
Originator: YES
Ok,
after spending some time and comparing VisualStudio2005's known places to store reference assembly locations I found out what's the problem. While installing NUnit the following registry key was set: [HKEY_CURRENT_USER\Software\Microsoft\.NETFramework\AssemblyFolders\NUnit 2.4.1]
@="C:\\Program Files\\NUnit 2.4.1\\bin\\". But this was made only for the user account, under which the installation ran. So I set this key for my user account, I'm usually using to work, and all is fine...
For VS2005 users it would be nice to register the needed assemblies in the GAC or to give the user the info (in the help) that the reg key could be usefull.
Best regards
Ralf
Logged In: YES
user_id=586918
Originator: NO
From the initial note, I wasn't sure what you meant by "couldn't find" the NUnit assemblies.
The registry entries you mention are only used by visual studio for finding assemblies and for populating the dropown list when you add a reference. You can navigate to the actual install location of the assemblies without needing to modify the registry key. You are correct, however, that using the install file to install NUnit for all users on the machine as an administrator is not supported as it should be.
The assemblies are not stored in the GAC by design. In fact, earlier versions of NUnit had the framework and core in the GAC and we spent a lot of effort to remove them because of problems with some versions of the CLR.
Charlie
Hello,
At first sight adding the key under HKEY_CURRENT_USER instead of HKEY_LOCAL_MACHINE should do the trick... I can have a look and see if it would really work, and if it would create any problems.
- André