Skip to content

Commit f8b0b1a

Browse files
angularsentmilnthorp
authored andcommitted
Enable SourceLink and add back generated code (#548)
* Revert "Ignore generated code except Length, Information, Level (#517)" This reverts commit f914132. * Add SourceLink to UnitsNet nuget * Disable nuget symbols package * Add SourceLink to JsonNet nuget * AppVeyor: Clone depth of 50 commits Instead of zip clone, since SourceLink nuget fails to resolve the git repository without a proper clone. * .gitattributes: Remove commented lines * Mark .g.cs files as linguist-generated This should tell GitHub and possibly other tools to collapse these by default when reviewing PRs. You can still expand them if you want to look at them, but it greatly reduces noise when generating hundreds of files. Source: https://robots.thoughtbot.com/github-diff-supression * Add SourceLink to WRC Remove symbols package.
1 parent 619b524 commit f8b0b1a

File tree

182 files changed

+123904
-35
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

182 files changed

+123904
-35
lines changed

.gitattributes

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -20,27 +20,9 @@
2020
*.filters text eol=crlf
2121
*.vcxitems text eol=crlf
2222

23-
24-
#*.sln merge=binary
25-
#*.csproj merge=binary
26-
#*.vbproj merge=binary
27-
#*.vcxproj merge=binary
28-
#*.vcproj merge=binary
29-
#*.dbproj merge=binary
30-
#*.fsproj merge=binary
31-
#*.lsproj merge=binary
32-
#*.wixproj merge=binary
33-
#*.modelproj merge=binary
34-
#*.sqlproj merge=binary
35-
#*.wwaproj merge=binary
36-
37-
#*.xproj merge=binary
38-
#*.props merge=binary
39-
#*.filters merge=binary
40-
#*.vcxitems merge=binary
41-
4223
# C#
43-
*.cs diff=csharp
24+
*.cs diff=csharp
25+
*.g.cs linguist-generated
4426

4527
# Powershell
4628
*.ps1 text eol=crlf

Build/build-functions.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ function Start-PackNugets {
101101
}
102102

103103
write-host -foreground yellow "WindowsRuntimeComponent project not yet supported by dotnet CLI, using nuget.exe instead"
104-
& $nuget pack "$root\UnitsNet.WindowsRuntimeComponent\UnitsNet.WindowsRuntimeComponent.nuspec" -Verbosity detailed -OutputDirectory "$nugetOutDir" -Symbols
104+
& $nuget pack "$root\UnitsNet.WindowsRuntimeComponent\UnitsNet.WindowsRuntimeComponent.nuspec" -Verbosity detailed -OutputDirectory "$nugetOutDir"
105105

106106
write-host -foreground blue "Pack nugets...END`n"
107107
}

UnitsNet.Serialization.JsonNet/UnitsNet.Serialization.JsonNet.Common.props

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
<Title>Units.NET Serialization with Json.NET</Title>
88
<Description>A helper library for serializing and deserializing types in Units.NET using Json.NET.</Description>
99
<Copyright>Copyright (c) 2015 Andreas Gullberg Larsen</Copyright>
10-
<IncludeSymbols>true</IncludeSymbols>
11-
<IncludeSource>true</IncludeSource>
1210
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1311
<RepositoryUrl>https://github.com/angularsen/UnitsNet</RepositoryUrl>
1412
<PackageIconUrl>https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png</PackageIconUrl>
@@ -23,11 +21,17 @@
2321
<TargetFrameworks>netstandard2.0;net40</TargetFrameworks>
2422
<RootNamespace>UnitsNet.Serialization.JsonNet</RootNamespace>
2523
<NoWarn>CS1701;CS1702;CS1705;CS0618</NoWarn>
24+
25+
<!-- SourceLink -->
26+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
27+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
28+
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
2629
</PropertyGroup>
2730

2831
<!-- NuGet references that work for both signed and unsigned -->
2932
<ItemGroup>
3033
<PackageReference Include="JetBrains.Annotations" Version="10.4.0" PrivateAssets="All" />
34+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta-63127-02" PrivateAssets="All"/>
3135
<PackageReference Include="Newtonsoft.Json" Version="9.0.1" />
3236
</ItemGroup>
3337

UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/.gitignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)