… then it’s time to check the registry entries. Make sure you see something like this:
In case the build runs in the context of a dedicated user, not the one who logs on to a build machine and install applications, then it is likely that the build user does not have correct setup for NUnit assemblies. You can of course import missing registry entries into that user registry part, but the best is just to create them for everyone under LOCAL_MACHINE folder using path \HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v2.0.50727\AssemblyFolderEx.
If somebody wants more from the program you wrote, it’s a good sign. It means that at last you did something useful :-)
Recently my colleague mentioned that the utility that I wrote to generate project solution file should support creation of solution folders. Our development team has in total more than 200 projects, and grouping them within the solution makes a lot of sense.
So I extended the tool, and you can specify number of solution folder levels using “/l” command line switch.
GenerateSolutionFile /p <path> /s <solution> [/i includeFilter] [/e excludeFilter] [/l [*]solutionFolderLevels]
You can specify solution folder levels using an integer number – project names will be split using “.” as separator, and resulting words will be used as solution folder names. Since it’s a good practice to start project name with a name of the company that won’t be useful as a solution folder, it’s possible to skip common project prefix by using an asterisk letter in front of the number specifying the number of levels.
Here are a few examples. If you generate solution file without instructing the tool to create solution folders, you will get a flat structure of projects:
If you add a command line switch “/l 1”, then the program will extract a first word from compound project names and create a root solution folder:
You can add number of levels with “/l 2” switch:
To skip “MyCompany” from solution folder tree add an asterisk when specifying number of folder levels: “/l *1”:
And of course you can increase number of levels, here’s how it looks when using “/l *2” switch: