Krimo
Krimo

Reputation: 1

App_Code in Visual Studio 2015 vs Visual Studio 2022

In VS 2015 website, I create datasets in the App_Code folder, added table adapters and link to stored procedure from SQL Server, which I can still do in VS2022.

In my code behind in VS 2015 (vb.net), I would use something like:

Dim returnCustomersDT as New customerDataset.sp_returnCustomersDataTable

In VS 2022, after I type Dim returnCustomersDT as New, intellisense doesn't show customerDataset.

I set the dataset to "Build Action: Compile", but that didn't fix the issue. The datasets are not 'seen' by VS 2022

Upvotes: 0

Views: 113

Answers (1)

Ted
Ted

Reputation: 4067

You haven't shared the structure of your project so this is a shot in the blind, but

  1. I would try to a new class at the root of your project and look at the namespace that is created for it.
  2. Copy that namespace to your customerDataset class and see if intellisense picks it up

Note: I am aware that this might mess-up the references to that class from other parts of your code, but it would help you identify why the customerDataset isn't picked-up

Upvotes: 0

Related Questions