csharpc-sharpdotnetxamlavaloniauicross-platformcross-platform-xamlavaloniaguimulti-platformuser-interfacedotnetcore
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
92 lines
4.2 KiB
92 lines
4.2 KiB
<Project Sdk="Microsoft.NET.Sdk">
|
|
<PropertyGroup>
|
|
<TargetFrameworks>$(AvsCurrentTargetFramework);$(AvsLegacyTargetFrameworks)</TargetFrameworks>
|
|
<PackageId>Avalonia</PackageId>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="Avalonia.BuildServices" />
|
|
<ProjectReference Include="../../src/Avalonia.Remote.Protocol/Avalonia.Remote.Protocol.csproj" />
|
|
<ProjectReference Include="../../src/Avalonia.Build.Tasks/Avalonia.Build.Tasks.csproj"
|
|
PrivateAssets="all" />
|
|
<ProjectReference Include="../../src/tools/Avalonia.Generators/Avalonia.Generators.csproj"
|
|
ReferenceOutputAssembly="false"
|
|
PrivateAssets="all"
|
|
OutputItemType="Analyzer" />
|
|
<ProjectReference Include="../../src/tools/Avalonia.Analyzers.CSharp/Avalonia.Analyzers.CSharp.csproj"
|
|
ReferenceOutputAssembly="false"
|
|
PrivateAssets="all"
|
|
OutputItemType="Analyzer" />
|
|
<ProjectReference Include="../../src/tools/Avalonia.Analyzers.CodeFixes.CSharp/Avalonia.Analyzers.CodeFixes.CSharp.csproj"
|
|
ReferenceOutputAssembly="false"
|
|
PrivateAssets="all"
|
|
OutputItemType="Analyzer" />
|
|
<ProjectReference Include="../../src/tools/Avalonia.Analyzers.VisualBasic/Avalonia.Analyzers.VisualBasic.csproj"
|
|
ReferenceOutputAssembly="false"
|
|
PrivateAssets="all"
|
|
OutputItemType="Analyzer" />
|
|
</ItemGroup>
|
|
|
|
<PropertyGroup>
|
|
<DesignerHostAppPath>../../src/tools</DesignerHostAppPath>
|
|
</PropertyGroup>
|
|
|
|
<Target Name="AddDesignerHostAppsToPackage" BeforeTargets="GenerateNuspec">
|
|
<MSBuild Projects="$(DesignerHostAppPath)/Avalonia.Designer.HostApp/Avalonia.Designer.HostApp.csproj" Properties="Configuration=$(Configuration);
Platform=$(Platform)" />
|
|
|
|
<ItemGroup>
|
|
<_PackageFiles Include="$(DesignerHostAppPath)/Avalonia.Designer.HostApp/bin/$(Configuration)/$(AvsCurrentTargetFramework)/Avalonia.Designer.HostApp.dll">
|
|
<PackagePath>tools/$(AvsCurrentTargetFramework)/designer</PackagePath>
|
|
<Visible>false</Visible>
|
|
<BuildAction>None</BuildAction>
|
|
</_PackageFiles>
|
|
<_PackageFiles Include="$(DesignerHostAppPath)/Avalonia.Designer.HostApp/bin/$(Configuration)/$(AvsLegacyTargetFrameworks)/Avalonia.Designer.HostApp.dll">
|
|
<PackagePath>tools/$(AvsLegacyTargetFrameworks)/designer</PackagePath>
|
|
<Visible>false</Visible>
|
|
<BuildAction>None</BuildAction>
|
|
</_PackageFiles>
|
|
</ItemGroup>
|
|
</Target>
|
|
|
|
<ItemGroup>
|
|
<Content Include="*.props">
|
|
<Pack>true</Pack>
|
|
<PackagePath>build\;buildTransitive\</PackagePath>
|
|
</Content>
|
|
<Content Include="..\..\src\tools\Avalonia.Generators\Avalonia.Generators.props">
|
|
<Pack>true</Pack>
|
|
<PackagePath>build\;buildTransitive\</PackagePath>
|
|
</Content>
|
|
<Content Include="*.targets">
|
|
<Pack>true</Pack>
|
|
<PackagePath>build\;buildTransitive\</PackagePath>
|
|
</Content>
|
|
<Content Include="AvaloniaItemSchema.xaml">
|
|
<Pack>true</Pack>
|
|
<PackagePath>build\;buildTransitive\</PackagePath>
|
|
</Content>
|
|
<Content Include="AvaloniaRules.Project.xml">
|
|
<Pack>true</Pack>
|
|
<PackagePath>build\;buildTransitive\</PackagePath>
|
|
</Content>
|
|
</ItemGroup>
|
|
<Import Project="..\..\build\SharedVersion.props" />
|
|
<Import Project="..\..\build\CoreLibraries.props" />
|
|
<Import Project="..\..\build\SourceLink.props" Condition="'$(DisableSourceLink)' == ''" />
|
|
|
|
<Target Name="WriteCurrentPackageVersionProps" BeforeTargets="_GetPackageFiles">
|
|
<PropertyGroup>
|
|
<PackageVersionPropsPath>$(IntermediateOutputPath)/AvaloniaVersion.props</PackageVersionPropsPath>
|
|
</PropertyGroup>
|
|
<WriteLinesToFile
|
|
File="$(PackageVersionPropsPath)"
|
|
Overwrite="true"
|
|
Lines="<Project><PropertyGroup><AvaloniaMainPackageVersion>$(PackageVersion)</AvaloniaMainPackageVersion></PropertyGroup></Project>" />
|
|
<ItemGroup>
|
|
<Content Include="$(PackageVersionPropsPath)">
|
|
<Pack>true</Pack>
|
|
<PackagePath>build</PackagePath>
|
|
</Content>
|
|
</ItemGroup>
|
|
</Target>
|
|
</Project>
|
|
|