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

  <PropertyGroup>
    <TargetFramework>netcoreapp2.1</TargetFramework>
    <ApplicationIcon />
    <OutputType>Exe</OutputType>
    <StartupObject /> 
    <Version>2.25.313</Version>
    <Description>https://github.com/sersms/Sqler</Description>
    <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
    <PreserveCompilationContext>true</PreserveCompilationContext>
    <MvcRazorExcludeRefAssembliesFromPublish>false</MvcRazorExcludeRefAssembliesFromPublish> 
  </PropertyGroup>


  <PropertyGroup>
    <DocumentationFile>bin\Debug\netcoreapp2.1\Sqler.xml</DocumentationFile>
  </PropertyGroup>
 
 
  <ItemGroup>
    <PackageReference Include="Microsoft.AspNetCore.App" />
    <PackageReference Include="Microsoft.CodeAnalysis.Common" Version="3.8.0" />
 
    <PackageReference Include="Vit.Orm.EntityFramework.Dynamic" Version="2.1.1.459" />
    <PackageReference Include="Vit.WebHost" Version="2.1.1.459" />
  </ItemGroup>
  
  <ItemGroup>
    <ProjectReference Include="..\Library\Vit.Db.DbMng\Vit.Db.DbMng.csproj" />
  </ItemGroup> 


  <ItemGroup>
 
    <Content Update="appsettings.json">
      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
    </Content>
 
    <Content Update="contentTypeMap.json">
      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
    </Content>
 
    <Content Update="Data\sqler.SqlVersion.table.json">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </Content>
 
    <Content Update="Data\sqler.DataEditor.json">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </Content>
 
    <Content Update="Data\sqler.json">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </Content>
 
    <Content Update="Data\SqlVersion\Demo.json">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </Content>
 
  </ItemGroup>  
  
  
  
  
  <ItemGroup>
    <None Update="Data\db.sqlite">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </None>
    <None Update="Data\MySqlBackup\readme.txt">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </None>
    <None Update="Data\SqlServerBackup\readme.txt">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </None>
    <None Update="Data\Temp\readme.txt">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </None>
    <None Update="help.bat">
      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
    </None>
    <None Update="Start Sqler.bat">
      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
    </None>
  </ItemGroup>

  <!--<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
    <Exec Command="xcopy  &quot;$(ProjectDir)wwwroot&quot; &quot;$(TargetDir)\wwwroot&quot; /e /i /r /y" />
  </Target>-->
  
   <!--<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
    <Exec Command="xcopy  &quot;$(ProjectDir)Data&quot; &quot;$(TargetDir)\Data&quot; /e /i /r /y" />
  </Target>-->

</Project>
