GtkSharp/Source/Workload/GtkSharp.Sdk/GtkSharp.Sdk.csproj
Trung Nguyen 60376ae510
feat: GtkSharp net6 workload (#351)
* feat: GtkSharp net6 workload

* feat(Workload): GtkSharp template packs

* chore: Support .NET SDK 6.0.300

And also changed the build script to target SDK bands.

* build: Workload install and uninstall targets
2022-05-29 10:55:50 +02:00

58 lines
1.6 KiB
XML

<Project Sdk="Microsoft.Build.NoTargets">
<Import Project="..\Shared\Common.targets" />
<PropertyGroup>
<Description>GtkSharp SDK. Enabled via the net6.0-gtk TFM.</Description>
</PropertyGroup>
<ItemGroup>
<None Remove="**\*.in.*" />
<None Update="@(None)" PackagePath="" CopyToOutputDirectory="PreserveNewest" Pack="true" />
<None
Include="$(_GtkSharpSourceDirectory)Libs\GtkSharp\GtkSharp.targets"
Link="targets\GtkSharp.targets"
CopyToOutputDirectory="PreserveNewest"
Pack="true"
PackagePath="targets"
Visible="false"
/>
</ItemGroup>
<Import Project="..\Shared\ReplaceText.targets" />
<Target Name="_ReplaceSdkText"
BeforeTargets="Build;AssignTargetPaths"
Inputs="$(MSBuildProjectFile);Sdk\Sdk.in.targets"
Outputs="$(IntermediateOutputPath)Sdk.targets">
<ReplaceText
Input="Sdk\Sdk.in.targets"
Output="$(IntermediateOutputPath)Sdk.targets"
OldValue="@GTKSHARPVERSION@"
NewValue="$(_GtkSharpVersion)"
/>
<ReplaceText
Input="$(IntermediateOutputPath)Sdk.targets"
Output="$(IntermediateOutputPath)Sdk.targets"
OldValue="@GTKSHARPNETVERSION@"
NewValue="$(_GtkSharpNetVersion)"
/>
<ItemGroup>
<None
Include="$(IntermediateOutputPath)Sdk.targets"
Link="Sdk\Sdk.targets"
CopyToOutputDirectory="PreserveNewest"
Pack="true"
PackagePath="Sdk"
Visible="false"
/>
<FileWrites Include="$(IntermediateOutputPath)Sdk.targets" />
</ItemGroup>
</Target>
</Project>