-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdirectory.build.props
38 lines (33 loc) · 1.49 KB
/
directory.build.props
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
<Project>
<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<DocumentationFile>$(OutDir)StyleCopDocumentation.xml</DocumentationFile>
<SlnGenSolutionFileFullPath>$(MSBuildProjectDirectory)\dotnet-starter.sln</SlnGenSolutionFileFullPath>
<SlnGenLaunchVisualStudio>false</SlnGenLaunchVisualStudio>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
<ItemGroup>
<AdditionalFiles Include="$(MSBuildThisFileDirectory)\stylecop.json" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="StyleCop.Analyzers">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.VisualStudio.SlnGen" />
</ItemGroup>
<PropertyGroup>
<PublishRootDir>$(MSBuildThisFileDirectory)\out</PublishRootDir>
</PropertyGroup>
<Target Name="PublishAssets" AfterTargets="Publish">
<ItemGroup>
<PublishedAssets Include="$(OutDir)\publish\**\*.*" />
</ItemGroup>
<Copy SourceFiles="@(PublishedAssets)"
DestinationFolder="$(PublishRootDir)\$(TargetName)\%(RecursiveDir)"
SkipUnchangedFiles="true" />
</Target>
</Project>