unexplained partial classes compiler error between 2005 and 2008

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi,

im moving a project from vs2005 to vs 2008.

is doing so i have come across a compiler error regarding partial
classes that i dont understand if anyone can explain it to me please

the orig defintion that compiles and runs fine in vs2005 is
bellow......

However in porting this to vs2008 the compiler throws up errors
indicating the need for a missing partial keyword reference in
FrameMessage.cs. Do this clears that error but then throws up heaps of
warnings about duplicate declerations in both classes.

I dont understand why this compiles cleanly in 2005 and throws up
errors in 2008. I would have expected the 2005 compiler to also
produce errors becasue at first glance it seems the 2008 way is
correct

I dont know why the orig coder has the duplication in definition or
how this even worked ok in 2005

It realy bugging me if anyone can explain this to me or point in the
direction of whats hapening it would be appreciated

thanks

Peted




FrameMessage.cs
namespace BillingCommon {
using System;
using System.Data;
using System.Xml;
using System.Runtime.Serialization;

[Serializable()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Diagnostics.DebuggerStepThrough()]
[System.ComponentModel.ToolboxItem(true)]
public class FrameMessage : DataSet {

private MessageDataTable tableMessage;

public FrameMessage() {
this.InitClass();



FrameMessage.Designer.cs
#pragma warning disable 1591

namespace BillingCommon.Globals {
using System;



[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator",
"2.0.0.0")]
[Serializable()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.ComponentModel.ToolboxItem(true)]

[System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")]
[System.Xml.Serialization.XmlRootAttribute("FrameMessage")]

[System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
public partial class FrameMessage : System.Data.DataSet {

private MessageDataTable tableMessage;

.



Relevant Pages

  • Re: Which new language to learn?
    ... hardware salesman wet-dream generating, software applications with the ... compiler was a death sentence, so I'm not sure that's relevant. ... > If you dont get a really specific job you dont earn that great - not ... particular projects, inventions, patents, etc. Regular managers ...
    (comp.programming)
  • Re: Where to Start?
    ... > I want to buy a new compiler but dont know which. ... Currently im running Windows ... Microsoft is closer to be standard than Borland, but I might be very wrong. ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Where to Start?
    ... > I want to buy a new compiler but dont know which. ... > Im confused by all the .NET jargon and dont understand what it means. ... You should ask about it in a .NET newsgroup. ...
    (comp.lang.cpp)
  • Re: exe error, works on some pcs but doesnt on others
    ... PCs for a reason i dont really know. ... if it is a compiler error on my part..could someone ... as i dont have access to visual studio anymore and i need to get this ... You could build the exe yourself from your source code, with the freely available Visual C++ Express 2008: ...
    (microsoft.public.vc.mfc)