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
42 lines
1.4 KiB
XML
42 lines
1.4 KiB
XML
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" />
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>netcoreapp1.0</TargetFramework>
|
|
<AssemblyName>dotnet-tool-with-output-name</AssemblyName>
|
|
<PackageId>ToolWithOutputName</PackageId>
|
|
<OutputType>Exe</OutputType>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<Compile Include="**\*.cs" />
|
|
<EmbeddedResource Include="**\*.resx" />
|
|
<EmbeddedResource Include="compiler\resources\**\*" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Content 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>
|
|
|
|
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
|
|
<DefineConstants>$(DefineConstants);RELEASE</DefineConstants>
|
|
</PropertyGroup>
|
|
|
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
|
</Project>
|