SDK/README.txt

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 new project: New Project -> Templates/Visual C#/Windows/Windows 8/Windows -> Class Library (Windows 8.1)
   - If you see a prompt window about enabling "Develper Mode for Windows 10", you can either do so or safely ignore it. However, if you ignore it, you will be prompted again the next time you try to create a new such project.
   - If you don't find this project template, then you need to install extra feature in Visual Studio 2015. Modify your VS2015 to install the following feature:
       "Windows and Web Development -> Windows 8.1 and Windows Phone 8.0/8.1 Tools -> Tools and Windows SDKs"
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. Add line "<TargetFrameworkVersion>v0.1</TargetFrameworkVersion>" right before "<TargetPlatformVersion>8.1</TargetPlatformVersion>"
6. Change 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. Reload the project, and 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\".