Repository navigation
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
54 lines (47 loc) · 3.03 KB
/
Copy pathDirectory.Build.props
File metadata and controls
54 lines (47 loc) · 3.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<Project>
<PropertyGroup>
<!-- Non-release builds use this version family; release packages use the Git tag
(see .github/workflows/dotnet.yml). -->
<VersionMajorMinor>2.0</VersionMajorMinor>
<VersionPrefix Condition="'$(VersionPrefix)' == ''">$(VersionMajorMinor).0</VersionPrefix>
<AssemblyVersion>$(VersionMajorMinor).0.0</AssemblyVersion>
</PropertyGroup>
<PropertyGroup>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<Copyright>Copyright (c) 2026 sdcb</Copyright>
<!-- One icon for every package; assets/icon.png is rendered from assets/icon.svg. -->
<PackageIcon>icon.png</PackageIcon>
</PropertyGroup>
<ItemGroup>
<None Include="$(MSBuildThisFileDirectory)assets/icon.png" Pack="true" PackagePath="/" Visible="false" />
</ItemGroup>
<PropertyGroup>
<CreateHardLinksForCopyLocalIfPossible>true</CreateHardLinksForCopyLocalIfPossible>
<CreateHardLinksForCopyFilesToOutputDirectoryIfPossible>true</CreateHardLinksForCopyFilesToOutputDirectoryIfPossible>
<CreateHardLinksForCopyAdditionalFilesIfPossible>true</CreateHardLinksForCopyAdditionalFilesIfPossible>
<CreateHardLinksForAdditionalFilesIfPossible>true</CreateHardLinksForAdditionalFilesIfPossible>
<CreateHardLinksForPublishFilesIfPossible>true</CreateHardLinksForPublishFilesIfPossible>
</PropertyGroup>
<PropertyGroup>
<!-- Ship the /// comments in the package so consumers get IntelliSense. Keyed on the name
rather than IsPackable, which test projects set in their own csproj, after this file is
read. CS1591 (public member without a comment) and CS1573 (a parameter without a
<param> when its siblings have one) are silenced: the point is to ship the docs that
exist, not to demand them everywhere. Broken crefs and paramrefs still warn. -->
<GenerateDocumentationFile Condition="!$(MSBuildProjectName.EndsWith('.Tests'))">true</GenerateDocumentationFile>
<NoWarn>$(NoWarn);CS1591;CS1573</NoWarn>
</PropertyGroup>
<!-- Every shipped package (src/*) tracks its public API: a change that is not in PublicAPI.Shipped.txt or
PublicAPI.Unshipped.txt fails the build (RS0016 / RS0017), so every API change shows up in review; changes,
breaking ones included, are fine once written there. On a release, Unshipped moves into Shipped. -->
<ItemGroup Condition="$([System.String]::Copy('$(MSBuildProjectDirectory)').Replace('\', '/').Contains('/src/'))">
<PackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" PrivateAssets="all" />
<AdditionalFiles Include="PublicAPI.Shipped.txt" />
<AdditionalFiles Include="PublicAPI.Unshipped.txt" />
</ItemGroup>
<ItemGroup Condition="Exists('$(MSBuildProjectDirectory)/linqpad-samples')">
<!-- LINQPad shows a package's linqpad-samples folder in its NuGet browser. Each package carries
the samples about itself; the images they use are downloaded at run time (tools/sample-assets). -->
<None Include="linqpad-samples/*.linq" Pack="true" PackagePath="linqpad-samples" />
</ItemGroup>
</Project>