CAB CTP 2 and Visual Studio 2005 Beta 2

Topics: CAB & Smart Client Software Factory
Oct 9, 2005 at 3:27 AM
originally posted by: DanielPham

For those whom want to stick with Visual Studio 2005 Beta 2, because of WinFX CTP September (which is targeted for VS 2005 Beta 2).
CAB CTP 2 can be easily modified to work with Visual Studio 2005 Beta 2.
There are few changes :
- Comment all lines with : global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "8.0.0.0")
- Change IsRequired to RequiredValue
- Change IsKey to IsCollectionKey
- Remove IsDefaultCollection

That's it!
Oct 12, 2005 at 2:07 AM
originally posted by: emoser

Using CAB CTP2 with VS2005 Beta 2 leads also to an error message for all lines with:

global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")

How to resolve this ?

thanks.
Oct 12, 2005 at 8:01 AM
originally posted by: mbpublic

I commented out those lines and haven't had any side effects discovered yet.
Oct 12, 2005 at 8:58 AM
originally posted by: danipham

Well I meant to comment all lines containing : "System.CodeDom.Compiler.GeneratedCodeAttribute".
Oct 14, 2005 at 12:06 PM
originally posted by: grsmith

Thanks danipham - you sure made our life easier.

The Bank Teller blows up after the changes in the following:
BankTellerWorkItem.cs

public void Show(IWorkspace sideBar, IWorkspace content)
{
contentWorkspace = content;
//Needs to be named because it will be used in a placeholder
this.Items.AddNew<UserInfoView>("UserInfo");
SideBarView sideBarView = this.Items.AddNew<SideBarView>();
AddMenuItems();
sideBar.Show(sideBarView); **** blows up here no instance object
this.Activate();
}

Any ideas.
Oct 15, 2005 at 5:05 AM
originally posted by: jolu1977

Well the first thing is it does not even compile. The signature of AddNew is:
AddNew(Type)
or
AddNew(Type, Name);
or
AddNew<T>()
or
AddNew<T>(Name)

After that changed it looks like:

public void Show(IWorkspace sideBar, IWorkspace content)
{
contentWorkspace = content;
//Needs to be named because it will be used in a placeholder
this.Items.AddNew<UserInfoView>("UserInfo");
SideBarView sideBarView = this.Items.AddNew<SideBarView>();
AddMenuItems();
sideBar.Show(sideBarView);
this.Activate();
}

This works fine for me, let me know if I missed something.