<Project Sdk="Microsoft.NET.Sdk">

  <Import Project="..\..\PowerShell.Common.props"/>  

  <PropertyGroup>
    <Description>PowerShell Core's Microsoft.PowerShell.Commands.Utility project</Description>
    <NoWarn>$(NoWarn);CS1570</NoWarn>
    <AssemblyName>Microsoft.PowerShell.Commands.Utility</AssemblyName>
  </PropertyGroup>

  <ItemGroup>
    <ProjectReference Include="..\System.Management.Automation\System.Management.Automation.csproj" />
  </ItemGroup>

  <PropertyGroup>
    <DefineConstants>$(DefineConstants);CORECLR</DefineConstants>
  </PropertyGroup>

  <ItemGroup>
    <Compile Remove="commands\utility\FormatAndOutput\OutGridView\ColumnInfo.cs" />
    <Compile Remove="commands\utility\FormatAndOutput\OutGridView\ExpressionColumnInfo.cs" />
    <Compile Remove="commands\utility\FormatAndOutput\OutGridView\HeaderInfo.cs" />
    <Compile Remove="commands\utility\FormatAndOutput\OutGridView\OriginalColumnInfo.cs" />
    <Compile Remove="commands\utility\FormatAndOutput\OutGridView\OutGridViewCommand.cs" />
    <Compile Remove="commands\utility\FormatAndOutput\OutGridView\OutWindowProxy.cs" />
    <Compile Remove="commands\utility\FormatAndOutput\OutGridView\ScalarTypeColumnInfo.cs" />
    <Compile Remove="commands\utility\FormatAndOutput\OutGridView\TableView.cs" />
    <Compile Remove="commands\utility\FormatAndOutput\out-printer\PrinterLineOutput.cs" />
    <Compile Remove="commands\utility\FormatAndOutput\out-printer\out-printer.cs" />
    <Compile Remove="commands\utility\ShowCommand\ShowCommand.cs" />
    <Compile Remove="commands\utility\ShowCommand\ShowCommandCommandInfo.cs" />
    <Compile Remove="commands\utility\ShowCommand\ShowCommandModuleInfo.cs" />
    <Compile Remove="commands\utility\ShowCommand\ShowCommandParameterInfo.cs" />
    <Compile Remove="commands\utility\ShowCommand\ShowCommandParameterSetInfo.cs" />
    <Compile Remove="commands\utility\ShowCommand\ShowCommandParameterType.cs" />
    <Compile Remove="commands\utility\ShowCommand\ShowCommandProxy.cs" />
    <Compile Remove="commands\utility\update-list.cs" />
    <Compile Remove="singleshell\installer\MshUtilityMshSnapin.cs" />
    <Compile Remove="commands\utility\WebCmdlet\FullClr\BasicHtmlWebResponseObject.FullClr.cs" />
    <Compile Remove="commands\utility\WebCmdlet\FullClr\ContentHelper.FullClr.cs" />
    <Compile Remove="commands\utility\WebCmdlet\FullClr\HtmlWebResponseObject.FullClr.cs" />
    <Compile Remove="commands\utility\WebCmdlet\FullClr\InvokeRestMethodCommand.FullClr.cs" />
    <Compile Remove="commands\utility\WebCmdlet\FullClr\InvokeWebRequestCommand.FullClr.cs" />
    <Compile Remove="commands\utility\WebCmdlet\FullClr\JsonObjectTypeResolver.cs" />
    <Compile Remove="commands\utility\WebCmdlet\FullClr\WebRequestPSCmdlet.FullClr.cs" />
    <Compile Remove="commands\utility\WebCmdlet\FullClr\WebResponseHelper.FullClr.cs" />
    <Compile Remove="commands\utility\WebCmdlet\FullClr\WebResponseObject.FullClr.cs" />
    <Compile Remove="commands\utility\WebCmdlet\FullClr\WebResponseObjectFactory.FullClr.cs" />
    <Compile Remove="commands\utility\WebCmdlet\CoreCLR\HtmlWebResponseObject.CoreClr.cs" />
    <Compile Remove="gen\FormatAndOut_out_gridview.cs" />
    <Compile Remove="gen\UtilityMshSnapinResources.cs" />
    <Compile Remove="gen\OutPrinterDisplayStrings.cs" />
    <Compile Remove="gen\UpdateListStrings.cs" />
    <Compile Remove="gen\ConvertFromStringResources.cs" />
    <Compile Remove="gen\ConvertStringResources.cs" />
    <Compile Remove="gen\FlashExtractStrings.cs" />
    <Compile Remove="gen\ImmutableStrings.cs" />

    <EmbeddedResource Remove="resources\FormatAndOut_out_gridview.resx" />
    <EmbeddedResource Remove="resources\UtilityMshSnapinResources.resx" />
    <EmbeddedResource Remove="resources\OutPrinterDisplayStrings.resx" />
    <EmbeddedResource Remove="resources\UpdateListStrings.resx" />
    <EmbeddedResource Remove="resources\ConvertFromStringResources.resx" />
    <EmbeddedResource Remove="resources\ConvertStringResources.resx" />
    <EmbeddedResource Remove="resources\FlashExtractStrings.resx" />
    <EmbeddedResource Remove="resources\ImmutableStrings.resx" />
  </ItemGroup>

  <PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
    <DebugType>portable</DebugType>
  </PropertyGroup>

  <PropertyGroup Condition=" '$(Configuration)' == 'Linux' ">
    <DefineConstants>$(DefineConstants);UNIX</DefineConstants>
  </PropertyGroup>

  <PropertyGroup Condition=" '$(Configuration)' == 'CodeCoverage' ">
    <DebugType>full</DebugType>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="2.2.0" />
  </ItemGroup>

</Project>
