forked from ni/csharp-styleguide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Directory.Build.props
75 lines (64 loc) · 3.66 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<Project>
<PropertyGroup>
<!-- Indicates that a rebuild is required if this file changes. -->
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
<!-- Indicates that we've imported this targets file. -->
<SourceDirectoryBuildPropsIncluded>True</SourceDirectoryBuildPropsIncluded>
</PropertyGroup>
<PropertyGroup>
<NILibraryTargetFramework>net5.0</NILibraryTargetFramework>
<NIExecutableTargetFramework>net5.0</NIExecutableTargetFramework>
<NIAnalyzersTargetFramework>netstandard2.0</NIAnalyzersTargetFramework>
</PropertyGroup>
<PropertyGroup>
<AssemblyName>NationalInstruments.Tools.$(MSBuildProjectName)</AssemblyName>
<RootNamespace>NationalInstruments.Tools.$(MSBuildProjectName)</RootNamespace>
</PropertyGroup>
<PropertyGroup>
<BaseIntermediateOutputPath>$(MSBuildThisFileDirectory).objs\$(MSBuildProjectName)</BaseIntermediateOutputPath>
<IntermediateOutputPath>$(BaseIntermediateOutputPath)\$(Configuration)</IntermediateOutputPath>
<NugetPackageDir>$(USERPROFILE)\.nuget\packages</NugetPackageDir>
<OutputPath>$(MSBuildThisFileDirectory).binaries\$(Configuration)\$(MSBuildProjectName)</OutputPath>
<PublishDir>$(MSBuildThisFileDirectory).publish\$(Configuration)\$(MSBuildProjectName)</PublishDir>
</PropertyGroup>
<PropertyGroup>
<VersionPrefix>10.0.0.0</VersionPrefix>
<Company>National Instruments</Company>
<NeutralLanguage>en-US</NeutralLanguage>
<Copyright>Copyright (C) National Instruments $([System.DateTime]::Now.ToString(`yyyy`)). All Rights Reserved.</Copyright>
<CLSCompliant>True</CLSCompliant>
</PropertyGroup>
<!--
<PropertyGroup>
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)\.BuildTools\StrongNameKey\NationalInstruments.snk</AssemblyOriginatorKeyFile>
<SignAssembly>true</SignAssembly>
<PublicSign Condition="'$(OS)' != 'Windows_NT'">true</PublicSign>
</PropertyGroup>
-->
<PropertyGroup>
<IncludeCompatabilityAnalyzer Condition=" '$(IncludeCompatabilityAnalyzer)' == '' ">True</IncludeCompatabilityAnalyzer>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DefineConstants>$(DefineConstants);DEBUG</DefineConstants>
<DebugType>full</DebugType>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DefineConstants>$(DefineConstants)</DefineConstants>
<DebugType>pdbonly</DebugType>
<TreatWarningsAsErrors Condition="'$(TreatWarningsAsErrors)' == ''">True</TreatWarningsAsErrors>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="5.0.3" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="3.11.0" />
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.2" />
<PackageReference Include="Microsoft.VisualStudio.Threading.Analyzers" Version="16.10.56" />
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.354" />
<PackageReference Condition=" '$(IncludeCompatabilityAnalyzer)' == 'True' " Include="Microsoft.DotNet.Analyzers.Compatibility" Version="0.2.12-alpha">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>
<PropertyGroup>
<CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)\src\AnalyzerConfiguration\NI.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
</Project>