Backbone.js Visual Studio set up - javascript

Im trying to set up Backbone.js within Visual Studio the guide from the link down below is telling me that I need to install BackBoneSpa.vsix but since its a Visual Studio file extension I need to install ASP.net Web Tools 2012. Is this the only way of adding backbone.js to your visualstudio C# project?
http://www.asp.net/single-page-application/overview/templates/backbonejs-template

You can try using backbone.js in empty web app with wep-api in visual studio
Try following this tutorial to provide an api to your backbone models and collections. Visual studio scaffolds the api for you.
Scaffolding web-api with visual studio.

Related

Application insight upgrade in .net

I have a web application developed in MVC. It's an existing application. While doing the SAST testing, we got some security issues under critical status like Insecure Randomness, CRSF (DOM), OPen indirect.
This issue is happening due to the javascript function ai.0.22.9-build00167.js. please someone can explain to me what is the use of this script. Also, I can find the new version after this.
Let clarify if I might update to the new version it will help me to fix the issue. If yes, please let to know how to update this version. Because I tried to update from Nuget from visual studio it's not helping me also I tried to download from other sites. but the file format is not supported.
If no, please someone can help me to resolve this.
The same issue I am facing in the below files also since its inbuild scripts I don't know how to handle.
jquery-1.10.2-vsdoc.js,
jquery.unobtrusive-ajax,
jquery.unobtrusive-ajax.min.js,
jquery.validate-vsdoc.js,
jquery.validate.js,
jquery.validate.min.js
Thanks
ai.0.22.9-build00167.js is Microsoft Azure Application Insights JavaScript library.
Not sure why your MVC project is using App Insights JavaScript library! On top, this library is not updated since Aug, 2018 so surely there are latest/new library from Microsoft.
These are few points to help you decide:
1. Remove/Uninstall NuGet package
If your project is NOT not using any of the JavaScript framework (like Angular, ReactJS, VueJS, etc), you can remove/uninstall App Insights - JavaScript NuGet package.
This will also stop collecting your application health data in Azure App Insights.
2. For JavaScript Framework
If your project is using JavaScript framework (like Angular, Vue, etc) - you can install latest version of App Insights - Web library and configured accordingly.
It is NOT a NuGet package, instead it is NPM package.
3. For MVC Application
If there is a need to collect your MVC application health data in App Insights, you can install Application Insights SDK and configured accordingly.

Is it possible to create project for developing javascript library with TypeScript in Visual Studio 2019?

I would like to use TypeScript for creating javascript library that can be used on web pages. I've seen tutorials / starter projects on the web prepared for Visual Studio Code, but cannot find any build-in template in Visual Studio 2019.
Is it possible to develop js lib same way as in Visual Studio Code in Visual Studio 2019?
It Man.
Tutorial explain that you should use Visual Studio Code because you have TSLint and Prettier extensio.
If you want use TSLint on your Visual Studio 2019 you can download this extension:
https://marketplace.visualstudio.com/items?itemName=RichNewman.TypeScriptAnalyzer
Check the GitHub: https://github.com/rich-newman/typescript-analyzer

How to run NativeScript app on android studio?

please does anyone have an idea on how to run NativeScript app on android studio?
If so, show me the steps to do it.
Android Studio is meant for development using stock Android stack(Java, gradle, etc).
NativeScript is based on JavaScript and you would be much better off using an IDE that supports JS specifically - Visual Studio Code, Sublime Text, Atom, etc. If you prefer IntelliJ you can try WebStorm.

Javascript project templates Win App store

Short question, where to find the Javascript templates for Windows Apps?
As described in the follow link:
Javascript project templates for store apps
Tried Googling and trying to search inside Visual Studio with no avail (JS templates are not installed by default). Searching Online through Visual Studio returns nothing of value.
Using Visual Studio Express Update 2.
For some reason a fresh clean install did install all the templates except for the JavaScript ones.
A (lengthy) repair of Visual Studio 2013 Express did the trick!

Which console commands will build a JavaScript projects into .appx Windows 8 Metro applications?

I hate IDEs, is there any way to use Make to build Metro apps from source code?
MSBuild can natively build Visual Studio projects (*.csproj) or code files directly:
msbuild Project.csproj /t:Rebuild
It's installed with Visual Studio and/or the .NET Framework, and can be found (depending on your framework version) at:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe
I also just double checked on our Windows 2008 web server (which does not have Visual Studio installed, but does have .NET 4 installed) and it also has MSBuild.exe, so you shouldn't even need VS.
I believe you'll need to run the Publish target to actually create the appx package once the project is built:
msbuild myproject.sln /target:Publish /p:configuration=release /p:platform=win32
MSBuild is extremely powerful and can be extended with .NET code, and comes with tasks designed to do various things. There's tons of tutorials online, but this one might be great to get started.
App packager (MakeAppx.exe) creates an app package from files on disk or extracts the files from an app package to disk. It is included in Microsoft Visual Studio Express 2012 for Windows 8 and the Windows Software Development Kit (SDK) for Windows 8.
see this article on MSDN, but I have to warn you... last time I tried to get it signed without an IDE gave me lots of headaches.

Categories

Resources