зеркало из https://github.com/dotnet/orleans.git
107 строки
4.8 KiB
XML
107 строки
4.8 KiB
XML
<Project>
|
|
<!-- Set the repository root into a variable -->
|
|
<PropertyGroup>
|
|
<SourceRoot>$(MSBuildThisFileDirectory)</SourceRoot>
|
|
</PropertyGroup>
|
|
|
|
<!-- Set common properties regarding assembly information and nuget packages -->
|
|
<PropertyGroup>
|
|
<Authors>Microsoft</Authors>
|
|
<Product>Microsoft Orleans</Product>
|
|
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
|
|
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
|
<PackageProjectUrl>https://github.com/dotnet/orleans</PackageProjectUrl>
|
|
<PackageIcon>logo_128.png</PackageIcon>
|
|
<PackageTags>Orleans Cloud-Computing Actor-Model Actors Distributed-Systems C# .NET</PackageTags>
|
|
<PackageReleaseNotes></PackageReleaseNotes>
|
|
<PublicRepositoryUrl>https://github.com/dotnet/orleans</PublicRepositoryUrl>
|
|
<PrivateRepositoryUrl>$(RepositoryUrl)</PrivateRepositoryUrl>
|
|
<RepositoryUrl>$(RepositoryUrl)</RepositoryUrl>
|
|
<RepositoryType>git</RepositoryType>
|
|
<LangVersion>12</LangVersion>
|
|
<Features>strict</Features>
|
|
<EmbedUntrackedSources>true</EmbedUntrackedSources>
|
|
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
|
|
<DebugType>embedded</DebugType>
|
|
<IncludePackageReferencesDuringMarkupCompilation>true</IncludePackageReferencesDuringMarkupCompilation>
|
|
<IncludeSymbols>false</IncludeSymbols>
|
|
<IncludeSource>false</IncludeSource>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Condition="'$(TF_BUILD)' == 'true' or '$(GITHUB_ACTIONS)' == 'true'">
|
|
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<None Include="$(SourceRoot)assets/logo_128.png" Pack="true" Visible="false" PackagePath="/" />
|
|
</ItemGroup>
|
|
|
|
<!-- Common compile parameters -->
|
|
<PropertyGroup>
|
|
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
|
<NoWarn>$(NoWarn);1591;2003</NoWarn>
|
|
</PropertyGroup>
|
|
|
|
<!-- FSharp SDK overrides -->
|
|
<PropertyGroup>
|
|
<DisableImplicitSystemValueTupleReference>true</DisableImplicitSystemValueTupleReference>
|
|
<DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference>
|
|
</PropertyGroup>
|
|
|
|
<!-- Versioning properties -->
|
|
<PropertyGroup>
|
|
<AssemblyVersion>8.0.0.0</AssemblyVersion>
|
|
<VersionPrefix Condition=" '$(VersionPrefix)'=='' ">8.0.0</VersionPrefix>
|
|
</PropertyGroup>
|
|
|
|
<!-- For Debug builds generated a date/time dependent version suffix -->
|
|
<PropertyGroup Condition=" '$(Configuration)'=='Debug' ">
|
|
<VersionSuffix Condition=" '$(VersionSuffix)'=='' ">dev</VersionSuffix>
|
|
<VersionSuffix Condition=" '$(VersionDateSuffix)'!='' ">$(VersionSuffix)-$(VersionDateSuffix)</VersionSuffix>
|
|
</PropertyGroup>
|
|
|
|
<Import Condition=" '$(OrleansBuildTimeCodeGen)' == 'true' " Project="$(MSBuildThisFileDirectory)src/Orleans.CodeGenerator/build/Microsoft.Orleans.CodeGenerator.props" />
|
|
|
|
<!-- Set output folder for created NuGet packages -->
|
|
<PropertyGroup>
|
|
<PackageOutputPath Condition=" '$(PackageOutputPath)'=='' ">$(SourceRoot)/Artifacts/$(Configuration)</PackageOutputPath>
|
|
</PropertyGroup>
|
|
|
|
<!-- Set output folder for distributed test apps -->
|
|
<PropertyGroup>
|
|
<DistributedTestsOutputPath Condition=" '$(DistributedODistributedTestsOutputPathutputPath)'=='' ">$(SourceRoot)/Artifacts/DistributedTests</DistributedTestsOutputPath>
|
|
</PropertyGroup>
|
|
|
|
<Choose>
|
|
<When Condition="'$(OfficialBuild)' != 'true'">
|
|
<!-- On non-official builds we don't burn in a git sha. In large part because it
|
|
hurts our determinism efforts as binaries which should be the same between
|
|
builds will not (due to developers building against different HEAD
|
|
values -->
|
|
<PropertyGroup>
|
|
<GitHeadSha><developer build></GitHeadSha>
|
|
</PropertyGroup>
|
|
</When>
|
|
<When Condition="'$(BUILD_SOURCEVERSION)' != ''">
|
|
<PropertyGroup>
|
|
<GitHeadSha>$(BUILD_SOURCEVERSION)</GitHeadSha>
|
|
</PropertyGroup>
|
|
</When>
|
|
<When Condition="'$(BUILD_SOURCEVERSION)' == '' AND '$(GIT_COMMIT)' != ''">
|
|
<PropertyGroup>
|
|
<GitHeadSha>$(GIT_COMMIT)</GitHeadSha>
|
|
</PropertyGroup>
|
|
</When>
|
|
<Otherwise>
|
|
<PropertyGroup>
|
|
<GitHeadSha>Not found</GitHeadSha>
|
|
<DotGitDir>$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory).git'))</DotGitDir>
|
|
<HeadFileContent Condition="Exists('$(DotGitDir)/HEAD')">$([System.IO.File]::ReadAllText('$(DotGitDir)/HEAD').Trim())</HeadFileContent>
|
|
<RefPath Condition="$(HeadFileContent.StartsWith('ref: '))">$(DotGitDir)/$(HeadFileContent.Substring(5))</RefPath>
|
|
<GitHeadSha Condition="'$(RefPath)' != '' AND Exists('$(RefPath)')">$([System.IO.File]::ReadAllText('$(RefPath)').Trim())</GitHeadSha>
|
|
<GitHeadSha Condition="'$(HeadFileContent)' != '' AND '$(RefPath)' == ''">$(HeadFileContent)</GitHeadSha>
|
|
</PropertyGroup>
|
|
</Otherwise>
|
|
</Choose>
|
|
</Project>
|