c#初学者下载_如何为初学者视频下载80多种免费的101级C#、. NET和ASP.NET,以供离线观看

c#初学者下载

c#初学者下载

Earlier this week I announced over 80 new free videos in our .NET Core 3.0 launch video series - Announcing free C#, .NET, and ASP.NET for beginners video courses and tutorials

本周早些时候,我在.NET Core 3.0发布视频系列中宣布了80多个新的免费视频-为初学者视频课程和教程宣布免费的C#、. NET和ASP.NET。

Three questions came up consistently:

始终出现三个问题:

  • My work or country blocks YouTube! What about me?

    我的工作或所在国家/地区阻止了YouTube! 那我呢?
  • How can I download these and watch them offline?

    如何下载这些内容并离线观看?
  • I have very low bandwidth. Can I get smaller versions I can download over 3G/4G?

    我的带宽很低。 我可以得到可以通过3G / 4G下载的较小版本吗?

Here's some answers for you!

这是给您的一些答案!

我的工作或所在国家/地区阻止了YouTube! 那我呢? (My work or country blocks YouTube! What about me?)

First, we have updated http://dot.net/videos to include links to BOTH YouTube *and* to the same videos hosted on Microsoft's Channel 9, which shouldn't be blocked by you country or company!

首先,我们更新了http://dot.net/videos,以包括指向YouTube和*的链接,同时也指向Microsoft的Channel 9上托管的相同视频,而您所在的国家或公司则不应阻止!

如何下载这些内容并离线观看? (How can I download these and watch them offline?)

Good question! Here's how to download a whole series with PowerShell! Let's say I want to download "C# 101."

好问题! 这是使用PowerShell下载整个系列的方法! 假设我要下载“ C#101”。

First, head over to https://dot.net/videos.

首先,转到https://dot.net/videos

Second, click "Watch on Channel 9" there at the bottom of the series you want, in my case, C# 101.

其次,在您想要的系列的底部(在我的情况下为C#101)单击“在频道9上观看”。

Note that there's a link there in the corner that says "RSS" - that's Really Simple Syndication!

请注意,角落里有一个链接,上面写着“ RSS”-这真的很简单!

RSS Videos for Channel 9 Videos

Right click on the one you want, for example MP4 Low for people on low bandwidth connections! (Question #3 gets answered too, two for one!), and say "Copy Link Address." Now that link is in your clipboard!

右键单击您想要的一个,例如MP4 Low(低带宽连接人员)! (问题3的答案也得到回答,两个一!),然后说“复制链接地址”。 现在该链接在剪贴板中!

Next, I made a little PowerShell script and put it here in a Gist. If you want, you can right click on this link here and Save Link As and name it something like DownloadVideos.ps1. Maybe save it in C:\temp or c:\users\YOURNAME\Desktop\DotNetVideos. Whatever makes you happy. Make sure you saved it with a *.ps1 extension.

接下来,我制作了一个小PowerShell脚本并将其放在Gist中。 如果需要,可以右键单击此链接,然后将链接另存为,并命名为DownloadVideos.ps1。 也许将其保存在C:\ temp或c:\ users \ YOURNAME \ Desktop \ DotNetVideos中。 令您开心的事。 确保以* .ps1扩展名保存它。

Finally, open up the PS1 file in a text editor and check lines 2 and 3. Put in a path that's correct for YOUR computer, again, like C:\temp, or your downloads folder.

最后,在文本编辑器中打开PS1文件,并检查第2行和第3行。再次输入适合您计算机的路径,例如C:\ temp或您的下载文件夹。

#CHECK THE PATH ON LINE 2 and the FEED on LINE 3
cd "C:\users\scott\Downloads"
$a = ([xml](new-object net.webclient).downloadstring("https://channel9.msdn.com/Series/CSharp-101/feed/mp4"))
$a.rss.channel.item | foreach{
$url = New-Object System.Uri($_.enclosure.url)
$file = $url.Segments[-1]
$file
if (!(test-path $file)) {
(New-Object System.Net.WebClient).DownloadFile($url, $file)
}
}

Make sure the RSS link that you copied earlier above is correct on line 3. We need a Local Folder and we need our Remote RSS Link.

确保您上面上面复制的RSS链接在第3行上正确无误。我们需要一个本地文件夹,我们需要我们的远程RSS链接。

NOTE: If you're an expert you might think this PowerShell script isn't fancy enough or doesn't do x or y, but it'll do pretty nicely for this project. You're welcome to fork it or improve it here.

注意:如果您是专家,您可能会认为此PowerShell脚本不够花哨,或者不执行x或y,但是对于该项目而言,它做得很好。 欢迎您在此处进行分叉或改进

And finally, open up PowerShell on your machine from the Start Menu and run your downloadvideos.ps1 script like in this screenshot.

最后,从“开始”菜单打开计算机上的PowerShell,并运行此屏幕截图中的downloadvideos.ps1脚本。

如何获得低带宽视频,我可以通过慢速连接下载视频! (What about getting Low Bandwidth videos I can download on a slow connection!)

The low bandwidth videos are super small, some smaller than a JPEG! The largest is just 20 megs, so the full C# course is under 200 megs total.

低带宽视频非常小,有些比JPEG小! 最大的只有20兆,因此完整的C#课程总计不到200兆

You can download ALL the videos for EACH playlist by visiting http://dot.net/videos, getting the RSS URL for the video playlist you want, and running the PS1 script again with the changed URL on line 3.

您可以通过访问http://dot.net/videos下载每个播放列表的所有视频获取所需视频播放列表的RSS URL,然后在第3行使用更改后的URL再次运行PS1脚本。

Hope this helps!

希望这可以帮助!

Sponsor: Like C#? We do too! That’s why we've developed a fast, smart, cross-platform .NET IDE which gives you even more coding power. Clever code analysis, rich code completion, instant search and navigation, an advanced debugger... With JetBrains Rider, everything you need is at your fingertips. Code C# at the speed of thought on Linux, Mac, or Windows. Try JetBrains Rider today!

赞助商:喜欢C#吗? 我们也这样做! 这就是为什么我们开发了一个快速,智能,跨平台的.NET IDE的原因,它为您提供了更多的编码能力。 巧妙的代码分析,丰富的代码完成,即时搜索和导航,高级调试器...使用JetBrains Rider,您所需的一切都唾手可得。 在Linux,Mac或Windows上以思考的速度编写C#代码。 立即尝试JetBrains Rider

翻译自: https://www.hanselman.com/blog/how-to-download-over-80-free-101level-c-net-and-aspnet-for-beginners-videos-for-offline-viewing

c#初学者下载

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值