2026-03-09 12:27:33 +08:00
|
|
|
|
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
|
|
|
|
|
|
|
|
<PropertyGroup>
|
|
|
|
|
|
<TargetFramework>net10.0</TargetFramework>
|
|
|
|
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
|
|
|
|
<Nullable>enable</Nullable>
|
|
|
|
|
|
<Version>1.0.0</Version>
|
|
|
|
|
|
<EnableDynamicLoading>true</EnableDynamicLoading>
|
|
|
|
|
|
<OutputPath>bin\$(Configuration)\$(TargetFramework)\content\</OutputPath>
|
|
|
|
|
|
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
|
|
|
|
|
|
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
|
2026-03-12 21:01:23 +08:00
|
|
|
|
<PluginPackageOutputDirectory>$(MSBuildThisFileDirectory)artifacts\Packages\</PluginPackageOutputDirectory>
|
|
|
|
|
|
<PluginPackagePath>$(PluginPackageOutputDirectory)$(AssemblyName).$(Version).laapp</PluginPackagePath>
|
|
|
|
|
|
<LegacyLoosePluginOutputDirectory>$(MSBuildThisFileDirectory)artifacts\Loose\</LegacyLoosePluginOutputDirectory>
|
2026-03-09 12:27:33 +08:00
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
|
|
|
|
<ItemGroup>
|
2026-03-10 00:04:33 +08:00
|
|
|
|
<ProjectReference Include="..\..\..\LanMountainDesktop.PluginSdk\LanMountainDesktop.PluginSdk.csproj" Private="false" />
|
2026-03-09 12:27:33 +08:00
|
|
|
|
<None Include="plugin.json" CopyToOutputDirectory="PreserveNewest" />
|
2026-03-10 00:40:26 +08:00
|
|
|
|
<None Include="Localization\*.json" CopyToOutputDirectory="PreserveNewest" />
|
2026-03-09 12:27:33 +08:00
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
|
|
|
|
<Target Name="CreateLaappPackage" AfterTargets="Build">
|
|
|
|
|
|
<MakeDir Directories="$(PluginPackageOutputDirectory)" />
|
|
|
|
|
|
<RemoveDir Directories="$(LegacyLoosePluginOutputDirectory)" />
|
|
|
|
|
|
<Delete Files="$(PluginPackagePath)" TreatErrorsAsWarnings="true" />
|
|
|
|
|
|
<ZipDirectory SourceDirectory="$(OutputPath)" DestinationFile="$(PluginPackagePath)" />
|
|
|
|
|
|
</Target>
|
|
|
|
|
|
|
|
|
|
|
|
</Project>
|