-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
35 lines (29 loc) · 1.16 KB
/
Directory.Build.props
File metadata and controls
35 lines (29 loc) · 1.16 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
<Project>
<PropertyGroup>
<MSBuildNodeReuse>true</MSBuildNodeReuse>
<DebugSymbolsDir>$(MSBuildThisFileDirectory)build\DebugSymbols\</DebugSymbolsDir>
<PackageOutputPath>$(MSBuildThisFileDirectory)build\NuGet\</PackageOutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$(OutputType)' == 'Library' and '$(IsTestProject)' != 'true'">
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<RepositoryType>git</RepositoryType>
<Authors>MAS</Authors>
<Company>MAS</Company>
</PropertyGroup>
<Target Name="MovePdbFiles" AfterTargets="Publish">
<ItemGroup>
<PdbFiles Include="$(PublishDir)**\*.pdb" />
</ItemGroup>
<MakeDir Directories="$(DebugSymbolsDir)" />
<Copy SourceFiles="@(PdbFiles)"
DestinationFolder="$(DebugSymbolsDir)"
SkipUnchangedFiles="true" />
<Delete Files="@(PdbFiles)" />
</Target>
<ItemGroup Condition="!$(MSBuildProjectDirectory.Contains('tests'))">
<Analyzer Include="$(MSBuildThisFileDirectory)libs\MAS.Analyzers.dll" />
</ItemGroup>
</Project>