1 <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
4 <UseTizenGBSImportAfterTarget>false</UseTizenGBSImportAfterTarget>
5 <UseTizenGBSImportAfterTarget Condition="'$(TargetFrameworkIdentifier)' == '.NETStandard' or '$(TargetFrameworkIdentifier)' == 'Tizen'">true</UseTizenGBSImportAfterTarget>
8 <!-- Set DocumentationFile -->
9 <PropertyGroup Condition="'$(UseTizenGBSImportAfterTarget)' == 'true'">
10 <DocumentationFile Condition="'$(DocumentationFile)' == ''">$(OutputPath)$(AssemblyName).xml</DocumentationFile>
13 <!-- Set TargetFramework -->
14 <PropertyGroup Condition="'$(TargetFramework)' == ''">
15 <_ShortTargetFrameworkIdentifier Condition="'$(TargetFrameworkIdentifier)' == '.NETStandard'">netstandard</_ShortTargetFrameworkIdentifier>
16 <_ShortTargetFrameworkIdentifier Condition="'$(TargetFrameworkIdentifier)' == 'Tizen'">tizen</_ShortTargetFrameworkIdentifier>
17 <_TargetFrameworkVersionWithoutV Condition="$(TargetFrameworkVersion.StartsWith('v'))">$(TargetFrameworkVersion.Substring(1))</_TargetFrameworkVersionWithoutV>
18 <TargetFramework Condition="'$(_ShortTargetFrameworkIdentifier)' != ''">$(_ShortTargetFrameworkIdentifier)$(_TargetFrameworkVersionWithoutV)</TargetFramework>
23 <NuSpecFile>$(MSBuildProjectDirectory)/$(AssemblyName).nuspec</NuSpecFile>
26 <!-- Additional files to append to .nuspec -->
28 <NuGetAssemblyFile Include="$(OutputPath)$(TargetFileName)" />
29 <NuGetAssemblyFile Include="$(DocumentationFile)" />
32 <PropertyGroup Condition="'$(UseTizenGBSImportAfterTarget)' == 'true'">
40 <!-- Cleanup Intermediate files after build -->
41 <Target Name="__CleanUpIntemediate">
42 <RemoveDir Directories="$(BaseIntermediateOutputPath)" />
45 <!-- Append _NuGetFiles to .nuspec file -->
46 <Target Name="__AppendNuGetFiles" Condition="Exists('$(NuSpecFile)')">
47 <Exec Command="dotnet-build nuspec_addfile "$(NuSpecFile)" "%(NuGetAssemblyFile.Identity)" "lib/$(TargetFramework)"" />