Repository navigation
Expand file tree
/
Copy pathNuGet.PackageManagement.PowerShellCmdlets.csproj
More file actions
67 lines (57 loc) · 3.02 KB
/
Copy pathNuGet.PackageManagement.PowerShellCmdlets.csproj
File metadata and controls
67 lines (57 loc) · 3.02 KB
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
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Shipping>true</Shipping>
<IncludeInVSIX>true</IncludeInVSIX>
<Description>Package Manager Console PowerShell host implementation and NuGet's PowerShell cmdlets for the Visual Studio client.</Description>
<TargetFramework>$(NETFXTargetFramework)</TargetFramework>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\NuGet.Console\NuGet.Console.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.VisualStudio.Sdk" />
<PackageReference Include="Newtonsoft.Json" NoWarn="NU1605" />
</ItemGroup>
<ItemGroup>
<Compile Update="Resources.Designer.cs">
<AutoGen>true</AutoGen>
<DesignTime>true</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup Label="NuGet Shared">
<Compile Include="$(SharedDirectory)\DeconstructionExtensions.cs" />
<Compile Include="$(SharedDirectory)\TaskResult.cs" />
<Compile Include="$(SharedDirectory)\NuGetFeatureFlags.cs" />
<Compile Include="$(SharedDirectory)\AotCompatibilityAttributes.cs" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<None Include="Scripts\about_NuGet.Cmdlets.help.txt">
<CopyToOutputDirectory Condition="$(IsVsixBuild) != 'true'">PreserveNewest</CopyToOutputDirectory>
</None>
<!-- We copy this xml file to output directory so the CI can pick it for localization from the artifacts directory.
However, we condition it to only be copied when building the project itself and not the vsix to prevent the VSIX
from including this file -->
<None Include="Scripts\NuGet.PackageManagement.PowerShellCmdlets.dll-Help.xml">
<CopyToOutputDirectory Condition="$(IsVsixBuild) != 'true'">PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<InternalsVisibleTo Include="DynamicProxyGenAssembly2" />
<InternalsVisibleTo Include="NuGetConsole.Host.PowerShell.Test" />
</ItemGroup>
<Target Name="PowerShellCmdletsAfterBuild" AfterTargets="AfterBuild">
<ItemGroup>
<PowerShellScripts Include="$(MSBuildProjectDirectory)\Scripts\*.ps*" Exclude="$(MSBuildProjectDirectory)\Scripts\NuGet.psd1" />
</ItemGroup>
<Copy SourceFiles="@(PowerShellScripts)" DestinationFolder="$(ArtifactsDirectory)Scripts" />
<Exec Command="powershell.exe -NoProfile -ExecutionPolicy Bypass "$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), 'NuGet.sln'))\build\UpdateNuGetModuleManifest.ps1" -NuGetPackageManagementPowerShellCmdletsFilePath "$(OutDir)NuGet.PackageManagement.PowerShellCmdlets.dll" -ManifestModuleSourceFilePath "$(MSBuildProjectDirectory)\Scripts\NuGet.psd1" -ManifestModuleDestinationFilePath "$(ArtifactsDirectory)Scripts\NuGet.psd1"" />
</Target>
</Project>