Bug in July CTP?
I've followed Acropolis since CTP 1. Thanks for you hard work to provide such an excellent framework. Now I met a problem in the July CTP:
I just created an Acropolis application(WPF Application), didn't change anything. The I went to add a new "Part and View" named as RootPart, I didn't change anyting too. But the compliation error occured:
"Error 1 'RootPart': member names cannot be the same as their enclosing type D:\VistaProject\Acropolis\UpdateAndNotification\obj\Debug\RootPart.g.cs 25 49 UpdateAndNotification
"
which the error code is :internal UpdateAndNotification.RootPart RootPart;
But the strange thing is when I selected build again. The compliation was succeeded. I've tried several times, It always happen.
Any comments?
Moreover, I had Acropolis CTP 1 couple of weeks before. I unintalled it successfully before I intalled July CTP. And my OS is Vista Business.
Thanks.
Another problem is I created a few Acropolis projects before under CTP1. But when I installed July CTP and wanted to open the old solution, VS had the following error: "A project with that name is already opened in the solution". But I didn't open any other solutions...
So now I have to recreate all these projects...@_@..
Hi Woody_Wu,
Thanks for your feedback! Unfortunately I cannot reproduce your first issue. So, are you getting this compilation error even before you add any properties/methods to your part, am I correct?
As for the issue with CTP1 templates, you can change them to July CTP templates by opening the .csproj file in a text/xml editor and changing
<Project ToolsVersion="2.0"...
to
<Project ToolsVersion="3.5"...
Then the template should open fine.
Thanks!
Hi Alex,
For the first issue : yes, I didn't add any properties/methods. to my part.
For the second issue: thanks for your comments.
Hi Woody_Wu,
I also have the same problem:
Orcas June 2007 has the following error: "A project with that name is already opened in the solution"
when I try to open some of the Acropolis samples (Notepad, Outlook...) !
But I didn't open any other solutions...
In the project file I see:
<Project ToolsVersion="3.5"...
But I still get the error above !
Please can you help me ?
Best regards
Netdidi
Hi Woody_Wu,
From your reply I assume the second issue is resolved. As for the first one, would you mind attaching minimum project required to repro the problem and sending to the email listed in my profile?
This would help us to investigate the bug.
Thank you!
netdidi wrote: |
| Orcas June 2007 has the following error: "A project with that name is already opened in the solution" when I try to open some of the Acropolis samples (Notepad, Outlook...) ! But I didn't open any other solutions... In the project file I see: <Project ToolsVersion="3.5"... But I still get the error above ! Please can you help me ? | |
Hi netdidi,
Thanks for reporting this issue,
Are you getting this error when you're opening the samples from CTP1 or the new samples from July CTP?
You mentioned that you have Orcas June 2007 installed. Would you be able to verify if you're getting the same error without Orcas June 2007 CTP installed on top of Orcas Beta 1?
Thanks!
Hi Alex,
>>Are you getting this error when you're opening the samples
>>from CTP1 or the new samples from July CTP?
I'm using the new samples from July Acropolis CTP:
http://www.microsoft.com/downloads/details.aspx?FamilyId=44977885-86B5-4AA0-9F20-DB365BFB9D10&displaylang=en
>>Would you be able to verify if you're getting the same error
>>without Orcas June 2007 CTP installed on top of Orcas Beta 1
I thought the Orcas June 2007 CTP is the Orcas Beta 1 !!?
Now I realized that Orcas June 2007 CTP is newer than
Orcas Beta 1 - thank you :-)
I didn't install the Orcas June 2007 CTP on top of Orcas Beta 1
- I simply downloaded the Orcas June 2007 CTP as VirtualPC
Image !!!
Regards,
Artur
Alex Bulankou wrote: |
| netdidi wrote: | | Orcas June 2007 has the following error: "A project with that name is already opened in the solution" when I try to open some of the Acropolis samples (Notepad, Outlook...) ! But I didn't open any other solutions... In the project file I see: <Project ToolsVersion="3.5"... But I still get the error above ! Please can you help me ? | | Hi netdidi, Thanks for reporting this issue, Are you getting this error when you're opening the samples from CTP1 or the new samples from July CTP? You mentioned that you have Orcas June 2007 installed. Would you be able to verify if you're getting the same error without Orcas June 2007 CTP installed on top of Orcas Beta 1? Thanks! | |
Hi Netdidi:
I just had the modification mentioned --changed the ToolsVersion from 2.0 to 3.5. Then I could open the solution successfully. I think your Orcas June 2007CTP cause this problem. I have Orcas beta 1 and Acropolis July CTP.
Hi Alex:
I already sent my test project to you. But I'm not sure whether could it give you any useful information. Because I didn't change anything...I just added Root part. And I could compile it successfully the second time.
If you have any thought, please kindly tell me. Thank you.
Woody wu
Woody_Wu wrote: |
| Hi Alex: I already sent my test project to you. But I'm not sure whether could it give you any useful information. Because I didn't change anything...I just added Root part. And I could compile it successfully the second time. If you have any thought, please kindly tell me. Thank you. Woody wu | |
Unfortunately your project builds fine without any errors/warnings :-(
After you build the first time and get this error could you switch to Output window ->Show output from build -> and then copy the output. It should have the detailed information about the error. You sent it already in your earlier email (D:\VistaProject\Acropolis\UpdateAndNotification\obj\Debug\RootPart.g.cs 25 49 UpdateAndNotification), however it seems to be for the different project than the one you emailed me. Also, would you mind clicking on the error and copying the generated code from RootPart.g.cs that the error is pointing to.
Thanks a lot for your help!
netdidi wrote: |
| I thought the Orcas June 2007 CTP is the Orcas Beta 1 !!? Now I realized that Orcas June 2007 CTP is newer than Orcas Beta 1 - thank you :-) I didn't install the Orcas June 2007 CTP on top of Orcas Beta 1 - I simply downloaded the Orcas June 2007 CTP as VirtualPC Image !!! | |
Hi Artur,
Yeah, as Dennis mentioned already, it is recommended that you install Orcas Beta 1 as this is the Acropolis July CTP requirement.
Thanks!
Hi Alex:
Yes, the project I sent to you is different from the one I mentioned in this post before. I just wanted to confirm I didn't change anything in the new project.
And the error information in the Output window is as following:
" Build started: Project: TestBuild, Configuration: Debug Any CPU
D:\Windows\Microsoft.NET\Framework\v3.5.20404\Csc.exe /noconfig /nowarn:1701,1702 /warn:4 /define
EBUG;TRACE /reference:"D:\Program Files\Microsoft Acropolis\Microsoft.Acropolis.CommonFx.dll" /reference:"D:\Program Files\Microsoft Acropolis\Microsoft.Acropolis.ComponentModel.dll" /reference:"D:\Program Files\Microsoft Acropolis\Microsoft.Acropolis.PartFx.dll" /reference:"D:\Program Files\Microsoft Acropolis\Microsoft.Acropolis.Windows.dll" /reference:"D:\Program Files\Microsoft Acropolis\Microsoft.Acropolis.Windows.Themes.dll" /reference:"D:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\PresentationCore.dll" /reference:"D:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\PresentationFramework.dll" /reference:"D:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\ReachFramework.dll" /reference
:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Data.dll /reference
:\Windows\Microsoft.NET\Framework\v2.0.50727\System.dll /reference:"D:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\System.IdentityModel.dll" /reference:"D:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\System.Printing.dll" /reference:"D:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\System.Runtime.Serialization.dll" /reference:"D:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\System.ServiceModel.dll" /reference
:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /reference:"D:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\UIAutomationProvider.dll" /reference:"D:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\UIAutomationTypes.dll" /reference:"D:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\WindowsBase.dll" /debug+ /debug:full /optimize- /out
bj\Debug\TestBuild.exe /target:winexe Application.xaml.cs Window1.xaml.cs Properties\AssemblyInfo.cs Properties\Resources.Designer.cs Properties\Settings.Designer.cs RootPart.xaml.cs RootPartView.xaml.cs D:\VistaProject\Acropolis\TestBuild\obj\Debug\RootPart.g.cs D:\VistaProject\Acropolis\TestBuild\obj\Debug\RootPartView.g.cs D:\VistaProject\Acropolis\TestBuild\obj\Debug\Window1.g.cs obj\Debug\TestBuild.Application.g2.cs obj\Debug\TestBuild.Application.g.cs
obj\Debug\RootPart.g.cs(25,37): error CS0542: 'RootPart': member names cannot be the same as their enclosing type
RootPartView.xaml.cs(23,17): error CS0246: The type or namespace name 'IRootPartViewContract' could not be found (are you missing a using directive or an assembly reference?)
Done building project "rch20dpb.tmp_proj" -- FAILED.
D:\Windows\Microsoft.NET\Framework\v3.5.20404\Csc.exe /noconfig /nowarn:1701,1702 /warn:4 /define
EBUG;TRACE /reference:"D:\Program Files\Microsoft Acropolis\Microsoft.Acropolis.CommonFx.dll" /reference:"D:\Program Files\Microsoft Acropolis\Microsoft.Acropolis.ComponentModel.dll" /reference:"D:\Program Files\Microsoft Acropolis\Microsoft.Acropolis.PartFx.dll" /reference:"D:\Program Files\Microsoft Acropolis\Microsoft.Acropolis.Windows.dll" /reference:"D:\Program Files\Microsoft Acropolis\Microsoft.Acropolis.Windows.Themes.dll" /reference:"D:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\PresentationCore.dll" /reference:"D:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\PresentationFramework.dll" /reference:"D:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\ReachFramework.dll" /reference
:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Data.dll /reference
:\Windows\Microsoft.NET\Framework\v2.0.50727\System.dll /reference:"D:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\System.IdentityModel.dll" /reference:"D:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\System.Printing.dll" /reference:"D:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\System.Runtime.Serialization.dll" /reference:"D:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\System.ServiceModel.dll" /reference
:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /reference:"D:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\UIAutomationProvider.dll" /reference:"D:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\UIAutomationTypes.dll" /reference:"D:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\WindowsBase.dll" /debug+ /debug:full /optimize- /out
bj\Debug\TestBuild.exe /resource
bj\Debug\TestBuild.g.resources /resource
bj\Debug\TestBuild.Properties.Resources.resources /resource
bj\Debug\TestBuild.Application.compmeta,TestBuild.obj.Debug.TestBuild.Application.compmeta /resource
bj\Debug\ResourceTableHeader.compmeta,TestBuild.obj.Debug.ResourceTableHeader.compmeta /target:winexe Application.xaml.cs Window1.xaml.cs Properties\AssemblyInfo.cs Properties\Resources.Designer.cs Properties\Settings.Designer.cs RootPart.xaml.cs RootPartView.xaml.cs D:\VistaProject\Acropolis\TestBuild\obj\Debug\RootPart.g.cs D:\VistaProject\Acropolis\TestBuild\obj\Debug\RootPartView.g.cs D:\VistaProject\Acropolis\TestBuild\obj\Debug\Window1.g.cs obj\Debug\TestBuild.Application.g2.cs obj\Debug\TestBuild.Application.g.cs
D:\VistaProject\Acropolis\TestBuild\obj\Debug\RootPart.g.cs(25,37): error CS0542: 'RootPart': member names cannot be the same as their enclosing type
D:\VistaProject\Acropolis\TestBuild\obj\Debug\RootPart.g.cs(23,26): (Related location)
D:\VistaProject\Acropolis\TestBuild\RootPart.xaml.cs(11,26): (Related location)
D:\VistaProject\Acropolis\TestBuild\RootPartView.xaml.cs(23,17): error CS0246: The type or namespace name 'IRootPartViewContract' could not be found (are you missing a using directive or an assembly reference?)
Compile complete -- 2 errors, 0 warnings
========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped =========="
I hope this will help you.
Thank you.
Woody
Hi Woody,
Actually I can only repro your bug if I set the Build Action for RootPart.xaml to "Page" instead of "Acropolis Component". (see screenshot: http://www.bulankou.com/files/buildAction.jpg)
Then I get this generated:
///
<summary> /// RootPart /// </summary> public partial class RootPart : Microsoft.Acropolis.PartFx.Part, System.Windows.Markup.IComponentConnector { internal TestBuild.RootPart RootPart; ....}
and this is causing error CS0542. When I change the build action back to "Acropolis Component" and rebuild the correct code is generated.
Can you check, when you first create the project and add a part, what is the build action for this part - is it "Page" or "Acropolis component"?
Thanks!
I'm having the same problem on a fresh install of the Orcas beta and the July Acropolis CTP. Is there a workaround?
Thanks
Now I'm not so sure ....
Here's what I downloaded and installed:
OrcasBeta1_VSTS_SelfExtractedDVD_9partsTotal.part01.exe
thru
OrcasBeta1_VSTS_SelfExtractedDVD_9partsTotal.part09.rar
Says Beta 1, right? I don't see CTP anywhere in the names. but I open up Help, About and it declares itself to be "March 2007 CTP". So what do I really have?