forked from hexagon-oss/Remoting-Replacement
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Directory.Build.props
46 lines (40 loc) · 2.44 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
<Project>
<PropertyGroup Condition="'$(MSBuildProjectExtension)' == '.csproj'">
<TargetFramework>net6.0</TargetFramework>
<Platforms>AnyCPU</Platforms>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<NoWarn>1591</NoWarn>
<LangVersion>latest</LangVersion>
<PackageId>LeicaGeosystemsAG.NewRemoting.$(MSBuildProjectName)</PackageId>
<PackageOutputPath>$(MSBuildThisFileDirectory)artifacts</PackageOutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$(MSBuildProjectExtension)' == '.csproj' AND '$(Configuration)|$(Platform)' == 'Debug|x64'">
<DefineConstants>TRACE;DEBUG;X64;CODE_ANALYSIS</DefineConstants>
<DebugType>full</DebugType>
</PropertyGroup>
<PropertyGroup Condition="'$(MSBuildProjectExtension)' == '.csproj' AND '$(Configuration)|$(Platform)' == 'Release|x64'">
<DefineConstants>TRACE;X64;CODE_ANALYSIS</DefineConstants>
<DebugType>pdbonly</DebugType>
</PropertyGroup>
<!-- Add PDBs and source link support -->
<ItemGroup Condition="'$(MSBuildProjectExtension)' == '.csproj'">
<PackageReference Include="SourceLink.Copy.PdbFiles" Version="2.8.3" PrivateAssets="All" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All"/>
</ItemGroup>
<PropertyGroup Condition="'$(MSBuildProjectExtension)' == '.csproj'">
<CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)\StyleCop.Analyzers.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup Condition="'$(MSBuildProjectExtension)' == '.csproj'">
<AdditionalFiles Include="$(MSBuildThisFileDirectory)\stylecop.json" Link="stylecop.json" />
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.354">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
<ItemGroup Condition="($(MSBuildProjectName.EndsWith('UnitTest')) OR $(MSBuildProjectName.EndsWith('IntegrationTest'))) AND '$(MSBuildProjectExtension)' == '.csproj'">
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.1" />
</ItemGroup>
<PropertyGroup Condition="($(MSBuildProjectName.EndsWith('UnitTest')) OR $(MSBuildProjectName.EndsWith('IntegrationTest'))) AND '$(MSBuildProjectExtension)' == '.csproj'">
<NoWarn>$(NoWarn);CA1304</NoWarn> <!-- Disable "missing culture argument" warning for tests, either it is correct or the test will fail -->
</PropertyGroup>
</Project>