-
Notifications
You must be signed in to change notification settings - Fork 382
/
Copy pathMicrosoft.TemplateSearch.Common.csproj
42 lines (34 loc) · 1.88 KB
/
Microsoft.TemplateSearch.Common.csproj
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
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>$(NetMinimum);$(NetFrameworkMinimum)</TargetFrameworks>
<Description>Components used by the template discovery tool, and also used for related functionality in the CLI.</Description>
<IsPackable>true</IsPackable>
<EnablePublicApiAnalyzer>true</EnablePublicApiAnalyzer>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>
<!-- DesignTimeBuild requires all the TargetFramework Derived Properties to not be present in the first property group. -->
<PropertyGroup Condition="$([MSBuild]::GetTargetFrameworkIdentifier('$(TargetFramework)')) == '.NETCoreApp'">
<!-- TODO: Resolve nullable errors and remove this block: https://github.com/dotnet/templating/issues/8100. -->
<Nullable>annotations</Nullable>
</PropertyGroup>
<ItemGroup>
<Compile Include="..\Shared\JExtensions.cs" Link="JExtensions.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="$(SrcDir)Microsoft.TemplateEngine.Abstractions\Microsoft.TemplateEngine.Abstractions.csproj" />
<PackageReference Include="Newtonsoft.Json" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="LocalizableStrings.resx"
GenerateSource="true" />
</ItemGroup>
<ItemGroup>
<InternalsVisibleTo Include="Microsoft.TemplateSearch.Common.UnitTests" Key="$(TemplateEnginePublicKey)" />
<InternalsVisibleTo Include="Microsoft.TemplateEngine.Cli.UnitTests" Key="$(TemplateEnginePublicKey)" />
<InternalsVisibleTo Include="Microsoft.TemplateSearch.ScraperOutputComparison" Key="$(TemplateEnginePublicKey)" />
<InternalsVisibleTo Include="Microsoft.TemplateSearch.TemplateDiscovery" Key="$(TemplateEnginePublicKey)" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'">
<Reference Include="System.Net.Http" />
</ItemGroup>
</Project>