public static void CopyFile(string from, string into)
{
using (var fromFile = File.Open(from, FileMode.Open, FileAccess.Read))
using (var toFile = File.Open(into, FileMode.Create, FileAccess.Write))
{
// ... Perform actual file copy
// Both FileStream objects are disposed at the end of the enclosing scope,
// in this case, the method declaration.public static void CopyFile(string from, string into)
{
using (var fromFile = File.Open(from, FileMode.Open, FileAccess.Read))
using (var toFile = File.Open(into, FileMode.Create, FileAccess.Write))
{
// ... Perform actual file copy
// Both FileStream objects are disposed at the end of the enclosing scope,
// in this case, the method declaration.
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
| <Project Sdk="Microsoft.NET.Sdk"> | |
| <PropertyGroup> | |
| <OutputType>Exe</OutputType> | |
| <TargetFramework>net471</TargetFramework> | |
| <LangVersion>Latest</LangVersion> | |
| </PropertyGroup> | |
| <ItemGroup> | |
| <PackageReference Include="Microsoft.Build.Locator" Version="1.0.7-preview-ge60d679b53" /> |
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
| `build.ps1 -build -sign -pack`: | |
| - Build-Artifacts | |
| - Run-MSBuild "Roslyn.sln" "/p:DeployExtension=false" | |
| - Build-ExtraSignArtifacts | |
| - Build-NuGetPackages | |
| - Run-SignTool | |
| - Build-InsertionItems | |
| `build.ps1 -build`: | |
| - Build-Artifacts |
build.ps1 -build -sign -pack:
- Build-Artifacts
- Run-MSBuild "Roslyn.sln" "/p:DeployExtension=false"
- Build-ExtraSignArtifacts
- Build-NuGetPackages
- Run-SignTool
- Build-InsertionItems
build.ps1 -build:
- Build-Artifacts
PCPartPicker part list / Price breakdown by merchant
| Type | Item | Price |
|---|---|---|
| CPU | AMD - Threadripper 1950X 3.4GHz 16-Core Processor | $774.89 @ OutletPC |
| CPU Cooler | Corsair - H100i v2 70.7 CFM Liquid CPU Cooler | $89.99 @ Amazon |
| Motherboard | Gigabyte - X399 DESIGNARE EX ATX TR4 Motherboard | $379.06 @ Amazon |
| Memory | G.Skill - Ripjaws V Series 16GB (2 x 8GB) DDR4-3200 Memory (2) | $399.87 @ OutletPC |
| Storage | [Samsung - 970 Evo 1.0TB M.2-2280 Solid State Drive](https://pcpartpicker.com/product/JLdxFT/samsung-970-evo-10tb-m2-2280 |
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
| <Project Sdk="Microsoft.NET.Sdk"> | |
| <PropertyGroup> | |
| <OutputType>Exe</OutputType> | |
| <TargetFramework>net461</TargetFramework> | |
| <LangVersion>Latest</LangVersion> | |
| </PropertyGroup> | |
| <ItemGroup> | |
| <PackageReference Include="Microsoft.Build.Locator" Version="1.0.18" /> |
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
| Imports System | |
| Imports System.Collections.Generic | |
| Imports System.IO | |
| Imports System.Linq | |
| Imports System.Text | |
| Imports System.Threading.Tasks | |
| Imports Microsoft.Build.Locator | |
| Imports Microsoft.CodeAnalysis | |
| Imports Microsoft.CodeAnalysis.VisualBasic | |
| Imports Microsoft.CodeAnalysis.VisualBasic.Symbols |
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.Diagnostics; | |
| using System.Reflection; | |
| using System.Runtime.CompilerServices; | |
| using System.Runtime.InteropServices; | |
| using System.Security; | |
| using System.Security.Permissions; | |
| [assembly: CompilationRelaxations(8)] | |
| [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] |
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
| <Project Sdk="Microsoft.NET.Sdk"> | |
| <PropertyGroup> | |
| <OutputType>Exe</OutputType> | |
| <TargetFramework>net472</TargetFramework> | |
| <LangVersion>8.0</LangVersion> | |
| </PropertyGroup> | |
| <ItemGroup> | |
| <PackageReference Include="Microsoft.Build.Locator" Version="1.2.6" /> |