Avatar of websss
websssFlag for Kenya

asked on 

Bundling and Minification In VS 2017

We moved a asp.net project from Visual Studio 2013 to Visual Studio 2017. The issue is that when you make changes to the JavaScript file, the changes are not effected on the min file. Also, when you checkout JavaScript file for edit, the min and map files are not checked out. We are using VSS for code control. How do we fix this issue?
ASP.NETJavaScriptMicrosoft Visual Studio

Avatar of undefined
Last Comment
websss
Avatar of Miguel Oz
Miguel Oz
Flag of Australia image

Avatar of websss
websss
Flag of Kenya image

ASKER

thanks
In the above link they say it works with VS 2015 & Vs 2017. Tried installing but it doesn't appear on 2017, only gives 2015 as an option
Avatar of Miguel Oz
Miguel Oz
Flag of Australia image

Extension is a nice UI, but you can still do it manually by modifying "bundleconfig.json" in your project yourself.
Warning: You are better off creataing a new ASP.NET MVC project and move your existing files just to avoid missing any dependencies and configurations that comes on the new projects.
201711-Options-for-CSS-and-JS-Bundli.png
Avatar of websss
websss
Flag of Kenya image

ASKER

Thanks, it worked. However, the issue now is that there are some JavaScript files that have failed to minify due to some errors such as when a comma is left out in a statement. Unfortunately, it is hard to trace where such errors are in the js file. We have tried turning off JavaScript build but the errors are still preventing bundling and minification and also publishing the project. How should we fix the errors?
ASKER CERTIFIED SOLUTION
Avatar of Miguel Oz
Miguel Oz
Flag of Australia image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of websss
websss
Flag of Kenya image

ASKER

Thanks, I have used JsLint to spot the errors. It is working now.
ASP.NET
ASP.NET

The successor to Active Server Pages, ASP.NET websites utilize the .NET framework to produce dynamic, data and content-driven web applications and services. ASP.NET code can be written using any .NET supported language. As of 2009, ASP.NET can also apply the Model-View-Controller (MVC) pattern to web applications

128K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo