Skip to content

Commit

Permalink
Added information for requiring SourceRoot infromation when build wit…
Browse files Browse the repository at this point in the history
…h SourceLink feature.

dotnet/roslyn#37379
  • Loading branch information
kekyo committed Mar 23, 2022
1 parent d84794c commit 87dd418
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
9 changes: 7 additions & 2 deletions README.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -375,12 +375,17 @@ RelaxVersionerはすでにSourcelink統合をサポートしています。 簡
</PropertyGroup>

<ItemGroup>
<PackageReference Include="RelaxVersioner" Version="2.3.2" PrivateAssets="All" />
<!-- RelaxVersioner -->
<PackageReference Include="RelaxVersioner" Version="2.5.5" PrivateAssets="All" />

<!-- ソリューションファイルが存在する場合の、ルートディレクトリ位置 -->
<!-- 参照: https://github.com/dotnet/roslyn/issues/37379 -->
<SourceRoot Include="$(MSBuildThisFileDirectory)/"/>
</ItemGroup>

<!-- Sourcelink GitHubパッケージを追加 -->
<ItemGroup Condition="'$(Configuration)' == 'Release'">
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
</ItemGroup>
```

Expand Down
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -365,12 +365,17 @@ RelaxVersioner already supported Sourcelink integration. You can integrate using
</PropertyGroup>

<ItemGroup>
<PackageReference Include="RelaxVersioner" Version="2.3.2" PrivateAssets="All" />
<!-- RelaxVersioner -->
<PackageReference Include="RelaxVersioner" Version="2.5.5" PrivateAssets="All" />

<!-- Root directory location of the solution file, if it exists. -->
<!-- Refer: https://github.com/dotnet/roslyn/issues/37379 -->
<SourceRoot Include="$(MSBuildThisFileDirectory)/"/>
</ItemGroup>

<!-- Required: Add Sourcelink package reference on only Release build -->
<ItemGroup Condition="'$(Configuration)' == 'Release'">
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
</ItemGroup>
```

Expand Down

0 comments on commit 87dd418

Please sign in to comment.