mirror of
https://github.com/BepInEx/dotnet-runtime.git
synced 2026-11-23 03:39:35 -10:00
Add two build tasks: 1. DownloadTimeZoneData 2. CreateWasmBundle (given directory bundle files into a data archive)
117 lines
7.1 KiB
XML
117 lines
7.1 KiB
XML
<Project TreatAsLocalProperty="RepoRoot">
|
|
|
|
<PropertyGroup>
|
|
<!--
|
|
For non-SDK projects that import this file and then import Microsoft.Common.props,
|
|
tell Microsoft.Common.props not to import Directory.Build.props again
|
|
-->
|
|
<ImportDirectoryBuildProps>false</ImportDirectoryBuildProps>
|
|
</PropertyGroup>
|
|
|
|
<!--
|
|
Import the arcade sdk with these requirements.
|
|
After:
|
|
Configuration setup
|
|
Before:
|
|
DebugType needs to be not be set to embedded at least for facades
|
|
OutputPath setup
|
|
-->
|
|
<Import Project="Sdk.props" Sdk="Microsoft.DotNet.Arcade.Sdk" Condition="'$(SkipImportArcadeSdkFromRoot)' != 'true'" />
|
|
|
|
<!-- Set these properties early enough for libraries as they import the Arcade SDK not early enough. -->
|
|
<PropertyGroup Condition="'$(SkipImportArcadeSdkFromRoot)' == 'true'">
|
|
<RepoRoot>$([MSBuild]::EnsureTrailingSlash('$(MSBuildThisFileDirectory)'))</RepoRoot>
|
|
<RepositoryEngineeringDir>$([MSBuild]::NormalizeDirectory('$(RepoRoot)', 'eng'))</RepositoryEngineeringDir>
|
|
<ArtifactsDir>$([MSBuild]::NormalizeDirectory('$(RepoRoot)', 'artifacts'))</ArtifactsDir>
|
|
<ArtifactsBinDir>$([MSBuild]::NormalizeDirectory('$(ArtifactsDir)', 'bin'))</ArtifactsBinDir>
|
|
<ArtifactsObjDir>$([MSBuild]::NormalizeDirectory('$(ArtifactsDir)', 'obj'))</ArtifactsObjDir>
|
|
</PropertyGroup>
|
|
|
|
<!-- Configuration properties which are needed in both the (isolated) restore and build phases. -->
|
|
<Import Project="$(RepositoryEngineeringDir)Configurations.props" />
|
|
|
|
<!--
|
|
Get '<subset>Project' items. Using the items lets projects handle
|
|
$(Subset) automatically when creating project-to-project dependencies.
|
|
-->
|
|
<Import Project="$(RepositoryEngineeringDir)Subsets.props" />
|
|
|
|
<PropertyGroup>
|
|
<!-- Installer specific, required during restore. -->
|
|
<InstallerTasksOutputPath>$([MSBuild]::NormalizeDirectory('$(ArtifactsBinDir)', 'installer.tasks'))</InstallerTasksOutputPath>
|
|
<InstallerTasksAssemblyPath Condition="'$(MSBuildRuntimeType)' == 'Core'">$([MSBuild]::NormalizePath('$(InstallerTasksOutputPath)', 'Debug', 'netstandard2.0', 'installer.tasks.dll'))</InstallerTasksAssemblyPath>
|
|
<InstallerTasksAssemblyPath Condition="'$(MSBuildRuntimeType)' != 'Core'">$([MSBuild]::NormalizePath('$(InstallerTasksOutputPath)', 'Debug', 'net461', 'installer.tasks.dll'))</InstallerTasksAssemblyPath>
|
|
|
|
<DocsDir>$([MSBuild]::NormalizeDirectory('$(RepoRoot)', 'docs'))</DocsDir>
|
|
<ManPagesDir>$([MSBuild]::NormalizeDirectory('$(DocsDir)', 'manpages'))</ManPagesDir>
|
|
<CoreLibSharedDir>$([MSBuild]::NormalizeDirectory('$(LibrariesProjectRoot)', 'System.Private.CoreLib', 'src'))</CoreLibSharedDir>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Condition="'$(TargetsMobile)' == 'true'">
|
|
<AppleAppBuilderDir>$([MSBuild]::NormalizeDirectory('$(ArtifactsBinDir)', 'AppleAppBuilder', 'Debug', '$(NetCoreAppCurrent)'))</AppleAppBuilderDir>
|
|
<AndroidAppBuilderDir>$([MSBuild]::NormalizeDirectory('$(ArtifactsBinDir)', 'AndroidAppBuilder', 'Debug', '$(NetCoreAppCurrent)'))</AndroidAppBuilderDir>
|
|
<WasmAppBuilderDir>$([MSBuild]::NormalizeDirectory('$(ArtifactsBinDir)', 'WasmAppBuilder', 'Debug', '$(NetCoreAppCurrent)', 'publish'))</WasmAppBuilderDir>
|
|
<CreateWasmBundleDir>$([MSBuild]::NormalizeDirectory('$(ArtifactsBinDir)', 'CreateWasmBundle', 'Debug', '$(NetCoreAppCurrent)', 'publish'))</CreateWasmBundleDir>
|
|
<MonoAOTCompilerDir>$([MSBuild]::NormalizeDirectory('$(ArtifactsBinDir)', 'MonoAOTCompiler', 'Debug', '$(NetCoreAppCurrent)'))</MonoAOTCompilerDir>
|
|
|
|
<AppleAppBuilderTasksAssemblyPath>$([MSBuild]::NormalizePath('$(AppleAppBuilderDir)', 'AppleAppBuilder.dll'))</AppleAppBuilderTasksAssemblyPath>
|
|
<AndroidAppBuilderTasksAssemblyPath>$([MSBuild]::NormalizePath('$(AndroidAppBuilderDir)', 'AndroidAppBuilder.dll'))</AndroidAppBuilderTasksAssemblyPath>
|
|
<WasmAppBuilderTasksAssemblyPath>$([MSBuild]::NormalizePath('$(WasmAppBuilderDir)', 'WasmAppBuilder.dll'))</WasmAppBuilderTasksAssemblyPath>
|
|
<CreateCreateWasmBundlesAssemblyPath>$([MSBuild]::NormalizePath('$(CreateWasmBundleDir)', 'CreateWasmBundle.dll'))</CreateCreateWasmBundlesAssemblyPath>
|
|
<MonoAOTCompilerTasksAssemblyPath>$([MSBuild]::NormalizePath('$(MonoAOTCompilerDir)', 'MonoAOTCompiler.dll'))</MonoAOTCompilerTasksAssemblyPath>
|
|
</PropertyGroup>
|
|
|
|
<!-- Packaging properties -->
|
|
<PropertyGroup>
|
|
<!--
|
|
This name is used to create a GIT repository URL https://github.com/dotnet/$(GitHubRepositoryName) used
|
|
to find source code for debugging. It is also used to name the build output manifest for orchestrated builds.
|
|
-->
|
|
<GitHubRepositoryName>runtime</GitHubRepositoryName>
|
|
<RepositoryUrl>git://github.com/dotnet/runtime</RepositoryUrl>
|
|
<ProjectUrl>https://github.com/dotnet/runtime</ProjectUrl>
|
|
<LicenseUrl>https://github.com/dotnet/runtime/blob/master/LICENSE.TXT</LicenseUrl>
|
|
<RuntimeIdGraphDefinitionFile>$([MSBuild]::NormalizePath('$(LibrariesProjectRoot)', 'pkg', 'Microsoft.NETCore.Platforms', 'runtime.json'))</RuntimeIdGraphDefinitionFile>
|
|
<LicenseFile>$(RepoRoot)LICENSE.TXT</LicenseFile>
|
|
|
|
<!-- Indicates this is not an officially supported release. Release branches should set this to false. -->
|
|
<!-- Keep it in sync with PRERELEASE in eng/native/configureplatform.cmake -->
|
|
<IsPrerelease>true</IsPrerelease>
|
|
|
|
<IsExperimentalAssembly>$(MSBuildProjectName.Contains('Experimental'))</IsExperimentalAssembly>
|
|
|
|
<!-- Experimental packages should not be stable -->
|
|
<SuppressFinalPackageVersion Condition="'$(SuppressFinalPackageVersion)' == '' and $(IsExperimentalAssembly)">true</SuppressFinalPackageVersion>
|
|
<IsShippingAssembly Condition="$(IsExperimentalAssembly)">false</IsShippingAssembly>
|
|
|
|
<!-- We don't want Private packages to be shipped to NuGet.org -->
|
|
<IsShippingPackage Condition="($(MSBuildProjectName.Contains('Private')) or $(IsExperimentalAssembly)) and '$(MSBuildProjectExtension)' == '.pkgproj'">false</IsShippingPackage>
|
|
|
|
<!-- By default the SDK produces ref assembly for 5.0 or later -->
|
|
<ProduceReferenceAssembly>false</ProduceReferenceAssembly>
|
|
</PropertyGroup>
|
|
|
|
<!-- Language configuration -->
|
|
<PropertyGroup>
|
|
<!-- default to allowing all language features -->
|
|
<LangVersion>preview</LangVersion>
|
|
<LangVersion Condition="'$(MSBuildProjectExtension)' == '.vbproj'">latest</LangVersion>
|
|
<Deterministic>true</Deterministic>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup>
|
|
<!-- Default to portable build if not explicitly set -->
|
|
<PortableBuild Condition="'$(PortableBuild)' == ''">true</PortableBuild>
|
|
<!-- Used for launchSettings.json and runtime config files. -->
|
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
|
<!-- Determine what architecture we are building on. -->
|
|
<BuildArchitecture>$([System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture.ToString().ToLowerInvariant())</BuildArchitecture>
|
|
|
|
<!-- Turn off end of life target framework check as we still build for nca2.0 and nca3.0 some OOB libraries -->
|
|
<CheckEolTargetFramework>false</CheckEolTargetFramework>
|
|
</PropertyGroup>
|
|
|
|
<Import Project="$(RepositoryEngineeringDir)Analyzers.props" />
|
|
|
|
</Project>
|