60 строки
3.2 KiB
XML
60 строки
3.2 KiB
XML
<Project>
|
|
<PropertyGroup>
|
|
<!-- Packages can have independent versions and only increment when released -->
|
|
<Version>3.0.41$(VersionSuffix)</Version>
|
|
<HostStorageVersion>5.0.1$(VersionSuffix)</HostStorageVersion>
|
|
<LoggingVersion>4.0.3$(VersionSuffix)</LoggingVersion>
|
|
|
|
<TargetFramework>netstandard2.0</TargetFramework>
|
|
<DebugType>embedded</DebugType>
|
|
<LatestCommit Condition="$(LatestCommit) == ''">$(CommitHash)</LatestCommit>
|
|
<CommitHash Condition="$(CommitHash) == ''">N/A</CommitHash>
|
|
<InformationalVersion>$(Version) Commit hash: $(CommitHash)</InformationalVersion>
|
|
<Authors>Microsoft</Authors>
|
|
<Company>Microsoft</Company>
|
|
<PackageProjectUrl>http://go.microsoft.com/fwlink/?LinkID=320972</PackageProjectUrl>
|
|
<RepositoryUrl>https://github.com/Azure/azure-webjobs-sdk</RepositoryUrl>
|
|
<RepositoryType>git</RepositoryType>
|
|
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
|
|
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
|
|
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
|
<PackageIcon>webjobs.png</PackageIcon>
|
|
<PackageTags>Microsoft Azure WebJobs AzureFunctions</PackageTags>
|
|
<PackageReadmeFile>README.md</PackageReadmeFile>
|
|
<CodeAnalysisRuleSet>..\..\src.ruleset</CodeAnalysisRuleSet>
|
|
<UseSourceLink Condition="$(UseSourceLink) == '' And $(CI) != ''">true</UseSourceLink>
|
|
<SignAssembly>true</SignAssembly>
|
|
<DelaySign>true</DelaySign>
|
|
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)PublicKey.snk</AssemblyOriginatorKeyFile>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(UseSourceLink)' == 'true'">
|
|
<SourceLink>$(BaseIntermediateOutputPath)source_link.json</SourceLink>
|
|
</PropertyGroup>
|
|
<Target Name="WebJobsCleanup" AfterTargets="Clean">
|
|
<RemoveDir Directories="$(TargetDir)" />
|
|
<RemoveDir Directories="$(ProjectDir)$(BaseIntermediateOutputPath)" />
|
|
</Target>
|
|
<Target Name="GenerateSourceLink" BeforeTargets="CoreCompile" Condition="'$(UseSourceLink)' == 'true'">
|
|
<PropertyGroup>
|
|
<SrcRootDirectory>$([System.IO.Directory]::GetParent($(MSBuildThisFileDirectory.TrimEnd("\"))))</SrcRootDirectory>
|
|
<SourceLinkRoot>$(SrcRootDirectory.Replace("\", "\\"))</SourceLinkRoot>
|
|
</PropertyGroup>
|
|
<Message Importance="high" Text="Generating SourceLink..."></Message>
|
|
<Exec Command="git config --get remote.origin.url" ConsoleToMsBuild="true">
|
|
<Output TaskParameter="ConsoleOutput" PropertyName="RemoteUri" />
|
|
</Exec>
|
|
|
|
<Exec Command="git rev-parse HEAD" ConsoleToMsBuild="true" Condition = " '$(LatestCommit)' == '' ">
|
|
<Output TaskParameter="ConsoleOutput" PropertyName="LatestCommit" />
|
|
</Exec>
|
|
|
|
<!-- Write out the source file for this project to point at raw.githubusercontent.com -->
|
|
<WriteLinesToFile File="$(BaseIntermediateOutputPath)source_link.json" Overwrite="true" Lines='{"documents": { "$(SourceLinkRoot)\\*" : "$(RemoteUri.Replace(".git", "").Replace("github.com", "raw.githubusercontent.com"))/$(LatestCommit)/*" }}' />
|
|
</Target>
|
|
|
|
<ItemGroup>
|
|
<AdditionalFiles Include="$(MSBuildThisFileDirectory)..\stylecop.json" Link="stylecop.json" />
|
|
<None Include="$(MSBuildThisFileDirectory)..\webjobs.png" Pack="true" PackagePath="" />
|
|
</ItemGroup>
|
|
</Project>
|