Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

Commit e1af2ad

Browse files
authored
fixed csproj to produce sourcelink (#893)
1 parent 280ccad commit e1af2ad

File tree

3 files changed

+10
-28
lines changed

3 files changed

+10
-28
lines changed

Directory.Build.props

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33

44
<PropertyGroup>
55
<LangVersion>8.0</LangVersion>
6+
<!-- Publish the repository URL in the built .nupkg (in the NuSpec <Repository> element) -->
7+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
8+
<!-- Embed source files that are not tracked by the source control manager in the PDB -->
9+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
10+
<!-- Build symbol package (.snupkg) to distribute the PDB containing Source Link -->
11+
<IncludeSymbols>true</IncludeSymbols>
12+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
13+
<DebugType>embedded</DebugType>
614
</PropertyGroup>
715

816
<PropertyGroup>

src/CommunityToolkit/Xamarin.CommunityToolkit/Xamarin.CommunityToolkit.csproj

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
<PackageLicenseExpression>MIT</PackageLicenseExpression>
2929
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
3030
<PackageProjectUrl>https://github.com/xamarin/XamarinCommunityToolkit</PackageProjectUrl>
31-
<DebugType>portable</DebugType>
3231
<Configurations>Debug;Release</Configurations>
3332
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
3433
</PropertyGroup>
@@ -39,15 +38,6 @@
3938
<PropertyGroup Condition=" '$(Configuration)'=='Release' ">
4039
<!-- Manage TargetFrameworks for distribution (Release Mode) -->
4140
</PropertyGroup>
42-
<PropertyGroup Condition=" '$(Configuration)'=='Release' AND '$(OS)' == 'Windows_NT' ">
43-
<!-- Publish the repository URL in the built .nupkg (in the NuSpec <Repository> element) -->
44-
<PublishRepositoryUrl>true</PublishRepositoryUrl>
45-
<!-- Embed source files that are not tracked by the source control manager in the PDB -->
46-
<EmbedUntrackedSources>true</EmbedUntrackedSources>
47-
<!-- Build symbol package (.snupkg) to distribute the PDB containing Source Link -->
48-
<IncludeSymbols>true</IncludeSymbols>
49-
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
50-
</PropertyGroup>
5141
<PropertyGroup Condition=" $(TargetFramework.StartsWith('netcoreapp')) AND '$(OS)' == 'Windows_NT' ">
5242
<UseWPF>true</UseWPF>
5343
<UseWindowsForms>true</UseWindowsForms>
@@ -67,16 +57,13 @@
6757
<PropertyGroup Condition=" '$(TargetFramework)' == 'uap10.0.19041' ">
6858
<DefineConstants>$(DefineConstants);UWP_19041;UWP_18362;UWP_16299;UWP_14393</DefineConstants>
6959
</PropertyGroup>
70-
<ItemGroup Condition=" '$(Configuration)'=='Release' ">
71-
<!-- Manage Xamarin.Forms version for distribution -->
72-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
73-
</ItemGroup>
7460
<ItemGroup>
7561
<Compile Include="**/*.shared.cs" />
7662
<Compile Include="**/*.shared.*.cs" />
7763
<None Include="..\..\..\LICENSE" PackagePath="" Pack="true" />
7864
<None Include="..\..\..\assets\XamarinCommunityToolkit_128x128.png" PackagePath="icon.png" Pack="true" />
7965
<PackageReference Include="Xamarin.Forms" Version="5.0.0.1874" />
66+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All"/>
8067
</ItemGroup>
8168
<ItemGroup Condition=" $(TargetFramework.StartsWith('netstandard')) ">
8269
<Compile Include="**/*.netstandard.cs" />

src/Markup/Xamarin.CommunityToolkit.Markup/Xamarin.CommunityToolkit.Markup.csproj

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,27 +31,14 @@
3131
<PackageVersion>$(Version)$(VersionSuffix)</PackageVersion>
3232
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
3333
<PackageTags>xamarin,xamarin.forms,toolkit,kit,communitytoolkit,xamarincommunitytoolkit,markup,csharpformarkup,csharp,csharpmarkup</PackageTags>
34-
<DebugType>portable</DebugType>
3534
<Configurations>Debug;Release</Configurations>
3635
</PropertyGroup>
37-
<PropertyGroup Condition=" '$(Configuration)'=='Release' AND '$(OS)' == 'Windows_NT' ">
38-
<!-- Publish the repository URL in the built .nupkg (in the NuSpec <Repository> element) -->
39-
<PublishRepositoryUrl>true</PublishRepositoryUrl>
40-
<!-- Embed source files that are not tracked by the source control manager in the PDB -->
41-
<EmbedUntrackedSources>true</EmbedUntrackedSources>
42-
<!-- Build symbol package (.snupkg) to distribute the PDB containing Source Link -->
43-
<IncludeSymbols>true</IncludeSymbols>
44-
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
45-
</PropertyGroup>
46-
<ItemGroup Condition=" '$(Configuration)'=='Release' ">
47-
<!-- Manage Xamarin.Forms version for distribution -->
48-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
49-
</ItemGroup>
5036
<ItemGroup Condition=" $(TargetFramework.StartsWith('netstandard1.0')) ">
5137
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
5238
</ItemGroup>
5339
<ItemGroup>
5440
<PackageReference Include="Xamarin.Forms" Version="5.0.0.1874" />
41+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
5542
</ItemGroup>
5643
<ItemGroup>
5744
<None Include="..\..\..\LICENSE" PackagePath="" Pack="true" />

0 commit comments

Comments
 (0)