forked from snoopwpf/snoopwpf
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDirectory.build.targets
50 lines (41 loc) · 2.4 KB
/
Directory.build.targets
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
<Project>
<!-- Assembly info -->
<PropertyGroup>
<GenerateAssemblyInfo>true</GenerateAssemblyInfo>
<Company>https://github.com/snoopwpf/snoopwpf</Company>
<Product>Snoop</Product>
<Copyright>Copyright © Cory Plotts, Bastian Schmidt 2010 - $([System.DateTime]::Today.ToString(yyyy))</Copyright>
</PropertyGroup>
<!-- SourceLink -->
<PropertyGroup>
<!-- Optional: Declare that the Repository URL can be published to NuSpec -->
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<!-- Optional: Embed source files that are not tracked by the source control manager to the PDB -->
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<!-- Optional: Include PDB in the built .nupkg -->
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<!-- By using EmbedAllSources we don't need SourceLink itself -->
<!-- https://github.com/dotnet/sourcelink/blob/master/docs/README.md#embedallsources -->
<EmbedAllSources>True</EmbedAllSources>
</PropertyGroup>
<!-- PDB-Options -->
<PropertyGroup>
<!-- We should switch "DebugType" to "portable" in the future -->
<!-- "Full" and "pdbonly" are the same according to https://github.com/dotnet/roslyn/blob/master/docs/compilers/CSharp/CommandLine.md -->
<DebugType>full</DebugType>
</PropertyGroup>
<!-- Build references -->
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="All" IncludeAssets="build; native" />
</ItemGroup>
<!-- Analyzer references -->
<ItemGroup>
<PackageReference Include="JetBrains.Annotations" privateAssets="all" includeAssets="build;compile" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" privateAssets="all" includeAssets="build;analyzers" />
<!-- <PackageReference Include="PropertyChangedAnalyzers" privateAssets="all" includeAssets="build;analyzers" /> -->
<!--<PackageReference Include="ReflectionAnalyzers" version="0.1-dev" privateAssets="all" includeAssets="build;analyzers" />-->
<PackageReference Include="StyleCop.Analyzers" privateAssets="all" includeAssets="build;analyzers" />
<PackageReference Include="WpfAnalyzers" privateAssets="all" includeAssets="build;analyzers" />
</ItemGroup>
<Target Name="ForceRestore" BeforeTargets="ResolvePackageAssets" DependsOnTargets="Restore" />
</Project>