Visual Studio 2015 - Can I create a client side development project that supports chat support and AngularJS intellisense?

I would like to do some web development only on the client side using VS 2015. I don't need server code, and I don't need compilation of .net code. However, I would like javascript intellisense , especially in this case for angularjs (presumably using the _references.js file) and bower support .. p>

How can I achieve this in Visual Studio 2015? I looked at ASP.net 5 templates:

enter image description here The closest thing I see is the "Empty" option, which has no controllers. It also has a little “dependency” arrow visible in the tree, and it seems trivial to add bower.json and _references.js (which, according to my limited understanding, is what makes intellisense work properly.)

enter image description here

However, it also has "Startup.cs", which installs various services that I do not need for my use. Deleting this file "naïvely" gives an error. The CS5001 program does not contain a static "main" method suitable for the entry point when I create xproj. Unlike .csproj, there is no way to change the output type of a project, and in any case, I do not want to create a DLL. I guess the next step might be to use the custom version of Microsoft.DNX.targets, but for now I seem to be wandering around the beaten track a bit.

So, the "Website" ...

enter image description here ... does not have "Startup.cs", but it seems he can do nothing with the gazebo.

enter image description here

I would be interested to know how to do this in projects / templates for earlier versions of ASP.net if they can offer the same features.

+5
source share
1 answer

Startup class is useful for static file service. This is what your “server” actually loads. The blank ASPNET5 template is perfect for work.

+1
source

Source: https://habr.com/ru/post/1238745/


All Articles