Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "version": "0.0.1-*",
- "description": "Quick app to exercise a few .NET things",
- "dependencies": {
- },
- "commands": {
- "run": "run"
- },
- "configurations": {
- "Debug": {
- "compilationOptions": {
- "define": [
- "DEBUG"
- ]
- }
- }
- },
- "frameworks": {
- "dnx451": {
- "frameworkAssemblies": {
- "System.Xml":"4.0.0.0",
- "System.Xml.Linq":"4.0.0.0"
- },
- "dependencies": {
- "System.Runtime": "4.0.0.0",
- "System.Net.Http": "4.0.0.0",
- "System.Runtime.Extensions": "4.0.0.0"
- }
- }
- }
- }
- --
- using System;
- using System.Net;
- namespace Examples.System.Net
- {
- public class Program
- {
- static void Main(string[] args) {
- var URL = "http://yada.co.uk";
- var targetFile = @"c:\scratch\x3.html";
- using (WebClient client = new WebClient()) {
- client.DownloadFile(URL, targetFile);
- }
- Console.ReadLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement