views:

437

answers:

2

When creating a Sharepoint 2010 project in VB.NET and wanting to deploy an additional referenced assembly you cannot add a new project output assembly to the package.

To replicate the issue:

  1. Open Sharepoint 2010 project in Visual Studio 2010
  2. Open "package\package.Package"
  3. Select "Advanced"
  4. In the Additional Assemblies area select "Add | Add assembly from Project Output..."

This error is then presented:

Cannot add a new project output assembly to the package.

The path is not of a legal form.

Any ideas on what the "path" is that is not "of a legal form"?

+1  A: 

Not sure, but sounds like you are hitting same bug as as Andrew Connell

Kusek
A: 

Remove any Solution Folders from your solution and you should be able to access the Add assembly from Project Output dialog.

This has been acknowledged by MS as a bug in the current Visual Studio 2010 Beta: http://social.technet.microsoft.com/Forums/en-US/sharepoint2010programming/thread/2201baa0-70a0-424e-931a-f20c7c4091d6

IchiBaru