forked from dotnet/maui
/
Core.csproj
105 lines (94 loc) · 5.18 KB
/
Core.csproj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>netstandard2.1;netstandard2.0;$(_MauiDotNetTfm);$(MauiPlatforms)</TargetFrameworks>
<RootNamespace>Microsoft.Maui</RootNamespace>
<AssemblyName>Microsoft.Maui</AssemblyName>
<Nullable>enable</Nullable>
<IsTrimmable>false</IsTrimmable>
<MauiGenerateResourceDesigner>true</MauiGenerateResourceDesigner>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>$(NoWarn);CS1591;RS0041;RS0026;RS0027</NoWarn>
</PropertyGroup>
<PropertyGroup>
<!-- NuGet package information -->
<IsPackable>true</IsPackable>
<PackageId>Microsoft.Maui.Core</PackageId>
<Description>.NET Multi-platform App UI (.NET MAUI) is a cross-platform framework for creating native mobile and desktop apps with C# and XAML. This package only contains the core objects used by .NET MAUI. Please install the Microsoft.Maui.Controls package to start using .NET MAUI.</Description>
</PropertyGroup>
<Import Project="$(MauiSrcDirectory)MultiTargeting.targets" />
<ItemGroup>
<PackageReference Include="MemoryAnalyzers" />
<PackageReference Include="Microsoft.Extensions.Configuration" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" />
<PackageReference Include="Microsoft.Extensions.Logging" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" />
<ProjectReference Include="..\..\Graphics\src\Graphics\Graphics.csproj" />
<PackageReference Include="System.Numerics.Vectors" Condition="$(TargetFramework.StartsWith('netstandard'))" />
</ItemGroup>
<ItemGroup Condition="$(TargetFramework.Contains('-windows'))">
<PackageReference Include="Microsoft.WindowsAppSDK" />
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" />
<PackageReference Include="Microsoft.Graphics.Win2D" />
<ProjectReference Include="..\..\Graphics\src\Graphics.Win2D\Graphics.Win2D.csproj" />
</ItemGroup>
<ItemGroup Condition="$(TargetFramework.Contains('-android'))">
<PackageReference Include="Xamarin.Android.Glide" Version="4.15.1.2" />
<PackageReference Include="Xamarin.AndroidX.Lifecycle.LiveData" Version="2.6.1.3" />
<PackageReference Include="Xamarin.Google.Android.Material" Version="1.9.0.2" />
<PackageReference Include="Xamarin.AndroidX.SwipeRefreshLayout" Version="1.1.0.14" />
<PackageReference Include="Xamarin.AndroidX.Navigation.UI" Version="2.6.0.1" />
<PackageReference Include="Xamarin.AndroidX.Navigation.Fragment" Version="2.6.0.1" />
<PackageReference Include="Xamarin.AndroidX.Navigation.Runtime" Version="2.6.0.1" />
<PackageReference Include="Xamarin.AndroidX.Navigation.Common" Version="2.6.0.1" />
</ItemGroup>
<ItemGroup Condition="$(TargetFramework.Contains('-tizen'))">
<PackageReference Include="Tizen.UIExtensions.NUI" />
<ProjectReference Include="..\..\Graphics\src\Graphics.Skia\Graphics.Skia.csproj" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\Essentials\src\Essentials.csproj" />
<ProjectReference Include="..\..\Graphics\src\Graphics\Graphics.csproj" />
</ItemGroup>
<ItemGroup>
<None Include="nuget\**" Exclude="nuget\**\*.in.*" PackagePath="" Pack="true" />
</ItemGroup>
<Target Name="_CopyToBuildTasksDir" AfterTargets="Build">
<ItemGroup>
<_CopyItems Include="nuget\buildTransitive\**" Exclude="nuget\**\*.in.*" />
<_CopyItems Include="$(IntermediateOutputPath)Microsoft.Maui.Core.BundledVersions.targets" />
</ItemGroup>
<Copy SourceFiles="@(_CopyItems)" DestinationFolder="$(_MauiBuildTasksLocation)%(RecursiveDir)" ContinueOnError="true" Retries="0" />
</Target>
<Import Project="$(MauiSrcDirectory)Workload\Shared\LibraryPacks.targets" />
<Import Project="$(MauiSrcDirectory)PublicAPI.targets" />
<Import Project="$(MauiRootDirectory)eng/ReplaceText.targets" />
<Target Name="_GenerateBundledVersions"
BeforeTargets="Build;AssignTargetPaths"
DependsOnTargets="SetVersions"
Inputs="$(MSBuildProjectFile);$(MauiRootDirectory)eng\Versions.props;nuget\buildTransitive\Microsoft.Maui.Core.BundledVersions.in.targets"
Outputs="$(IntermediateOutputPath)Microsoft.Maui.Core.BundledVersions.targets">
<ItemGroup>
<_ValuesToReplace Include="VERSION" PropertyName="PackageReferenceVersion" />
</ItemGroup>
<Copy
SourceFiles="nuget\buildTransitive\Microsoft.Maui.Core.BundledVersions.in.targets"
DestinationFiles="$(IntermediateOutputPath)Microsoft.Maui.Core.BundledVersions.targets"
/>
<ReplaceText
Input="$(IntermediateOutputPath)Microsoft.Maui.Core.BundledVersions.targets"
Output="$(IntermediateOutputPath)Microsoft.Maui.Core.BundledVersions.targets"
OldValue="@%(_ValuesToReplace.Identity)@"
NewValue="$(%(_ValuesToReplace.PropertyName))"
/>
<ItemGroup>
<None
Include="$(IntermediateOutputPath)Microsoft.Maui.Core.BundledVersions.targets"
Link="nuget\buildTransitive\Microsoft.Maui.Core.BundledVersions.targets"
Pack="true"
PackagePath="buildTransitive"
Visible="false"
/>
<FileWrites Include="$(IntermediateOutputPath)Microsoft.Maui.Core.BundledVersions.targets" />
</ItemGroup>
</Target>
</Project>