博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Asp.net 5学习
阅读量:5114 次
发布时间:2019-06-13

本文共 2545 字,大约阅读时间需要 8 分钟。

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

你可能感兴趣的文章
CDR案例:广告条幅banner设计
查看>>
【贪心】 【HDU 5821】 Ball
查看>>
.NET性能优化方面的总结(转)
查看>>
关于jmeter 加载jar文件的疑问
查看>>
poj2186【利用强连通分量】
查看>>
HDU1829【种类并查集】
查看>>
搭建nuxtjs程序 —— 用户信息 or token怎么不丢失
查看>>
Android快速开发(2)
查看>>
Windows下的SQL Server备份文件BAK在Linux环境下还原遇到的问题
查看>>
【题解】洛谷P4158 [SCOI2009] 粉刷匠(DP)
查看>>
mojing SDK根据坐标进行移动
查看>>
JS 扩展方法
查看>>
封装axios
查看>>
js转义html,反转义
查看>>
Educational Codeforces Round 39 A Partition
查看>>
上传文件
查看>>
12.2日常
查看>>
12.3日常
查看>>
追求心灵的宁静
查看>>
Educational Codeforces Round 25 G. Tree Queries
查看>>