Changeset 17811 - PackageZip.cmd fails

Apr 28, 2008 at 12:01 AM
I'm attempting to run PackageZip.cmd from the Packaging Folder in the downloaded zip. Some of the solutions do not build.

Firstly, tasks\build.ps1 contain a hardcoded reference to msbuild v 2.0 Some projects are VS2008 and cannot build, they require msbuild 3.5.

Secondly, the CreateShared.sln does not build by msbuild 3.5 or VS2008. The Microsoft.Practices.Web.UI.WebControls assembly is missing for the CreateShared website.

Thirdly, if you correct build.psi to either remove the path, or hardcode msbuild 3.5, the existing VS2005 web projects no longer build. ( Cannot find Microsoft.WebApplication.targets - Hardcoded to v8.0 in csproj file ).

I have got both VS2005 and VS2008 installed, both have Web Application projects installed. I'm also running Win2k8 x64.

In my experience, you cannot have both VS2005 and VS2008 projects built from the same build script especially when web projects are involved.

Apr 28, 2008 at 12:35 AM
UPDATE

My system is set up to use the x64 version of the framework. Running the x86 command line of VS2008 instead has resolved a few issues. But the following errors are still generated :

"D:\Projects\VS2008\WCSF-Contrib\Packaging\Default.target" (default target) (1) ->
"D:\Projects\VS2008\WCSF-Contrib\Packaging\TempDir\Files\Samples\CreateShared\CreateShared.sln" (default target) (2) ->
(CreateShared target) ->
/CreateShared/Orders/UserControls/OrderDetails.ascx(3): error ASPPARSE: Could not load file or assembly 'Microsoft.Practices.Web.UI.WebControls' or one of its dependencies. The system cannot find the file specified.
/CreateShared/Orders/UserControls/OrderDetails.ascx(7): error ASPPARSE: Unknown server tag 'pp:ObjectContainerDataSource'.
/CreateShared/Orders/UserControls/OrderList.ascx(3): error ASPPARSE: Could not load file or assembly 'Microsoft.Practices.Web.UI.WebControls' or one of its dependencies. The system cannot find the file specified.
/CreateShared/Orders/UserControls/OrderList.ascx(7): error ASPPARSE: Unknown server tag 'pp:ObjectContainerDataSource'.


"D:\Projects\VS2008\WCSF-Contrib\Packaging\Default.target" (default target) (1) ->
"D:\Projects\VS2008\WCSF-Contrib\Packaging\TempDir\Files\src\Extensions\CompositeWeb\CreateShared\CreateShared.sln" (default target) (33) ->
"D:\Projects\VS2008\WCSF-Contrib\Packaging\TempDir\Files\src\Extensions\CompositeWeb\CreateShared\CreateShared.csproj" (default target) (34) ->
(CoreCompile target) ->
CreateShared.cs(5,27): error CS0234: The type or namespace name 'CompositeWeb' does not exist in the namespace 'Microsoft.Practices' (are you missing an assembly reference?)
CreateShared.cs(6,27): error CS0234: The type or namespace name 'CompositeWeb' does not exist in the namespace 'Microsoft.Practices' (are you missing an assembly reference?)
CreateShared.cs(7,27): error CS0234: The type or namespace name 'CompositeWeb' does not exist in the namespace 'Microsoft.Practices' (are you missing an assembly reference?)
CreateShared.cs(10,27): error CS0234: The type or namespace name 'CompositeWeb' does not exist in the namespace 'Microsoft.Practices' (are you missing an assembly reference?)
CreateSharedParameterResolver.cs(7,27): error CS0234: The type or namespace name 'CompositeWeb' does not exist in the namespace 'Microsoft.Practices' (are you missing an assembly reference?)
CreateSharedParameterResolver.cs(9,27): error CS0234: The type or namespace name 'CompositeWeb' does not exist in the namespace 'Microsoft.Practices' (are you missing an assembly reference?)
CreateSharedParameterResolver.cs(16,47): error CS0246: The type or namespace name 'ParameterResolver' could not be found (are you missing a using directive or an assembly reference?)
CreateSharedWebApplication.cs(5,27): error CS0234: The type or namespace name 'CompositeWeb' does not exist in the namespace 'Microsoft.Practices' (are you missing an assembly reference?)
CreateSharedWebApplication.cs(9,67): error CS0234: The type or namespace name 'CompositeWeb' does not exist in the namespace 'Microsoft.Practices' (are you missing an assembly reference?)


"D:\Projects\VS2008\WCSF-Contrib\Packaging\Default.target" (default target) (1) ->
"D:\Projects\VS2008\WCSF-Contrib\Packaging\TempDir\Files\src\Extensions\CompositeWeb\EventBroker\EventBroker.sln" (default target) (35) ->
"D:\Projects\VS2008\WCSF-Contrib\Packaging\TempDir\Files\src\Extensions\CompositeWeb\EventBroker\QuickStarts\WebSites\DevelopmentWebsite\DevelopmentWebsite.csproj" (default target) (42) ->
ContactManager\PopupEditor.aspx.designer.cs(83,27): error CS0400: The type or namespace name 'AjaxControlToolkit' could not be found in the global namespace (are you missing an assembly reference?)