If you try to add a test project to the solution and you
use a name that starts with the name of an existing
project then the add will fail.
THis is coused by the incorrect use of the
AddFromTemplate method in the file
AddTestProjectWiz.cs.
The third param shoud contain the project name
including the "csproj" extension.
Adding this extension will solve the problem.
Steps to reproduce:
Create an project called ReproduceBug
Right click the solution and add a test project called
ReproduceBug.UnitTest
This will fail with a HResult of 0x80041FE0
Adding the extension to the third parameter of
AddFromTemplate (e.g. by using the statement before
teh call : projectName += ".csproj";) will resolve the
problem.
I Only checked the problem in the C# implementation. I
Think the problem will occur in all projects due to same
implementation
Regards
Marcel de Vries
Logged In: YES
user_id=619229
Hi Marcel,
That was a glaring issue with a subtle solution. Thank you
very much for the fix! I'm surprised I hadn't come accross the
issue before and no one else has mentioned it (users
generaly don't I guess ;o). I'm sorry it had taken me so long
to implement it.
Thanks, Jamie.