question

learningnewthings avatar image
0 Votes"
learningnewthings asked SeanFang-MSFT edited

Can you add a DBML file to an existing Azure Web Job project?

I created a new Azure Web Job project using VS 2019. When I go to add a LINQ2SQL class it hangs the application. I have waited for 30 minutes at a time and nothing happens.

If I create a .NET console-based application, it lets me add the class. So what is happening in the background? What am I doing wrong?

Thanks In Advance!

vs-generaldotnet-standardazure-webapps-developmentazure-webapps-webjobs
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @learningnewthings, Thanks for the question!

Please ensure VS and Azure WebJob SDK is up-to-date.
(If Azure development workload is not available. Add the workload by selecting Tools > Get Tools and Features_
Also, review the namespace declaration for correctness.


Just to highlight, For Visual Studio to deploy a WebJobs-enabled .NET Framework console app project, it copies runtime files to the appropriate folder in the web app (App_Data/jobs/continuous for continuous WebJobs and App_Data/jobs/triggered for scheduled or on-demand WebJobs).

Visual Studio adds the following items to a WebJobs-enabled project:

The Microsoft.Web.WebJobs.Publish NuGet package.
A webjob-publish-settings.json file that contains deployment and scheduler settings.


Please review this sample.


1 Vote 1 ·

@learningnewthings, Kindly check on the above and let us know how it goes, while I check on this and get back to you shortly.

I'm also adding additional tags to receive insights from the targetted audience.

1 Vote 1 ·

1 Answer

TianyuSun-MSFT avatar image
1 Vote"
TianyuSun-MSFT answered TianyuSun-MSFT edited

Hi @learningnewthings ,

Welcome to Microsoft Q&A forum.

I tested on my side and I can reproduce your issue. I think this is a potential issue and I have reported this issue to Visual Studio Product Team in Developer Community , here is the link, you can go to check it and follow that thread.

Best Regards,
Tianyu


If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.