<Project Sdk="Microsoft.NET.Sdk">
    <!-- Dummy Project for Packing Satellite Packages -->
    <PropertyGroup>
        <TargetFramework>netstandard2.0</TargetFramework>
        <NoBuild>true</NoBuild>
        <IncludeBuildOutput>false</IncludeBuildOutput>
        <NuspecFile>$(ArtifactsBinDir)\$(PackageId)\$(Locale)\$(PackageId).$(Locale).nuspec</NuspecFile>
        <NuspecBasePath>$(ArtifactsBinDir)\$(PackageId)\</NuspecBasePath>
    </PropertyGroup>

    <!-- Set these later, when PackageVersion is available -->
    <PropertyGroup>
        <GenerateNuspecDependsOn>$(GenerateNuspecDependsOn);SetNuspecProperties</GenerateNuspecDependsOn>
    </PropertyGroup>
    <Target Name="SetNuspecProperties">
        <PropertyGroup>
            <!-- We use the slightly odd variable names $CopyrightNotice$ and $ProjectSiteUrl$ because the loc tools seem to have some built-in translations for the more natural $Copyright$ and $ProjectUrl$ -->
            <NuspecProperties>Locale=$(Locale);PackageVersion=$(PackageVersion);Configuration=$(Configuration);PackageIcon=$(PackageIconFullPath);ReleaseNotes=$(PackageReleaseNotes);Authors=$(Authors);Owners=$(Owners);CopyrightNotice=$(Copyright);ProjectSiteUrl=$(PackageProjectUrl);RequireLicenseAcceptance=$(PackageRequireLicenseAcceptance);License=$(LicenseFullPath)</NuspecProperties>
            <PackageOutputPath>$(PackageOutputPath)\satellite\$(Locale)</PackageOutputPath>
        </PropertyGroup>
    </Target>
</Project>