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

  <PropertyGroup>
    <TargetFramework>$(CoreSdkTargetFramework)</TargetFramework>
    <GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
    <CopyBuildOutputToPublishDirectory>false</CopyBuildOutputToPublishDirectory>
    <ProduceReferenceAssembly>false</ProduceReferenceAssembly>
    <ResolveAssemblyReferencesSilent>true</ResolveAssemblyReferencesSilent>
    <ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>none</ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>
    <BundleRuntimePacks Condition="'$(BundleRuntimePacks)' == '' and '$(DotNetBuildSourceOnly)' == 'true'">true</BundleRuntimePacks>
    <BundleNativeAotCompiler Condition="'$(BundleNativeAotCompiler)' == '' and '$(DotNetBuildSourceOnly)' == 'true' and '$(SourceBuildUseMonoRuntime)' != 'true'">true</BundleNativeAotCompiler>
  </PropertyGroup>

  <ItemGroup>
    <FrameworkReference Update="Microsoft.NETCore.App" TargetingPackVersion="$(MicrosoftNETCoreAppRefPackageVersion)" RuntimeFrameworkVersion="$(MicrosoftNETCoreAppRuntimePackageVersion)" />

    <ProjectReference Include="projects\SdkResolver.csproj" ReferenceOutputAssembly="false" Condition="'$(DotNetBuildSourceOnly)' != 'true'" />
    <ProjectReference Include="projects\VSTemplateLocator.csproj" ReferenceOutputAssembly="false" Condition="'$(DotNetBuildSourceOnly)' != 'true'" />
  </ItemGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.DotNet.Build.Tasks.Installers" Version="$(MicrosoftDotNetBuildTasksInstallersPackageVersion)" />
  </ItemGroup>

  <Import Project="targets\BuildCoreSdkTasks.targets" />
  <Import Project="targets\GetRuntimeInformation.targets" />
  <Import Project="targets\SetBuildDefaults.targets" />
  <Import Project="targets\Versions.targets" />
  <Import Project="targets\Branding.targets" />
  <Import Project="targets\BundledTemplates.targets" />
  <Import Project="targets\BundledManifests.targets" />
  <Import Project="targets\BundledDotnetTools.targets" />
  <Import Project="targets\GenerateBundledVersions.targets" />
  <Import Project="targets\Crossgen.targets" />
  <Import Project="targets\GenerateLayout.targets" />
  <Import Project="targets\GenerateMSBuildExtensions.targets" />
  <Import Project="targets\FileExtensions.targets" />
  <Import Project="targets\GenerateArchives.targets" />
  <Import Project="targets\GenerateMSIs.targets" />
  <Import Project="targets\LinuxNativeInstallerDependencyVersions.targets" />
  <Import Project="targets\GenerateDebs.targets" />
  <Import Project="targets\GenerateRPMs.targets" />
  <Import Project="targets\GeneratePKG.targets" />
  <Import Project="targets\GenerateInstallers.targets" />
  <Import Project="targets\Badge.targets" />

</Project>
