Asp.net 5学习

ASP.NET 5 is no longer based on System.Web.dll, but is instead based on a set of granular and well factored NuGet packages allowing you to optimize your app to have just what you need. You can reduce the surface area of your application to improve security, reduce your servicing burden and also to improve performance in a true pay-for-what-you-use model.

 

As part of this release we are making ASP.NET leaner(精简), more modular(模块化), cross-platform(跨平台), and cloud optimized(云优化)。

1> Auto Compile the system,No longer need to compile your system every time you want to see the changes.(1) Edit the codes and (2)save changes and (3)refresh the url and  (4) see the changes are reflected to the pages.

2>Integration with Popular Web Development Tools (Bower, Grunt and Gulp)

Another exciting feature in Visual Studio 2015 is built-in support for Bower, Grunt, and Gulp - popular open source tools that we think should be in every Web developer’s toolkit.

  • Bower is a package manager for client-side libraries, including both JavaScript and CSS libraries.
  • Grunt and Gulp are task runners, which help you to automate your web development workflow. You can use Grunt or Gulp for tasks like compiling LESS, CoffeeScript, or TypeScript files, running JSLint, or minifying JavaScript files.

Bower: To add a JavaScript library to your ASP.NET project add it directly in the bower.json config file:

 

Q1: when wirte code in Bower.jason dependencies node: the version will not populate, but with a * instead, what's wrong with my vs,I can't find a answer.

Q2: When write code in Bower.jason dependencies node:... and save the file, the js file will automatic uploaded to wwwroot lib foler though I don't run the gruntfile.js or gulpfile.js.From the guide, it said when you run the gruntfile.js task, the file will uploaded to wwwroot lib folder.What' wrong? Also I can't find the bower_components directory even I enabled the "Show All file" in Solution Explorer toolbar. What' wrong?

Q3: I write the code followed the technical passage from microsoft, but I got error when right click gruntfile.js and run Task Manager, in the Task Manager Window, it said the task can't be loaded.

 I am not familiar with the web develop technology, NodeJs, Grunt, Gulp,Bower,Hope I will be familiar with them soon.

VS 2015 makes a great changes. Microsoft finally catch up with the web technologies.

随写三言两语:

Microsoft 终于没有闭门造车,推出了更强大的VS 和.net 5.  应该是借鉴了Windows Phone的失败经验吧 ,更或者是借鉴了Nokia 不适应时代潮流的教训,把前端技术都用上了,不在专注于自己的Razor。

 

转载于:https://www.cnblogs.com/recordlife/p/4699801.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值