This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Dynamic; | |
| using System.IO; | |
| using System.Reflection; | |
| using Microsoft.CodeAnalysis; | |
| using Microsoft.CodeAnalysis.CSharp; | |
| public class Program | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Running tests... Start time: 19:08:50,30 | |
| Command(s): | |
| CoreRun.exe xunit.console.netcore.exe System.Runtime.Tests.dll -xml testResults.xml -notrait Benchmark=true -notrai | |
| t category=OuterLoop -notrait category=failing -notrait category=nonwindowstests | |
| xUnit.net console test runner (64-bit .NET Core) | |
| Copyright (C) 2014 Outercurve Foundation. | |
| Discovering: System.Runtime.Tests | |
| Discovered: System.Runtime.Tests | |
| Starting: System.Runtime.Tests |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Globalization; | |
| namespace ConsoleApplication | |
| { | |
| public class Program | |
| { | |
| public static void Main(string[] args) | |
| { | |
| var regions = new[] { "SE", "GB", "IL", "RU", "PK", "FR" }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| **************************** | |
| * Building .NET Core CLI * | |
| **************************** | |
| Target Package from Standard Goals was overridden in Microsoft.DotNet.Cli.Build.PackageTargets.Package | |
| Target Prepare from Standard Goals was overridden in Microsoft.DotNet.Cli.Build.PrepareTargets.Prepare | |
| Target Compile from Standard Goals was overridden in Microsoft.DotNet.Cli.Build.CompileTargets.Compile | |
| Target Publish from Standard Goals was overridden in Microsoft.DotNet.Cli.Build.PublishTargets.Publish | |
| Target Test from Standard Goals was overridden in Microsoft.DotNet.Cli.Build.TestTargets.Test | |
| RGET >] Default (Standard Goals) | |
| RGET >] Prepare (Microsoft.DotNet.Cli.Build.PrepareTargets.Prepare) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Net.Http; | |
| using Newtonsoft.Json; | |
| public class Program | |
| { | |
| public static void Main() | |
| { | |
| var data = new { x = 42 }; | |
| var url = "https://httpbin.org/post"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Runtime.InteropServices; | |
| public class Program | |
| { | |
| public static void Main() | |
| { | |
| Console.WriteLine(RuntimeInformation.IsOSPlatform(OSPlatform.Windows)); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ~/hwapp2$ dotnet run | |
| Project hwapp2 (.NETFramework,Version=v4.5.1) will be compiled because expected outputs are missing | |
| Compiling hwapp2 for .NETFramework,Version=v4.5.1 | |
| Compilation succeeded. | |
| 0 Warning(s) | |
| 0 Error(s) | |
| Time elapsed 00:00:01.4149219 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Linq; | |
| using System.IO; | |
| using System.IO.Packaging; | |
| namespace ConsoleApplication | |
| { | |
| public class Program | |
| { | |
| public static void Main(string[] args) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| base | |
| any | |
| win | |
| win-x86 | |
| win-x64 | |
| win7 | |
| win7-x86 | |
| win7-x64 | |
| win8 | |
| win8-x86 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <configuration> | |
| <packageSources> | |
| <add key="ps" value="https://powershell.myget.org/F/powershell-core/api/v3/index.json" /> | |
| </packageSources> | |
| </configuration> |