question

mysorian avatar image
0 Votes"
mysorian asked XingyuZhao-MSFT edited

Can you use Visual Studio community 2019 to create native web apps?

I have been away for a considerable time from using VS. Can someone point to a possible source. I have downloaded VS 2019 community but, I don't seem to add javascript support.

vs-general
· 1
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.

See Web Application Projects versus Web Site Projects in Visual Studio. It will help you very much with many questions you will have. I am constantly forgetting what the difference is between Web Application Projects and Web Site Projects. I am using VS 2017 so I am not sure how to do things using VS 2019 but you can create an empty website and add just HTML and CSS and such.

As for JavaScript, I am not sure what you are asking; normally it is in HTML files. You can create separate JavaScript files with a js extension. Can you be more specific about the difficulty you are having adding JavaScript support?



0 Votes 0 ·

1 Answer

karenpayneoregon avatar image
0 Votes"
karenpayneoregon answered

Focusing on JavaScript support, your best option is to include jQuery via NuGet then in a web page, drag a script file from solution explore into the head section of the web page. This will give you the ability to write script code.

Now in regards to native web apps, that statement needs clarification as there really is no native web apps per-say. We deal with responsive design rendering what the intended browser supports which is usually a subset of what is available to regular supported browsers.

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.