I started a Node.js project on Visual Studio 2017 Community on my PC at home, just to test a few things out and play around.
When I begin "debugging" (as in get Visual Studio to compile and launch the website), any changes I make and save to files are not reflected until I restart the entire debugging process. I've Node.js projects through Visual Studio on other computers, and they seemed to recompile the individual files as they were saved, reflecting any changes immediately. I can't seem to find anything online that would suggest a solution, I guess Visual Studio/node.js is a pretty rare combination.
My Visual Studio Community 2017 installation on Windows 10 is fairly slim. In terms of components:
Cloud, database, and server:
Connectivity and publishing tools
Web Deploy
Code tools: Developer Analytics tools
Debugging and testing: JavaScript diagnostics
Development activities:
JavaScript and TypeScript language support
Node.js support
SDKs, libraries, and frameworks: TypeScript 2.5 SDK
Would anyone how I can make Visual Studio recompile each file on save while debugging? It's definitely possible, I'm probably just missing something!
I've since figured that this is not native functionality for VisualStudio to recompile each time an application-dependent file is changed. There are, however, packages available that can allow Node to do this, such as Nodemon.
Related
I'm using Node.js tools for Visual Studio 2015. All ES6 features under Node.js tools options are turned on. I've tried turning them off too. I've also tried setting JavaScript files not to display syntax highlighting.
Visual Studio displays tons of errors for files containing ES6 JavaScript (the content of the files are actually just fine by ES6 standards).
Interestingly, if I double click on any of the errors, I get a message
So, it seems that maybe VS is "double-inspecting" these files...and the second pass fails. Because if I open the file in question from solution explorer, there is no run underlining anywhere in the file?
I've spent a long time troubleshooting this. Is there any way to make Visual Studio work, a little bit?
What version of Node.js Tools for Visual Studio are you using? You may just need to update to the latest version.
I had this same problem with version 1.1.31117.00, but I'm not seeing it anymore with 1.2.40726.00.
I'm having trouble getting started with PhoneGap on windows 8, VS 2012, namely:
I don't know how to install the templates
I open the template projects I've downloaded from PhoneGap, but they are in compatible with VS2012
I don't know where to start in respect to creating my first simple CRUD application
I want to connect to a WCF API and make some calls
How to publish the result allowing installation on many devices:
I mainly want to use iPhone and Android devices
How do I get started with PhoneGap?
#Smithy, Microsoft just made it possible to develop Cordova apps with Visual Studio 2013 Update 2.
Its just a preview as far as I understand, but go have a look.
If you have the latest version of Visual Studio installed, you need to go to Microsoft'd download page and download the installer:
http://www.microsoft.com/en-us/download/details.aspx?id=42675
This comes along with documentation on how to get started and how to install and set it up in VS 2013.
Good luck.
UPDATE:
With the release of Visual Studio 2013 Community Edition along with Update 4, MS has made it easier than ever to create Cordova project....and best thing of all is it's FREE!!!!
Benefit is that if your used to VS like me, this is a comfortable environment, and its super easy to get started.
To get access to these templates, follow the steps when creating a new project in VS, and you will be prompted to install additional software, including but not limited to SDK Manager, adt, iTunes, emulators etc..
After these are installed, it is now simple to create projects, edit and run them in the included RIPPLE emulator.
These projects can also in addition be deployed to your device from VS.
To check if your device is picked up on your PC, open a cmd and run "adb devices" to see if your device is picked up on your PC and a list of connected devices.
Easy, effective and it works. From, see link on terms of use and limitations in organisations: Free Dev Tools
Download link here: http://www.visualstudio.com/en-gb/products/free-developer-offers-vs
Q: Who can use Visual Studio Community?
A: Here’s how individual developers can use Visual Studio Community:
Any individual developer can use Visual Studio Community to create their own free or paid apps.
Here’s how Visual Studio Community can be used in organizations:
An unlimited number of users within an organization can use Visual Studio Community for the following scenarios: in a classroom learning environment, for academic research, or for contributing to open source projects.
For all other usage scenarios: In non-enterprise organizations, up to 5 users can use Visual Studio Community. In enterprise organizations (meaning those with >250 PCs or > $1 Million US Dollars in annual revenue), no use is permitted beyond the open source, academic research, and classroom learning environment scenarios described above.
Thanks Microsoft!
You can use VS to edit the html, css, and javascript files, but I don't believe there are any VS project templates available. At least I've never seen any.
But, you won't be able to compile and deploy. The templates for Android for instance are eclipse project templates since phonegap is building a java application in order to deploy to android.
If you want to develop for android, follow the getting started guide from Phonegap ( I can't get you a link right now due to firewall issues). The files you put in the www folder will be the html, css, and javascript files for your project and you can use anything you want to edit them, including VS.
You can create PhoneGap application using
Cordova vs plugin
Telerik App Builder
vsnomad
for more information please see the below link
http://sourcefreeze.com/cross-platform/visual-studio-cordova-plugins-for-cross-platform-mobile-apps/
You may also want to refer to this post that describes how to use Phonegap projects in the new Multi-Device Hybrid Apps that uses Cordova integration in VS - https://stackoverflow.com/a/23621633/1277291
RedGate has a product called Nomad which integrates beautifully with Visual Studio 2013.
It makes use of the PhoneGap Build cloud service. With this approach you don't need all the platform SDK's on your system. Works very well.
See this video. Unfortunately RedGate recently stopped supporting Nomad. I'm hoping Microsoft's new offering will offer similar capability.
I've been trying to get the .NET Dev Kit and Azure SDK to work with Visual Studio 2012 and am not having much luck. What am I missing?
The Azure SDK installation instructions don't work on VS 2012. When I search for anything Intuit-related from the VS Extension Manager, nothing comes up.
I tried installing from the VS Gallery but then there's no Intuit Anywhere menu in VS as shown in the VS 2010 screen shot. (These instructions are highly suspect, since Intuit has moved away from the "Intuit Anywhere" name. But given that the developer site was overhauled recently I would expect the instructions to be up to date.)
Is there an easy way to get this to work with VS 2012, or am I wasting my time? Am I better off just building everything from scratch? (We have done that in another project, just not with Azure.)
The Plugin for Visual Studio has not been updated for Visual Studio 2012, the last supported version is 2010.
The code that the plugin generates is available as templates and sample code as well.
It includes the Oauth grant and handler pages, as well as the OpenId handlers.
regards,
Jarred
I am an Actionscript Developer who is new to TypeScript and Visual Studio. My biggest problems right now are related to workflow.
Visual Studio 12 is a feature rich environment, as an Eclipse user it feels familiar but I feel it is heavy and bloated for my needs. I feel like 80% of the features are not required from a TypeScript perspective? Is there anything I can do to improve the software?
When I press the debug button on a TypeScript program, I run Chrome, but this process takes about 16 seconds to launch, is this normal and again can this be improved?
Finally, maybe it is just the case that Visual Studio is above me and this whole question is stupid, but in this case, is there any other IDEs that are good right now for TypeScript development and pretty much simple to setup and use?
WebStorm from JetBrains features TypeScript editing, is lighter-weight than VS, and might be better for your needs: http://www.jetbrains.com/webstorm/
Here's a list of others:
Microsoft provides a plug-in for Visual Studio 2012 and WebMatrix as
well as basic text editor support for Sublime Text, Emacs and Vim.
JetBrains supports TypeScript with code completion, refactoring and
debugging in its web application IDE's PhpStorm 6 and WebStorm 6.
The online Cloud9 IDE also supports TypeScript.
If you continue with VS2012 then the WebEssentials 2012 extension is very useful.
In terms of performance, you shouldn't need to launch the debugger every time you make changes. Setting compile-on-save means you should be able to make changes, then simply refresh the page in your browser.
My typical workflow in VS2012 is Debug > Start Without Debugging (just once, at the start of a TS editing session), make changes to the TS and save them (automatically generating JS), then simply F5 the browser to see the changes. Having the source map option on in compilation and opening the F12 tools in Chrome makes setting breakpoints and performing other debugging tasks straightforward.
I'm also a reformed AS developer, and I find this workflow much faster than even a good AS tool such as FlashDevelop, and miles away from developing in FlexBuilder. Do bear in mind also that TypeScript is in Alpha, and you may occasionally hit performance issues, especially on larger projects, related to this being early preview code.
So Microsoft released Visual Studio 2012 Express for desktop apps. That's great, but how does one create an installer for open source apps that are built in Visual Studio Express? There are no installer templates available by default, and they have disabled browsing the online gallery. Sure, I could purchase something like InstallShield, but that kind of defeats the purpose of an open source application if you ask me. Any suggestions?
You can use the open source NSIS or WiX tools to create fairly nice installers.
Since both should work without the Visual Studio integration that Express won't give you, they should both be usable (even if not quite as nicely) without problems.
I would use Inno Setup, which is a little easier to learn than most other setup programs.
I have a link here:
http://www.jrsoftware.org/ishelp/