Visual Studio Build Events for Javascript projects - javascript

I'd like to run a script (pre-build or post-build) when I build my jsproj from Visual Studio 2012. I've tried right-clicking the jsproj and the Solution, and going to properties but I can't find the "compile" tab or any "build events" button. Does anyone know how to do this?

You should be able to accomplish this by modifying the .jsproj file by hand, see related question How do I create a pre-build step for a javascript metro app in VS11?

Related

How do I get Javascript onto visual studio?

My brother has been interested in learning Javascript and because Visual Studio has been a good program for me in C# I was wondering if it is possible to get Javascript onto Visual Studio. I have tried searching it up, but none of the results worked, is there a way? And if not, what are some good alternatives.
Yes you can do so by integrating javascript extension. There are project templates for js libraries (angular or react) in vs2019 for web applications when you start a new project.
https://learn.microsoft.com/en-us/visualstudio/javascript/javascript-in-vs-2019?view=vs-2019
But in all honesty, I think it is better to do js development in a ide like vs code, sublime or notepad++

Converting Electron app to UWP app

I need some tips on how to convert a Electron app to Universal Windows Platform. I have imported all the JavaScript files into Visual studio 2017 and chosen Universal Windows Platform platform. My main problem is that I have renderers (renderer.js) which does not want to run when I compile the solution in Visual studio. I can build the solution, but when I run it I only get a white window. Any tips on how to solve this?
So i have found a solution for my problem.
I found that in the JS(UWP) applications manifest it was starting some main.js file. I changed this file to start the wanted index.html file and it resolved my problems. Sorry for having so little information to go on. Also enabling the KIOSK mode was really simple so everything is working out as wanted.
Are you just wanting to submit on the store or want a proper universal app? If it's just the former, take a look at https://github.com/felixrieseberg/electron-windows-store

Html+css+javascript development with Visual Studio

My main experience with developing in Visual Studio is as c#/c++ developer. But now I need to create html+css+javascript front end for [probably] PHP code, and I've heard that Visual Studio has pretty nice capabilities in that range, including debugging javascript.
However, I can't find anywhere a "web" project (except for the ASP.Net stuff, which I'm not sure that it is the right thing).
Here's what I think I need to do:
Create html file
Create css file
Include a bunch of javascript libraries
Write my own javascript code
Press F5 and debug the code in different browsers.
I'm mainly interested in intellisense, not a visual editor.
Is Visual Studio the right IDE for this kind of web development? And if it is, how do I set up the kind of project I described above?
I think the instructions at How do you add a folder to a project in Microsoft Visual Studio Express 2012 for Web? might work for setting up a Visual Studio project:
1) New blank solution
2) Right click on the solution and select Add existing website
3) Browse and select the folder with your html, css, javascript, etc. files
4) Right click on the page you want it to start on and select set as start page
As for running against different websites, you might try a Visual Studio extension. A decent starting list is here: http://www.asp.net/mobile/device-simulators

Javascript and VS2012 Intellisense

I am new to Visual Studio 2012 and Javscript coding. I have two questions i could not find answers on the web:
i have a webforms project and added some js-files to the sript-folder (http://raphaeljs.com/). Now i want to have Intellisense support for that js-library i added. Is that possible?
for what is the "_references.js" file in the scripts folder? I added all the js-library files to that file but it doesn't enable intellisense.
regards
I'm not sure about Visual Studio 2012, but in 2010, if you drag one JavaScript file onto another one it will add a /// <reference name="MyScript.js" /> line at the top of the second file. If the file being referenced is documented you will get quite useful intellisense, though it is still handy even if not for just being able to explore the surface of the API.
There is some good information in this question: IntelliSense for Ajax and JavaScript libraries in Visual Studio
To put it short, Visual Studio is terrible at intelli-sense for javascript. It is still light years behind other IDEs like IntelliJ & WebStorm.
A work around to slap it in line would be to use ReSharper which is a plugin but you need to pay for the license :(
Hope that helps.

Eclipse PDT - Javascript Code Assist is not work?

I thought PDT would do code assisting on JS files. Was I wrong, or is there a bug or something I am missing?
Is the Javascript development tools installed? I'm not sure, whether its installed together with the PHP Development Tools.
Select Help/Install new software, then select the Helios update site (http://download.eclipse.org/releases/helios), then install the Javascript Development Tools from the Web, XML and Java EE category.
Update: See the answer at your other question.
Got here because I had the same problem, first install "Eclipse web developer tools => javascript development tools"
Then instead of creating a javascript project create a "static web project". Right click the project in project explorer choose configure (in the bottom) make sure you add javascript support (if it's not there than it's probably already supported).
Under your project in project explorer there should be an item called javascript resources right click that and choose properties. If the browser libraries or ecma3 libraries are not there you can add them.

Categories