问题
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:
- Open Sharepoint 2010 project in Visual Studio 2010
- Open "package\package.Package"
- Select "Advanced"
- 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:
Not sure, but sounds like you are hitting same bug as as Andrew Connell
回答2:
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
来源:https://stackoverflow.com/questions/1901817/sharepoint-2010-project-package-cannot-add-a-new-project-output-assembly-to-the