51562109ea
* Migrate TestPackages * Add check for desktop available * Revert previous change * WIP try something for non-Windows * Another attempt to pack properly on non-windows * Another attempt to fix pack errors * Remove spaces * Another attempt to make pack work cross-platform
52 lines
2 KiB
XML
52 lines
2 KiB
XML
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" />
|
|
|
|
<PropertyGroup>
|
|
<VersionPrefix>1.0.0-rc</VersionPrefix>
|
|
<TargetFrameworks>netcoreapp1.0;net451</TargetFrameworks>
|
|
<AssemblyName>dotnet-desktop-and-portable</AssemblyName>
|
|
<OutputType>Exe</OutputType>
|
|
<RuntimeIdentifiers>win7-x64;win7-x86;osx.10.11-x64;ubuntu.14.04-x64;ubuntu.16.04-x64;centos.7-x64;rhel.7.2-x64;debian.8-x64;fedora.23-x64;opensuse.13.2-x64;osx.10.10-x64;rhel.7-x64</RuntimeIdentifiers>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<Compile Include="**\*.cs" />
|
|
<EmbeddedResource Include="**\*.resx" />
|
|
<EmbeddedResource Include="compiler\resources\**\*" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Content Condition="'$(TargetFramework)' == ''" Include="$(OutputPath)\netcoreapp1.0\$(AssemblyName).runtimeconfig.json">
|
|
<Pack>true</Pack>
|
|
<PackagePath>lib\netcoreapp1.0</PackagePath>
|
|
</Content>
|
|
<Content Condition="'$(TargetFramework)' != ''" Include="$(OutputPath)\$(AssemblyName).runtimeconfig.json">
|
|
<Pack>true</Pack>
|
|
<PackagePath>lib\$(TargetFramework)</PackagePath>
|
|
</Content>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="Microsoft.NET.Sdk">
|
|
<Version>1.0.0-alpha-20161104-2</Version>
|
|
<PrivateAssets>All</PrivateAssets>
|
|
</PackageReference>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp1.0' ">
|
|
<PackageReference Include="Microsoft.NETCore.App">
|
|
<Version>1.0.1</Version>
|
|
</PackageReference>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup Condition=" '$(TargetFramework)' == 'net451' ">
|
|
<Reference Include="System" />
|
|
<Reference Include="Microsoft.CSharp" />
|
|
</ItemGroup>
|
|
|
|
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
|
|
<DefineConstants>$(DefineConstants);RELEASE</DefineConstants>
|
|
</PropertyGroup>
|
|
|
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
|
</Project>
|