PC Review


Reply
Thread Tools Rate Thread

Visual Studio DataSet designer doesn't regenerate designer.cs code

 
 
Barney
Guest
Posts: n/a
 
      20th Aug 2007
I have inherited an project, which has some datasets in it. I find
that when I edit datasets with new SQL, adding columns, tableadapters
etc, that the designer.cs class is not regenerated, and therefore I
can't access them in code.

Is there any way of forcing the regeneration (saving doesn't do it),
or is there a particular cause that I could remove to let it start
working again (maybe a subtle issue around partial class naming/
inheritance etc)?

I could really do with some help on this one.

 
Reply With Quote
 
 
 
 
Barney
Guest
Posts: n/a
 
      20th Aug 2007
I've heard of other people with this problem, so I can't be on my
own. Can anyone help?


On 20 Aug, 18:07, Barney <shipcr...@gmail.com> wrote:
> I have inherited an project, which has some datasets in it. I find
> that when I edit datasets with new SQL, adding columns, tableadapters
> etc, that the designer.cs class is not regenerated, and therefore I
> can't access them in code.
>
> Is there any way of forcing the regeneration (saving doesn't do it),
> or is there a particular cause that I could remove to let it start
> working again (maybe a subtle issue around partial class naming/
> inheritance etc)?
>
> I could really do with some help on this one.



 
Reply With Quote
 
 
 
 
Tino
Guest
Posts: n/a
 
      15th Oct 2007
On Aug 20, 6:58 pm, Barney <shipcr...@gmail.com> wrote:
> I've heard of other people with this problem, so I can't be on my
> own. Can anyone help?
>
> On 20 Aug, 18:07, Barney <shipcr...@gmail.com> wrote:
>
> > I have inherited an project, which has some datasets in it. I find
> > that when I edit datasets with new SQL, adding columns, tableadapters
> > etc, that the designer.cs class is not regenerated, and therefore I
> > can't access them incode.

>
> > Is there any way of forcing the regeneration (saving doesn't do it),
> > or is there a particular cause that I could remove to let it start
> > working again (maybe a subtle issue around partial class naming/
> > inheritance etc)?

>
> > I could really do with some help on this one.


I've just run across this problem myself. Did you ever find a
solution to this problem?

 
Reply With Quote
 
Rad [Visual C# MVP]
Guest
Posts: n/a
 
      15th Oct 2007
On Mon, 15 Oct 2007 06:29:16 -0700, Tino <(E-Mail Removed)> wrote:

>On Aug 20, 6:58 pm, Barney <shipcr...@gmail.com> wrote:
>> I've heard of other people with this problem, so I can't be on my
>> own. Can anyone help?
>>
>> On 20 Aug, 18:07, Barney <shipcr...@gmail.com> wrote:
>>
>> > I have inherited an project, which has some datasets in it. I find
>> > that when I edit datasets with new SQL, adding columns, tableadapters
>> > etc, that the designer.cs class is not regenerated, and therefore I
>> > can't access them incode.

>>
>> > Is there any way of forcing the regeneration (saving doesn't do it),
>> > or is there a particular cause that I could remove to let it start
>> > working again (maybe a subtle issue around partial class naming/
>> > inheritance etc)?

>>
>> > I could really do with some help on this one.

>
>I've just run across this problem myself. Did you ever find a
>solution to this problem?


Try the following:

1) Click on the XSD file in the solution explorer
2) Click on the properties tab and check the Custom Tool Property. In
there you should find MSDataSetGenerator. If it's not there, type it
there
3) Once done right click the XSD file and click the menu item Run
Custom Tool.

--
http://bytes.thinkersroom.com
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Visual Studio Designer deleting necessary designer code Jason Microsoft C# .NET 4 24th Apr 2009 01:09 AM
How to take an IE rendered screenshot of a website with visual studio .net 2002 or visual stuido .net 2003? I can't install visual studio .net 2005 on this computer. Daniel Microsoft Dot NET 4 17th May 2007 07:56 PM
How to take an IE rendered screenshot of a website with visual studio .net 2002 or visual stuido .net 2003? I can't install visual studio .net 2005 on this computer. Daniel Microsoft Dot NET Framework 1 14th May 2007 08:05 PM
How to take an IE rendered screenshot of a website with visual studio .net 2002 or visual stuido .net 2003? I can't install visual studio .net 2005 on this computer. Daniel Microsoft C# .NET 0 14th May 2007 07:45 PM
Visual Studio 2005 Beta 1 Refresh vs Visual Studio 2005 CTP vs Visual C++ 2005 Express Beta1 Peter Nimmo Microsoft VC .NET 1 16th Dec 2004 04:30 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:52 AM.