-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
60 lines (51 loc) · 2.96 KB
/
Directory.Build.props
File metadata and controls
60 lines (51 loc) · 2.96 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
55
56
57
58
59
60
<Project>
<PropertyGroup>
<!-- Default Configuration if not set -->
<Configuration Condition="'$(Configuration)' == ''">Debug</Configuration>
<!-- Force all projects to use centralized output paths -->
<BaseOutputPath>$(MSBuildThisFileDirectory)Output\$(MSBuildProjectName)\bin\</BaseOutputPath>
<BaseIntermediateOutputPath>$(MSBuildThisFileDirectory)Output\$(MSBuildProjectName)\obj\</BaseIntermediateOutputPath>
<!-- Let SDK handle OutputPath (adds Configuration and TargetFramework automatically) -->
<!-- Do NOT set OutputPath directly - causes issues with Rider -->
<!-- Ensure NuGet packages are restored to a central location -->
<RestorePackagesPath>$(MSBuildThisFileDirectory)Output\packages</RestorePackagesPath>
</PropertyGroup>
<!-- ===== NuGet packaging defaults ===== -->
<PropertyGroup>
<!-- Default to non-packable. Library projects opt-in via <IsPackable>true</IsPackable>. -->
<IsPackable>false</IsPackable>
<!-- Package metadata applied to every packable project -->
<Authors>penspanic</Authors>
<Company>penspanic</Company>
<Copyright>Copyright (c) Geun-Hee Park</Copyright>
<PackageProjectUrl>https://github.com/penspanic/Datra</PackageProjectUrl>
<RepositoryUrl>https://github.com/penspanic/Datra</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageReadmeFile>README.md</PackageReadmeFile>
<!-- Versioning: overridable via -p:Version=x.y.z on the command line / CI tag -->
<Version Condition="'$(Version)' == ''">0.1.0-local</Version>
</PropertyGroup>
<!-- ===== SourceLink + embedded debug ===== -->
<PropertyGroup>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<!-- Embed PDB inside the assembly so consumers get stack traces and Go-to-Definition
without a separate snupkg feed. (See Plan 6.3.) -->
<DebugType>embedded</DebugType>
<EmbedAllSources>true</EmbedAllSources>
<!-- Deterministic builds: same source -> same binary, required for SourceLink -->
<Deterministic>true</Deterministic>
<ContinuousIntegrationBuild Condition="'$(GITHUB_ACTIONS)' == 'true'">true</ContinuousIntegrationBuild>
</PropertyGroup>
<!-- SourceLink only matters for packable projects, but the Microsoft.SourceLink.GitHub
PackageReference is harmless in unpackable projects (just adds build-time metadata). -->
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="all" />
</ItemGroup>
<!-- README only needs to be packed for packable projects. The file lives at repo root,
so each packable project picks it up from $(MSBuildThisFileDirectory). -->
<ItemGroup Condition="'$(IsPackable)' == 'true' AND Exists('$(MSBuildThisFileDirectory)README.md')">
<None Include="$(MSBuildThisFileDirectory)README.md" Pack="true" PackagePath="\" Visible="false" />
</ItemGroup>
</Project>