Enable source link without git folder (#140)

This commit is contained in:
Andrey Tretyak 2019-10-21 10:16:57 +01:00 коммит произвёл GitHub
Родитель 957ab5b24e
Коммит e3c88d35df
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 9 добавлений и 3 удалений

Просмотреть файл

@ -48,13 +48,15 @@
<Company>Microsoft</Company>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/microsoft/Omex</RepositoryUrl>
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
<Tags>Omex</Tags>
<Description>$(MSBuildProjectName)</Description>
<Tags>Omex</Tags>
</PropertyGroup>
<PropertyGroup Label="Debug Information" >
<EnableSourceControlManagerQueries Condition="'$(CommitSha)' != ''">false</EnableSourceControlManagerQueries>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/microsoft/Omex</RepositoryUrl>
<RevisionId>$(CommitSha)</RevisionId>
<!-- Don't need them due to source linking -->
<IncludeSource>false</IncludeSource>
<IncludeSymbols>true</IncludeSymbols>
@ -65,5 +67,6 @@
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<!-- Optional: Include the PDB in the built .nupkg -->
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<SourceRootLocation>$(MSBuildThisFileDirectory)</SourceRootLocation>
</PropertyGroup>
</Project>

Просмотреть файл

@ -10,4 +10,7 @@
<ItemGroup Condition="'$(UseVstsSourceLink)' == ''">
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="$(Microsoft_SourceLink_GitHub_Version)" PrivateAssets="All"/>
</ItemGroup>
<ItemGroup Condition="'$(CommitSha)' != ''">
<SourceRoot Include="$(SourceRootLocation)" RepositoryUrl="$(RepositoryUrl)" SourceControl="git" RevisionId="$(CommitSha)" />
</ItemGroup>
</Project>