<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
  <Import Project="..\..\..\..\installer\Version.props" />
  <!-- We don't have GenerateAssemblyInfo task until we use .net core, so we generate it with WriteLinesToFile -->
  <PropertyGroup>
    <AssemblyTitle>ImageResizer</AssemblyTitle>
    <AssemblyCompany>Microsoft Corp.</AssemblyCompany>
    <AssemblyCopyright>Copyright (C) 2019 Microsoft Corp.</AssemblyCopyright>
  </PropertyGroup>
  <ItemGroup>
    <AssemblyVersionFiles Include="Generated Files\AssemblyInfo.cs"/>
  </ItemGroup>
  <Target Name="GenerateAssemblyInfo" BeforeTargets="PrepareForBuild">
    <ItemGroup>
      <HeaderLines Include="// Copyright (c) Microsoft Corporation" />
      <HeaderLines Include="// The Microsoft Corporation licenses this file to you under the MIT license." />
      <HeaderLines Include="// See the LICENSE file in the project root for more information." />

      <HeaderLines Include="#pragma warning disable SA1516" />
      <HeaderLines Include="using System.Reflection%3b" />
      <HeaderLines Include="using System.Resources%3b" />
      <HeaderLines Include="using System.Runtime.InteropServices%3b" />
      <HeaderLines Include="using System.Windows%3b" />
      <HeaderLines Include="[assembly: AssemblyTitle(&quot;$(AssemblyTitle)&quot;)]" />
      <HeaderLines Include="[assembly: AssemblyDescription(&quot;&quot;)]" />
      <HeaderLines Include="[assembly: AssemblyConfiguration(&quot;&quot;)]" />
      <HeaderLines Include="[assembly: AssemblyCompany(&quot;$(AssemblyCompany)&quot;)]" />
      <HeaderLines Include="[assembly: AssemblyCopyright(&quot;$(AssemblyCopyright)&quot;)]" />
      <HeaderLines Include="[assembly: AssemblyProduct(&quot;$(AssemblyTitle)&quot;)]" />
      <HeaderLines Include="[assembly: AssemblyTrademark(&quot;&quot;)]" />
      <HeaderLines Include="[assembly: AssemblyCulture(&quot;&quot;)]" />
      <HeaderLines Include="[assembly: ComVisible(false)]" />
      <HeaderLines Include="[assembly: NeutralResourcesLanguage(&quot;en-US&quot;)]" />
      <HeaderLines Include="[assembly: ThemeInfo(ResourceDictionaryLocation.None, ResourceDictionaryLocation.SourceAssembly)]" />
      <HeaderLines Include="[assembly: AssemblyVersion(&quot;$(Version).0&quot;)]" />
      <HeaderLines Include="[assembly: AssemblyFileVersion(&quot;$(Version).0&quot;)]" />
    </ItemGroup>
    
    <WriteLinesToFile
      File="Generated Files\AssemblyInfo.cs"
      Lines="@(HeaderLines)"
      Overwrite="true"
      Encoding="Unicode"
      WriteOnlyWhenDifferent="true" />
  </Target>
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">x64</Platform>
    <ProjectGuid>{2BE46397-4DFA-414C-9BD4-41E4BBF8CB34}</ProjectGuid>
    <OutputType>WinExe</OutputType>
    <RootNamespace>ImageResizer</RootNamespace>
    <AssemblyName>ImageResizer</AssemblyName>
    <TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
    <FileAlignment>512</FileAlignment>
    <ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
    <WarningLevel>4</WarningLevel>
    <TargetFrameworkProfile>
    </TargetFrameworkProfile>
    <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
    <IntermediateOutputPath>$(SolutionDir)$(Platform)\$(Configuration)\obj\$(AssemblyName)\</IntermediateOutputPath>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
    <PlatformTarget>x64</PlatformTarget>
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>$(SolutionDir)$(Platform)\$(Configuration)\modules\</OutputPath>
    <DefineConstants>DEBUG;TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
    <Prefer32Bit>false</Prefer32Bit>
    <CodeAnalysisRuleSet>..\..\..\codeAnalysis\Rules.ruleset</CodeAnalysisRuleSet>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
    <PlatformTarget>x64</PlatformTarget>
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>$(SolutionDir)$(Platform)\$(Configuration)\modules\</OutputPath>
    <DefineConstants>TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
    <Prefer32Bit>false</Prefer32Bit>
    <CodeAnalysisRuleSet>..\..\..\codeAnalysis\Rules.ruleset</CodeAnalysisRuleSet>
  </PropertyGroup>
  <PropertyGroup>
    <ApplicationIcon>Resources\ImageResizer.ico</ApplicationIcon>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="Microsoft.VisualBasic" />
    <Reference Include="System" />
    <Reference Include="System.Xaml" />
    <Reference Include="WindowsBase" />
    <Reference Include="PresentationCore" />
    <Reference Include="PresentationFramework" />
  </ItemGroup>
  <ItemGroup>
    <ApplicationDefinition Include="App.xaml">
      <Generator>MSBuild:Compile</Generator>
      <SubType>Designer</SubType>
    </ApplicationDefinition>
    <Compile Include="..\codeAnalysis\GlobalSuppressions.cs">
      <Link>GlobalSuppressions.cs</Link>
    </Compile>
    <Compile Include="Extensions\BitmapEncoderExtensions.cs" />
    <Compile Include="Extensions\ICollectionExtensions.cs" />
    <Compile Include="Extensions\TimeSpanExtensions.cs" />
    <Compile Include="Models\ResizeError.cs" />
    <Compile Include="Properties\Settings.cs" />
    <Compile Include="Models\CustomSize.cs" />
    <Compile Include="Properties\InternalsVisibleTo.cs" />
    <Compile Include="Models\ResizeBatch.cs" />
    <Compile Include="Models\ResizeFit.cs" />
    <Compile Include="Models\ResizeOperation.cs" />
    <Compile Include="Models\ResizeSize.cs" />
    <Compile Include="Models\ResizeUnit.cs" />
    <Compile Include="Utilities\MathHelpers.cs" />
    <Compile Include="Utilities\Win32Helpers.cs" />
    <Compile Include="ViewModels\AdvancedViewModel.cs" />
    <Compile Include="ViewModels\InputViewModel.cs" />
    <Compile Include="ViewModels\ITabViewModel.cs" />
    <Compile Include="Views\AutoDoubleValidationRule.cs" />
    <Compile Include="Views\BoolValueConverter.cs" />
    <Compile Include="Views\ContainerFormatConverter.cs" />
    <Compile Include="Views\AutoDoubleConverter.cs" />
    <Compile Include="Views\IMainView.cs" />
    <Compile Include="ViewModels\MainViewModel.cs" />
    <Compile Include="ViewModels\ProgressViewModel.cs" />
    <Compile Include="ViewModels\ResultsViewModel.cs" />
    <Compile Include="Views\AdvancedWindow.xaml.cs">
      <DependentUpon>AdvancedWindow.xaml</DependentUpon>
    </Compile>
    <Compile Include="Views\TiffCompressOptionConverter.cs" />
    <Compile Include="Views\EnumValueConverter.cs" />
    <Compile Include="Views\ProgressPage.xaml.cs">
      <DependentUpon>ProgressPage.xaml</DependentUpon>
    </Compile>
    <Compile Include="Views\ResizeUnitConverter.cs" />
    <Compile Include="Views\ResultsPage.xaml.cs">
      <DependentUpon>ResultsPage.xaml</DependentUpon>
    </Compile>
    <Compile Include="Views\TimeRemainingConverter.cs" />
    <Page Include="Views\AdvancedWindow.xaml">
      <SubType>Designer</SubType>
      <Generator>MSBuild:Compile</Generator>
    </Page>
    <Page Include="Views\InputPage.xaml">
      <SubType>Designer</SubType>
      <Generator>MSBuild:Compile</Generator>
    </Page>
    <Page Include="Views\MainWindow.xaml">
      <Generator>MSBuild:Compile</Generator>
      <SubType>Designer</SubType>
    </Page>
    <Compile Include="App.xaml.cs">
      <DependentUpon>App.xaml</DependentUpon>
      <SubType>Code</SubType>
    </Compile>
    <Compile Include="Views\InputPage.xaml.cs">
      <DependentUpon>InputPage.xaml</DependentUpon>
    </Compile>
    <Compile Include="Views\MainWindow.xaml.cs">
      <DependentUpon>MainWindow.xaml</DependentUpon>
      <SubType>Code</SubType>
    </Compile>
    <Page Include="Views\ProgressPage.xaml">
      <SubType>Designer</SubType>
      <Generator>MSBuild:Compile</Generator>
    </Page>
    <Page Include="Views\ResultsPage.xaml">
      <SubType>Designer</SubType>
      <Generator>MSBuild:Compile</Generator>
    </Page>
  </ItemGroup>
  <ItemGroup>
    <Compile Include="Generated Files\AssemblyInfo.cs">
      <SubType>Code</SubType>
    </Compile>
    <Compile Include="Properties\Resources.Designer.cs">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>Resources.resx</DependentUpon>
    </Compile>
    <EmbeddedResource Include="Properties\Resources.ar.resx" />
    <EmbeddedResource Include="Properties\Resources.bg.resx" />
    <EmbeddedResource Include="Properties\Resources.ca.resx" />
    <EmbeddedResource Include="Properties\Resources.cs.resx" />
    <EmbeddedResource Include="Properties\Resources.de.resx" />
    <EmbeddedResource Include="Properties\Resources.es.resx" />
    <EmbeddedResource Include="Properties\Resources.eu-ES.resx" />
    <EmbeddedResource Include="Properties\Resources.fr.resx" />
    <EmbeddedResource Include="Properties\Resources.he.resx" />
    <EmbeddedResource Include="Properties\Resources.hu.resx" />
    <EmbeddedResource Include="Properties\Resources.it.resx" />
    <EmbeddedResource Include="Properties\Resources.nb-NO.resx" />
    <EmbeddedResource Include="Properties\Resources.nl.resx" />
    <EmbeddedResource Include="Properties\Resources.pl.resx" />
    <EmbeddedResource Include="Properties\Resources.pt-BR.resx" />
    <EmbeddedResource Include="Properties\Resources.resx">
      <Generator>PublicResXFileCodeGenerator</Generator>
      <LastGenOutput>Resources.Designer.cs</LastGenOutput>
      <SubType>Designer</SubType>
    </EmbeddedResource>
    <EmbeddedResource Include="Properties\Resources.ru.resx" />
    <EmbeddedResource Include="Properties\Resources.sk.resx" />
    <EmbeddedResource Include="Properties\Resources.tr.resx" />
    <EmbeddedResource Include="Properties\Resources.zh-Hans.resx" />
  </ItemGroup>
  <ItemGroup>
    <AdditionalFiles Include="..\..\..\codeAnalysis\StyleCop.json" />
  </ItemGroup>
  <ItemGroup>
    <None Include="App.config" />
  </ItemGroup>
  <ItemGroup>
    <Resource Include="Resources\ImageResizer.ico" />
  </ItemGroup>
  <ItemGroup>
    <Resource Include="Resources\ImageResizer.png" />
  </ItemGroup>
  <ItemGroup>
    <PackageReference Include="MvvmLightLibs">
      <Version>5.4.1.1</Version>
    </PackageReference>
    <PackageReference Include="Newtonsoft.Json">
      <Version>12.0.3</Version>
    </PackageReference>
    <PackageReference Include="StyleCop.Analyzers">
      <Version>1.1.118</Version>
      <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
      <PrivateAssets>all</PrivateAssets>
    </PackageReference>
  </ItemGroup>
  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
  <PropertyGroup>
    <TargetFrameworkSDKToolsDirectory Condition=" '$(Platform)' == 'x64'">$(TargetFrameworkSDKToolsDirectory)$(Platform)\</TargetFrameworkSDKToolsDirectory>
  </PropertyGroup>
</Project>