Skip to content

Commit

Permalink
Add Source link
Browse files Browse the repository at this point in the history
  • Loading branch information
xuzhg committed Dec 10, 2020
1 parent 7d2c687 commit 1e7889e
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

<PropertyGroup Condition=" '$(Configuration)' == 'Release'">
<!--Overide the default full debug symbols regardless of configuration-->
<DebugType>pdbonly</DebugType>
<DebugType>portable</DebugType>
</PropertyGroup>

<Import Project="$(EnlistmentRoot)\tools\CustomMSBuild\Build.props" />
Expand Down
7 changes: 5 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ stages:
$(rootDir)\src\Microsoft.OData.Extensions.Client.Abstractions\Microsoft.OData.Extensions.Client.Abstractions.csproj
/p:NuspecFile=$(rootDir)\src\Microsoft.OData.Extensions.Client.Abstractions\Microsoft.OData.Extensions.Client.Abstractions.$(RELEASE_SEMANTICS).nuspec
--configuration=$(buildConfiguration)
--output=$(Build.ArtifactStagingDirectory)\Packages
--output=$(Build.ArtifactStagingDirectory)\Packages
-Symbols -SymbolPackageFormat snupkg
displayName: Packing Client Abstractions

- task: DotNetCoreCLI@2
Expand All @@ -94,7 +95,8 @@ stages:
$(rootDir)\src/Microsoft.OData.Extensions.Client\Microsoft.OData.Extensions.Client.csproj
/p:NuspecFile=$(rootDir)\src\Microsoft.OData.Extensions.Client\Microsoft.OData.Extensions.Client.$(RELEASE_SEMANTICS).nuspec
--configuration=$(buildConfiguration)
--output=$(Build.ArtifactStagingDirectory)\Packages
--output=$(Build.ArtifactStagingDirectory)\Packages
-Symbols -SymbolPackageFormat snupkg
displayName: Packing Client

- task: DotNetCoreCLI@2
Expand All @@ -106,6 +108,7 @@ stages:
/p:NuspecFile=$(rootDir)\src\Microsoft.OData.Extensions.Migration\Microsoft.OData.Extensions.Migration.$(RELEASE_SEMANTICS).nuspec
--configuration=$(buildConfiguration)
--output=$(Build.ArtifactStagingDirectory)\Packages
-Symbols -SymbolPackageFormat snupkg
displayName: Packing Migrations

- publish: $(Build.ArtifactStagingDirectory)\Packages
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,9 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.OData.Client" Version="7.7.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="2.1.0" />
<PackageReference Include="Microsoft.Extensions.Options" Version="2.1.0" />
<PackageReference Include="Microsoft.Extensions.Http" Version="2.1.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
<PackageReference Include="Microsoft.AspNetCore.OData" Version="7.4.0" />
<PackageReference Include="Microsoft.Data.Edm" Version="5.8.4" />
<PackageReference Include="Microsoft.Data.OData" Version="5.8.4" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
Expand Down

0 comments on commit 1e7889e

Please sign in to comment.