4
Answers

visual studio 2010 missing template files

dc stein

dc stein

12y
5.3k
1
The problem is the setup and deployment installed templates are missing from my version of visual studio.net 2010 professional edition. I want to have these templates available since the programmer before me deployed the C# 2010 web application I am suppose to support using a 'setup.exe' and 'application.exe'. I do not want to change the method of how the application is deployed to production since I will only be making enhancements. **Note: I am the only programmer at this company.

I want to mention the following about my workstation:

1. I have Visual Studio.net 2008 professional edtion on my workstation. I do not remember the options I selected for the first install, but I was using it for a C#.net 2008 desktop application. The visual studio 2008 has the setup and deployment templates available.

2. I never removed Visual Studio.net 2008 professional edition from workstation.

3. I installed  visual studio.net 2010 professional and probably selected C# and web development projects for the initial install.

Should I do one of the following:

1. Is there a way to ask visual studio 2010 for the setup and deployment templates for web applications? If so, how do you accomplish this task?

2. Is there a conflict with visual studio 2008 and 2010 on my workstation? Do I need to change some setting?

3. Should I uninstall visual studio 2008?

3. sould I uninstall visual studio 2010 and reinstall it? If this is the case, when the visual studio 2010 professional is used for the first time, what options should I select if I want to work on? I do want C# and work on web application proejcts.

If you have other suggestions, can you let me know what they are?
Answers (4)
1
Vulpes
NA 98.3k 1.5m 10y
A DataTable in ADO.NET has no concept of a 'current row' because, once it's been populated, it's disconnected from the underlying database. In fact, it doesn't need to have an underlying database at all - it can be created entirely using code!

Once you have your DataTable (dt, say), you can iterate through its DataRows just like any other collection:

foreach(DataRow dr in dt.Rows)
{
   // do something with dr
}

You can also obtain a DataRow directly:

DataRow rowFirst = dt.Rows[0];

DataRow rowLast = dt.Rows[dt.Rows.Count - 1];

It follows that there's no concept of being before the first row or after the last row (BOF or EOF in an ADO RecordSet). You must always be within the row collection itself or you'll get an exception.


0
David Smith
NA 1.9k 0 10y
Thank you so much.