2022-10-18 16:49:18 -07:00
|
|
|
<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="15.0">
|
2017-09-18 17:13:29 -07:00
|
|
|
<Import Project="..\..\PowerShell.Common.props" />
|
2017-03-23 13:04:52 -07:00
|
|
|
<PropertyGroup>
|
2019-05-10 15:34:27 -07:00
|
|
|
<Description>PowerShell's System.Management.Automation project</Description>
|
2024-08-13 10:18:39 -07:00
|
|
|
<NoWarn>$(NoWarn);CS1570;CS1734;CA1416;CA2022</NoWarn>
|
2017-03-23 13:04:52 -07:00
|
|
|
<AssemblyName>System.Management.Automation</AssemblyName>
|
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
2022-10-11 23:50:16 +05:00
|
|
|
<PropertyGroup>
|
|
|
|
|
<!-- we persist source generator files under 'gen' folder so that they are visible to IDEs -->
|
|
|
|
|
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
|
|
|
|
|
<CompilerGeneratedFilesOutputPath>gen\SourceGenerated</CompilerGeneratedFilesOutputPath>
|
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
|
|
<ItemGroup>
|
|
|
|
|
<!-- these properties are declared in 'PowerShell.Common.props' and used by source generator -->
|
|
|
|
|
<CompilerVisibleProperty Include="ProductVersion" />
|
|
|
|
|
<CompilerVisibleProperty Include="PSCoreBuildVersion" />
|
|
|
|
|
<CompilerVisibleProperty Include="PowerShellVersion" />
|
|
|
|
|
<CompilerVisibleProperty Include="ReleaseTag" />
|
|
|
|
|
|
2024-10-31 15:15:28 -07:00
|
|
|
<ProjectReference Include="SourceGenerators\PSVersionInfoGenerator\PSVersionInfoGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
|
2022-10-11 23:50:16 +05:00
|
|
|
</ItemGroup>
|
|
|
|
|
|
2019-08-08 05:44:54 -07:00
|
|
|
<ItemGroup Condition=" '$(IsWindows)' == 'true' ">
|
2017-03-23 13:04:52 -07:00
|
|
|
<ProjectReference Include="..\Microsoft.PowerShell.CoreCLR.Eventing\Microsoft.PowerShell.CoreCLR.Eventing.csproj" />
|
2019-08-08 05:44:54 -07:00
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
|
|
<ItemGroup>
|
2018-01-31 12:16:48 -08:00
|
|
|
<!-- the following package(s) are from https://github.com/JamesNK/Newtonsoft.Json -->
|
2023-03-13 14:40:28 -07:00
|
|
|
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
2019-08-15 16:13:53 -07:00
|
|
|
<!-- the Application Insights package -->
|
2025-02-24 16:00:56 -08:00
|
|
|
<PackageReference Include="Microsoft.ApplicationInsights" Version="2.23.0" />
|
2018-01-31 12:16:48 -08:00
|
|
|
<!-- the following package(s) are from https://github.com/dotnet/corefx -->
|
2025-02-12 10:21:42 -08:00
|
|
|
<PackageReference Include="Microsoft.Win32.Registry.AccessControl" Version="9.0.2" />
|
|
|
|
|
<PackageReference Include="System.Configuration.ConfigurationManager" Version="9.0.2" />
|
|
|
|
|
<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="9.0.2" />
|
|
|
|
|
<PackageReference Include="System.DirectoryServices" Version="9.0.2" />
|
2021-10-28 11:40:52 -07:00
|
|
|
<!--PackageReference Include="System.IO.FileSystem.AccessControl" Version="6.0.0-preview.5.21301.5" /-->
|
2025-02-12 10:21:42 -08:00
|
|
|
<PackageReference Include="System.Management" Version="9.0.2" />
|
2024-05-09 15:36:52 -07:00
|
|
|
<PackageReference Include="System.Security.AccessControl" Version="6.0.1" />
|
2025-02-12 10:21:42 -08:00
|
|
|
<PackageReference Include="System.Security.Cryptography.Pkcs" Version="9.0.2" />
|
|
|
|
|
<PackageReference Include="System.Security.Permissions" Version="9.0.2" />
|
|
|
|
|
<PackageReference Include="System.Text.Encoding.CodePages" Version="9.0.2" />
|
2018-01-31 12:16:48 -08:00
|
|
|
<!-- the following package(s) are from the powershell org -->
|
2023-11-06 13:45:14 -08:00
|
|
|
<PackageReference Include="Microsoft.Management.Infrastructure" Version="3.0.0" />
|
2023-11-01 11:21:45 -07:00
|
|
|
<PackageReference Include="Microsoft.PowerShell.Native" Version="7.4.0" />
|
2022-04-20 14:26:57 -07:00
|
|
|
<!-- Signing APIs -->
|
2025-02-14 16:42:28 -08:00
|
|
|
<PackageReference Include="Microsoft.Security.Extensions" Version="1.4.0" />
|
2017-03-23 13:04:52 -07:00
|
|
|
</ItemGroup>
|
|
|
|
|
|
2017-04-17 11:52:38 -07:00
|
|
|
<PropertyGroup>
|
2017-03-23 13:04:52 -07:00
|
|
|
<DefineConstants>$(DefineConstants);CORECLR</DefineConstants>
|
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
2017-04-17 11:52:38 -07:00
|
|
|
<ItemGroup>
|
2022-10-11 23:50:16 +05:00
|
|
|
<!-- exclude code of source generators from compilation and IDEs (e.g. vscode and visual studio) -->
|
|
|
|
|
<Compile Remove="SourceGenerators\**\*.cs" />
|
|
|
|
|
|
2017-03-23 13:04:52 -07:00
|
|
|
<Compile Remove="cimSupport\cmdletization\xml\cmdlets-over-objects.objectModel.autogen.cs" />
|
|
|
|
|
<Compile Remove="cimSupport\cmdletization\xml\cmdlets-over-objects.xmlSerializer.autogen.cs" />
|
|
|
|
|
<Compile Remove="engine\TransactedString.cs" />
|
|
|
|
|
<Compile Remove="engine\TransactionManager.cs" />
|
|
|
|
|
<Compile Remove="engine\hostifaces\NativeCultureResolver.cs" />
|
|
|
|
|
<Compile Remove="engine\hostifaces\RunspaceInvoke.cs" />
|
2018-08-29 17:11:20 -07:00
|
|
|
<Compile Remove="engine\remoting\commands\ResumeJob.cs" />
|
|
|
|
|
<Compile Remove="engine\remoting\commands\SuspendJob.cs" />
|
2017-03-23 13:04:52 -07:00
|
|
|
<Compile Remove="namespaces\SafeTransactionHandle.cs" />
|
2017-04-17 11:52:38 -07:00
|
|
|
<Compile Remove="namespaces\SafeRegistryHandle.cs" />
|
2017-03-23 13:04:52 -07:00
|
|
|
<Compile Remove="namespaces\TransactedRegistry.cs" />
|
|
|
|
|
<Compile Remove="namespaces\TransactedRegistryKey.cs" />
|
|
|
|
|
<Compile Remove="namespaces\TransactedRegistrySecurity.cs" />
|
|
|
|
|
<Compile Remove="utils\BackgroundDispatcher.cs" />
|
|
|
|
|
<Compile Remove="utils\perfCounters\CounterSetInstanceBase.cs" />
|
|
|
|
|
<Compile Remove="utils\perfCounters\CounterSetRegistrarBase.cs" />
|
|
|
|
|
<Compile Remove="utils\perfCounters\PSPerfCountersMgr.cs" />
|
|
|
|
|
<Compile Remove="gen\CoreMshSnapinResources.cs" />
|
|
|
|
|
<Compile Remove="gen\ErrorPackageRemoting.cs" />
|
2017-11-06 08:32:29 -08:00
|
|
|
<Compile Remove="gen\EventResource.cs" />
|
2017-08-22 02:23:52 +04:00
|
|
|
|
2017-03-23 13:04:52 -07:00
|
|
|
<EmbeddedResource Remove="resources\CoreMshSnapinResources.resx" />
|
|
|
|
|
<EmbeddedResource Remove="resources\ErrorPackageRemoting.resx" />
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
2018-06-05 20:08:49 -07:00
|
|
|
<ItemGroup Condition=" '$(IsWindows)' != 'true' ">
|
2022-11-18 00:00:07 -08:00
|
|
|
<Compile Remove="engine\COM\**\*.cs" />
|
2020-08-07 16:24:10 -07:00
|
|
|
<Compile Remove="engine\ComInterop\**\*.cs" />
|
2022-11-30 23:00:12 +05:00
|
|
|
<Compile Remove="engine\ExtraAdapter.cs" />
|
|
|
|
|
<Compile Remove="engine\Interop\Windows\**\*.cs" />
|
|
|
|
|
<Compile Remove="engine\ManagementObjectAdapter.cs" />
|
2018-06-05 20:08:49 -07:00
|
|
|
<Compile Remove="engine\remoting\commands\ConnectPSSession.cs" />
|
2018-08-29 17:11:20 -07:00
|
|
|
<Compile Remove="engine\remoting\commands\CustomShellCommands.cs" />
|
|
|
|
|
<Compile Remove="engine\remoting\commands\DisconnectPSSession.cs" />
|
|
|
|
|
<Compile Remove="engine\remoting\commands\ReceivePSSession.cs" />
|
2018-06-05 20:08:49 -07:00
|
|
|
<Compile Remove="engine\remoting\commands\TestPSSessionConfigurationFile.cs" />
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
2022-11-30 23:00:12 +05:00
|
|
|
<ItemGroup Condition=" '$(IsWindows)' == 'true' ">
|
|
|
|
|
<Compile Remove="engine\Interop\Unix\**\*.cs" />
|
|
|
|
|
</ItemGroup>
|
2017-03-23 13:04:52 -07:00
|
|
|
</Project>
|