-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDotPilot.csproj
More file actions
115 lines (101 loc) · 5.96 KB
/
DotPilot.csproj
File metadata and controls
115 lines (101 loc) · 5.96 KB
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
106
107
108
109
110
111
112
113
114
115
<Project Sdk="Uno.Sdk">
<PropertyGroup>
<TargetFrameworks>net10.0-desktop;net10.0;net10.0-browserwasm</TargetFrameworks>
<OutputType>Exe</OutputType>
<UnoSingleProject>true</UnoSingleProject>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>$(NoWarn);CS1591</NoWarn>
<!-- Display name -->
<ApplicationTitle>DotPilot</ApplicationTitle>
<!-- App Identifier -->
<ApplicationId>com.managed-code.dotpilot</ApplicationId>
<!-- Versions -->
<ApplicationDisplayVersion>$(DotPilotReleaseVersion)</ApplicationDisplayVersion>
<ApplicationVersion>$(DotPilotBuildNumber)</ApplicationVersion>
<!-- Package Publisher -->
<ApplicationPublisher>O=DotPilot</ApplicationPublisher>
<!-- Package Description -->
<Description>DotPilot powered by Uno Platform.</Description>
<!--
UnoFeatures are used to quickly add and manage features enabled for your app.
https://aka.platform.uno/singleproject-features
-->
<UnoFeatures>
Material;
Hosting;
Toolkit;
Logging;
Mvvm;
MVUX;
Configuration;
Http;
Serialization;
Localization;
Navigation;
ThemeService;
</UnoFeatures>
</PropertyGroup>
<PropertyGroup Condition="'$(CI)' != 'true' and '$(TargetFramework)' == 'net10.0-desktop'">
<UnoFeatures>$(UnoFeatures);Dsp;</UnoFeatures>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)'=='net10.0-desktop'">
<UnoFeatures>$(UnoFeatures);SkiaRenderer;</UnoFeatures>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)'=='net10.0-desktop'">
<DotPilotSnapContactUrl>https://github.com/managedcode/dotPilot/issues</DotPilotSnapContactUrl>
<DotPilotSnapIssuesUrl>https://github.com/managedcode/dotPilot/issues</DotPilotSnapIssuesUrl>
<DotPilotSnapSourceCodeUrl>https://github.com/managedcode/dotPilot</DotPilotSnapSourceCodeUrl>
<DotPilotSnapWebsiteUrl>https://dotpilot.managed-code.com</DotPilotSnapWebsiteUrl>
<DotPilotSnapLicense>MIT</DotPilotSnapLicense>
<DotPilotSnapManifestTemplate>$(MSBuildProjectDirectory)/Platforms/Linux/snapcraft.template.yaml</DotPilotSnapManifestTemplate>
<DotPilotSnapDesktopFileTemplate>$(MSBuildProjectDirectory)/Platforms/Linux/dotpilot.desktop</DotPilotSnapDesktopFileTemplate>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)'=='net10.0-browserwasm'">
<UnoSkipWasmToolsWorkloadValidation>true</UnoSkipWasmToolsWorkloadValidation>
<UnoDisableHotDesign>true</UnoDisableHotDesign>
<UnoDisableMCPSupport>true</UnoDisableMCPSupport>
<MonoRuntimeDebuggerEnabled>false</MonoRuntimeDebuggerEnabled>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<Target Name="RemoveBrowserSqliteNativeReference"
Condition="'$(TargetFramework)'=='net10.0-browserwasm' and '$(RuntimeIdentifier)'=='browser-wasm'"
BeforeTargets="_CheckBrowserWorkloadNeededButNotAvailable">
<ItemGroup>
<NativeFileReference Remove="@(NativeFileReference)"
Condition="'%(NativeFileReference.Filename)%(NativeFileReference.Extension)'=='e_sqlite3.a'" />
</ItemGroup>
</Target>
<PropertyGroup Condition="'$(Configuration)'=='Debug' or '$(IsUiAutomationMappingEnabled)'=='True'">
<IsUiAutomationMappingEnabled>True</IsUiAutomationMappingEnabled>
<DefineConstants>$(DefineConstants);USE_UITESTS</DefineConstants>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\DotPilot.Core\DotPilot.Core.csproj" />
</ItemGroup>
<ItemGroup>
<Compile Remove="Models\Entity.cs" />
<Compile Remove="Services\Endpoints\DebugHandler.cs" />
</ItemGroup>
<Target Name="PrepareCustomLinuxSnapLayout"
Condition="'$(SelfContained)'=='true' and $(RuntimeIdentifier.StartsWith('linux')) and '$(PackageFormat)'=='snap'"
BeforeTargets="_UnoPublishSnap">
<PropertyGroup>
<_DotPilotSnapAppName>$([System.String]::Copy('$(AssemblyName)').ToLowerInvariant().Replace('.', '-'))</_DotPilotSnapAppName>
<_DotPilotSnapManifestPath>$(IntermediateOutputPath)dotpilot.snapcraft.yaml</_DotPilotSnapManifestPath>
<_DotPilotSnapDesktopFilePath>$(IntermediateOutputPath)dotpilot.desktop</_DotPilotSnapDesktopFilePath>
<SnapManifest>$(_DotPilotSnapManifestPath)</SnapManifest>
<DesktopFile>$(_DotPilotSnapDesktopFilePath)</DesktopFile>
</PropertyGroup>
<MakeDir Directories="$(IntermediateOutputPath)" />
<!--
Uno's generated core24 snap manifest currently fails the release job because
snapcraft promotes classic/library lint findings to a non-zero exit code. The
release pipeline needs a deterministic installable asset, so we generate a
manifest template with explicit metadata and targeted lint suppression here.
-->
<Exec Command="sed -e "s|__APP_NAME__|$(_DotPilotSnapAppName)|g" -e "s|__ASSEMBLY_NAME__|$(AssemblyName)|g" -e "s|__VERSION__|$(ApplicationDisplayVersion)|g" -e "s|__TITLE__|$(ApplicationTitle)|g" -e "s|__DESCRIPTION__|$(Description)|g" -e "s|__CONTACT_URL__|$(DotPilotSnapContactUrl)|g" -e "s|__ISSUES_URL__|$(DotPilotSnapIssuesUrl)|g" -e "s|__SOURCE_CODE_URL__|$(DotPilotSnapSourceCodeUrl)|g" -e "s|__WEBSITE_URL__|$(DotPilotSnapWebsiteUrl)|g" -e "s|__LICENSE__|$(DotPilotSnapLicense)|g" "$(DotPilotSnapManifestTemplate)" > "$(_DotPilotSnapManifestPath)"" />
<Copy SourceFiles="$(DotPilotSnapDesktopFileTemplate)"
DestinationFiles="$(_DotPilotSnapDesktopFilePath)"
SkipUnchangedFiles="true" />
</Target>
</Project>