<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <!-- UseTizenGBSImportAfterTarget -->
+ <PropertyGroup Condition="'$(UseTizenGBSImportAfterTarget)' == ''">
+ <UseTizenGBSImportAfterTarget>false</UseTizenGBSImportAfterTarget>
+ <UseTizenGBSImportAfterTarget Condition="'$(TargetFrameworkIdentifier)' == '.NETStandard' or '$(TargetFrameworkIdentifier)' == 'Tizen'">true</UseTizenGBSImportAfterTarget>
+ </PropertyGroup>
+
+ <!-- TargetFramework -->
+ <PropertyGroup Condition="'$(TargetFramework)' == ''">
+ <_ShortTargetFrameworkIdentifier Condition="'$(TargetFrameworkIdentifier)' == '.NETStandard'">netstandard</_ShortTargetFrameworkIdentifier>
+ <_ShortTargetFrameworkIdentifier Condition="'$(TargetFrameworkIdentifier)' == 'Tizen'">tizen</_ShortTargetFrameworkIdentifier>
+ <_TargetFrameworkVersionWithoutV Condition="$(TargetFrameworkVersion.StartsWith('v'))">$(TargetFrameworkVersion.Substring(1))</_TargetFrameworkVersionWithoutV>
+ <TargetFramework Condition="'$(_ShortTargetFrameworkIdentifier)' != ''">$(_ShortTargetFrameworkIdentifier)$(_TargetFrameworkVersionWithoutV)</TargetFramework>
+ </PropertyGroup>
<!-- Suppress missing XML comment warning -->
<PropertyGroup>
<NoWarn>$(NoWarn);1591</NoWarn>
</PropertyGroup>
+ <!-- Modify BuildDependsOn -->
+ <PropertyGroup Condition="'$(UseTizenGBSImportAfterTarget)' == 'true'">
+ <BuildDependsOn>
+ $(BuildDependsOn);
+ __AppendNuGetAssemblyFiles;
+ </BuildDependsOn>
+ </PropertyGroup>
+
<!-- DocumentationFile -->
- <PropertyGroup>
+ <PropertyGroup Condition="'$(UseTizenGBSImportAfterTarget)' == 'true'">
<DocumentationFile Condition="'$(DocumentationFile)' == ''">$(OutputPath)$(AssemblyName).xml</DocumentationFile>
</PropertyGroup>
+ <!-- NuSpec File -->
+ <PropertyGroup>
+ <__NuSpecFile>$(MSBuildProjectDirectory)/$(AssemblyName).nuspec</__NuSpecFile>
+ </PropertyGroup>
+
+ <!-- Additional files to append to .nuspec -->
+ <ItemGroup>
+ <NuGetAssemblyFile Include="$(DocumentationFile)">
+ <TargetPath>lib/$(TargetFramework)</TargetPath>
+ </NuGetAssemblyFile>
+ <NuGetAssemblyFile Include="$(OutputPath)$(TargetFileName)">
+ <TargetPath>lib/$(TargetFramework)</TargetPath>
+ </NuGetAssemblyFile>
+ </ItemGroup>
+
+ <!-- Append _NuGetFiles to .nuspec file -->
+ <Target Name="__AppendNuGetAssemblyFiles" Condition="Exists('$(__NuSpecFile)')">
+ <Exec Command="dotnet-build nuspec_addfile "$(__NuSpecFile)" "%(NuGetAssemblyFile.Identity)" "%(NuGetAssemblyFile.TargetPath)"" />
+ </Target>
+
</Project>