Prototype round #1 of .NET Core MSBuild .props and .targets.

This commit is contained in:
Eric Erhardt 2016-07-18 11:50:36 -05:00
parent 9446a81a25
commit 30712966cc
15 changed files with 494 additions and 7 deletions

View file

@ -0,0 +1,17 @@
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" />
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworkIdentifier>.NETCoreApp</TargetFrameworkIdentifier>
<TargetFrameworkVersion>v1.0</TargetFrameworkVersion>
</PropertyGroup>
<ItemGroup>
<Compile Include="**\*.cs" Exclude="$(GlobalExclude)" />
<EmbeddedResource Include="**\*.resx" Exclude="$(GlobalExclude)" />
<None Include="project.json" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

View file

@ -0,0 +1,12 @@
using System;
namespace MSBuildTestApp
{
public class Program
{
public static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}

View file

@ -0,0 +1,19 @@
{
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.0.0",
"type": "platform"
},
"Microsoft.DotNet.Core.MSBuild": "1.0.0-preview3"
},
"frameworks": {
"netcoreapp1.0": {
}
},
"runtimes": {
"win-x64": {},
"win-x86": {},
"win10-x64": {},
"win10-x86": {}
}
}

View file

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="Local" value="Packages" />
<add key="tempnuget" value="C:\temp\nuget" />
</packageSources>
</configuration>

View file

@ -1,3 +1,3 @@
{
"projects": [ ".", "../../src" ]
"projects": [ "." ]
}