-
Notifications
You must be signed in to change notification settings - Fork 77
/
Directory.Build.props
46 lines (35 loc) · 2.33 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>
<!-- SonarLint connected mode settings i.e. ruleset and additional files.
Applies to every project in the repo, including the utility projects under "build" directory. -->
<Import Condition=" $(VsTargetVersionPropsImported) != 'true'" Project="SonarLint.VsTargetVersion.props" />
<PropertyGroup Condition=" $(SignArtifacts) == 'true' ">
<!-- Turn on strong-naming. -->
<SignAssembly>true</SignAssembly>
<DefineConstants>$(DefineConstants);SignAssembly</DefineConstants>
</PropertyGroup>
<PropertyGroup Label="Global properties">
<LangVersion>latest</LangVersion>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
</PropertyGroup>
<!-- ******************************************************************************* -->
<!-- Newtonsoft -->
<!-- ******************************************************************************* -->
<!-- NOTE: We're specifying the version we want to use and are embedding it in the VSIX.
However, VS ships with multiple verions of NewtonSoft.Json.dll and has binding redirects
in devenv.exe.config that can change the version is loaded at runtime. However, this
should not cause a problem as we will end up with a compatible version.
Finally, NewtonSoft.Json v12 has vulnerabilities reported against it which Mend
will complain about. By referencing v13.x we avoid those warnings.
See #3098 for more info.
-->
<!-- ******************************************************************************* -->
<!-- Additional external NuGet packages used by multiple projects. -->
<!-- They are defined here to make sure we reference the same version everywhere. -->
<!-- ******************************************************************************* -->
<ItemGroup Label="NuGet packages">
<PackageReference Include="Newtonsoft.Json" Condition=" $(RequiresNewtonsoft)=='true'" Version="13.0.3" />
<PackageReference Include="System.IO.Abstractions" Condition=" $(RequiresSystemIOAbstractions)=='true'" Version="9.0.4" />
<PackageReference Include="System.Threading.Channels" Condition=" $(RequiresChannels)=='true'" Version="7.0.0" />
<PackageReference Include="LibGit2Sharp" Version="0.26.2" Condition="$(RequiresLibGit)=='true'" GeneratePathProperty="true" PrivateAssets="all" />
</ItemGroup>
</Project>