forked from Azure/azure-functions-host
-
Notifications
You must be signed in to change notification settings - Fork 0
/
common.props
52 lines (47 loc) · 2.94 KB
/
common.props
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
<Project>
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<BuildNumber Condition=" '$(BuildNumber)' == '' ">1</BuildNumber>
<MajorMinorProductVersion>2.0</MajorMinorProductVersion>
<Version>$(MajorMinorProductVersion).0-beta2-$(VersionSuffix)</Version>
<AssemblyVersion>$(MajorMinorProductVersion).0.0</AssemblyVersion>
<FileVersion>$(MajorMinorProductVersion).$(BuildNumber).0</FileVersion>
<CommitHash Condition="$(CommitHash) == ''">N/A</CommitHash>
<InformationalVersion>$(FileVersion)-beta1 Commit hash: $(CommitHash)</InformationalVersion>
<Authors>Microsoft</Authors>
<Company>Microsoft</Company>
<Product>Azure WebJobs SDK Script Runtime</Product>
<PackageProjectUrl>http://go.microsoft.com/fwlink/?LinkID=320972</PackageProjectUrl>
<RepositoryUrl>https://github.com/Azure/azure-webjobs-sdk-script</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<Copyright>© .NET Foundation. All rights reserved.</Copyright>
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
<PackageLicenseUrl>http://www.microsoft.com/web/webpi/eula/aspnetcomponent_rtw_enu.htm</PackageLicenseUrl>
<PackageIconUrl>https://raw.githubusercontent.com/Azure/azure-webjobs-sdk/dev/webjobs.png</PackageIconUrl>
<CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)..\src\src.ruleset</CodeAnalysisRuleSet>
<NoWarn>$(NoWarn);NU1701</NoWarn>
<DebugType>embedded</DebugType>
<UseSourceLink Condition="$(UseSourceLink) == '' And $(CI) != ''">true</UseSourceLink>
</PropertyGroup>
<PropertyGroup Condition="'$(UseSourceLink)' == 'true'">
<SourceLink>$(BaseIntermediateOutputPath)source_link.json</SourceLink>
</PropertyGroup>
<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" />
</ItemGroup>
</Project>