SDK/README.txt
Prerequisites
1. You need to install Visual Studio 2015 Update 2. You can download and install 'Visual Studio Community 2015' from https://www.visualstudio.com/en-us/products/visual-studio-community-vs.aspx. 2. YOu need to install the following optional feature of Visual Studio 2015 to enable CoreCLR remote debugging: "Windows and Web Development -> Universal Windows App Development Tools -> Tools (1.3.1) and Windows 10 SDK" Create C# Project in Visual Studio 2015 targeting NanoPS reference assemblies 1. Copy the folder "v0.1" (containing CoreCLR and PowerShell reference assemblies for TP5 NanoServer) to "%SystemDrive%\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETCore". 2. In Visual Studio 2015, create a new project: "New Project -> Templates/Visual C#/Windows/Class Library". 3. Copy the 2 targets files "Microsoft.Coresys.Common.Targets" and "Microsoft.CoreSys.CSharp.Targets" in your project folder, right beside the .csproj file. 4. Unload the project, and open the .csproj file of the project to edit. - To unload or reload the project, right click the project item in the 'Solution Explorer' window, and then select 'Unload Project' or 'Reload Project'. - To open the .csproj file after unloading the project, right click the project item in the 'Solution Explorer' window, and then select 'Edit <ProjectName>.csproj'. 5. Edit the value of the "TargetFrameworkVersion" element to match the SDK version: �� <Project> ���� <PropertyGroup> ������ <TargetFrameworkVersion>v0.1</TargetFrameworkVersion> 6. Edit the "Import" statement at the bottom of the .csproj file to point to "Microsoft.CoreSys.CSharp.targets". After the change, it should look like the following: "<Import Project="Microsoft.CoreSys.CSharp.targets" />" 7. Remove the "ItemGroup" section that only contains "Reference" elements: <ItemGroup> <Reference Include="System"/> ... </ItemGroup> 8. Save the .csproj file and reload the project. The project is now targeting CoreCLR and PowerShell reference assemblies for TP5 NanoServer. Expand 'Reference' and you will see ".NET for Server". If you check the properties of it, you will see the "Path" property points to "%SystemDrive%\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETCore\v0.1\". |