-
Notifications
You must be signed in to change notification settings - Fork 707
/
Copy pathNuGet.CommandLine.XPlat.csproj
64 lines (57 loc) · 2.43 KB
/
NuGet.CommandLine.XPlat.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Description>NuGet executable wrapper for the dotnet CLI nuget functionality.</Description>
<TargetFramework>$(NETCoreTargetFramework)</TargetFramework>
<NoWarn>$(NoWarn);CS1591;CS1701;NU5104;CA1307;CA2000</NoWarn>
<OutputType>Exe</OutputType>
<Shipping>true</Shipping>
<PackProject>true</PackProject>
<XPLATProject>true</XPLATProject>
<UseMSBuildLocator Condition=" '$(UseMSBuildLocator)' == '' And '$(Configuration)' == 'Debug' and '$(CI)' != 'true' ">true</UseMSBuildLocator>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\NuGet.Commands\NuGet.Commands.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.CommandLineUtils.Sources" PrivateAssets="All" />
<PackageReference Include="Microsoft.Build" ExcludeAssets="runtime" />
<PackageReference Include="System.CommandLine" />
<PackageReference Include="Microsoft.VisualStudio.SolutionPersistence" />
</ItemGroup>
<!-- Microsoft.Build.Locator is needed when debugging, but should not be used in the assemblies we insert. -->
<Choose>
<When Condition=" '$(UseMSBuildLocator)' == 'true' ">
<PropertyGroup>
<DefineConstants>$(DefineConstants);USEMSBUILDLOCATOR</DefineConstants>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Build.Locator" PrivateAssets="All" />
</ItemGroup>
</When>
</Choose>
<ItemGroup>
<Compile Update="Strings.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Strings.resx</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup Label="NuGet Shared">
<Compile Include="$(SharedDirectory)\HashCodeCombiner.cs" />
<Compile Include="$(SharedDirectory)\NoAllocEnumerateExtensions.cs" />
<Compile Include="$(SharedDirectory)\SharedExtensions.cs" />
<Compile Include="$(SharedDirectory)\TaskResult.cs" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="Strings.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Strings.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<InternalsVisibleTo Include="Dotnet.Integration.Test" />
<InternalsVisibleTo Include="DynamicProxyGenAssembly2" />
<InternalsVisibleTo Include="NuGet.CommandLine.Xplat.Tests" />
<InternalsVisibleTo Include="NuGet.XPlat.FuncTest" />
</ItemGroup>
</Project>