GtkSharp/Source/Workload/GtkSharp.Workload.Template.VBNet/GtkSharp.Workload.Template.VBNet.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

47 lines
No EOL
1.6 KiB
XML

<Project Sdk="Microsoft.Build.NoTargets">
<Import Project="..\Shared\Templates.targets" />
<PropertyGroup>
<Title>GTK templates for Visual Basic</Title>
<Description>A set of Visual Basic templates for your .NET GTK Application. Installed with the GtkSharp .NET workload.</Description>
</PropertyGroup>
<ItemGroup>
<_GtkSharpTemplateContent Include="content\**" />
<_GtkSharpTemplateContent Remove="**\*.in.*" />
<None Include="@(_GtkSharpTemplateContent)"
CopyToOutputDirectory="PreserveNewest"
Pack="true"
PackagePath="content"
/>
</ItemGroup>
<Import Project="..\Shared\ReplaceText.targets" />
<Target Name="_ReplaceJsonText"
BeforeTargets="Build;AssignTargetPaths"
Inputs="$(MSBuildProjectFile);content\GtkSharp.Application.VBNet\.template.config\template.in.json"
Outputs="$(IntermediateOutputPath)template.json">
<ReplaceText
Input="content\GtkSharp.Application.VBNet\.template.config\template.in.json"
Output="$(IntermediateOutputPath)template.json"
OldValue="@GTKSHARPNETVERSION@"
NewValue="$(_GtkSharpNetVersion)"
/>
<ItemGroup>
<None
Include="$(IntermediateOutputPath)template.json"
Link="content\GtkSharp.Application.VBNet\.template.config\template.json"
CopyToOutputDirectory="PreserveNewest"
Pack="true"
PackagePath="content\GtkSharp.Application.VBNet\.template.config\template.json"
/>
<FileWrites Include="$(IntermediateOutputPath)template.json" />
</ItemGroup>
</Target>
</Project>