mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
104 lines
5.5 KiB
XML
104 lines
5.5 KiB
XML
<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="15.0">
|
|
<Import Project="..\..\PowerShell.Common.props" />
|
|
<PropertyGroup>
|
|
<Description>PowerShell's System.Management.Automation project</Description>
|
|
<NoWarn>$(NoWarn);CS1570;CS1734;CA1416</NoWarn>
|
|
<AssemblyName>System.Management.Automation</AssemblyName>
|
|
</PropertyGroup>
|
|
|
|
<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" />
|
|
|
|
<ProjectReference Include="SourceGenerators\PSVersionInfoGenerator\PSVersionInfoGenerator.csproj"
|
|
OutputItemType="Analyzer"
|
|
ReferenceOutputAssembly="false" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup Condition=" '$(IsWindows)' == 'true' ">
|
|
<ProjectReference Include="..\Microsoft.PowerShell.CoreCLR.Eventing\Microsoft.PowerShell.CoreCLR.Eventing.csproj" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<!-- the following package(s) are from https://github.com/JamesNK/Newtonsoft.Json -->
|
|
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
|
<!-- the Application Insights package -->
|
|
<PackageReference Include="Microsoft.ApplicationInsights" Version="2.22.0" />
|
|
<!-- the following package(s) are from https://github.com/dotnet/corefx -->
|
|
<PackageReference Include="Microsoft.Win32.Registry.AccessControl" Version="9.0.0-preview.1.24080.9" />
|
|
<PackageReference Include="System.Configuration.ConfigurationManager" Version="9.0.0-preview.1.24080.9" />
|
|
<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="9.0.0-preview.1.24080.9" />
|
|
<PackageReference Include="System.DirectoryServices" Version="9.0.0-preview.1.24080.9" />
|
|
<!--PackageReference Include="System.IO.FileSystem.AccessControl" Version="6.0.0-preview.5.21301.5" /-->
|
|
<PackageReference Include="System.Management" Version="9.0.0-preview.1.24080.9" />
|
|
<PackageReference Include="System.Security.AccessControl" Version="6.0.0" />
|
|
<PackageReference Include="System.Security.Cryptography.Pkcs" Version="9.0.0-preview.1.24080.9" />
|
|
<PackageReference Include="System.Security.Permissions" Version="9.0.0-preview.1.24080.9" />
|
|
<PackageReference Include="System.Text.Encoding.CodePages" Version="9.0.0-preview.1.24080.9" />
|
|
<!-- the following package(s) are from the powershell org -->
|
|
<PackageReference Include="Microsoft.Management.Infrastructure" Version="3.0.0" />
|
|
<PackageReference Include="Microsoft.PowerShell.Native" Version="7.4.0" />
|
|
<!-- Signing APIs -->
|
|
<PackageReference Include="Microsoft.Security.Extensions" Version="1.3.0" />
|
|
</ItemGroup>
|
|
|
|
<PropertyGroup>
|
|
<DefineConstants>$(DefineConstants);CORECLR</DefineConstants>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<!-- exclude code of source generators from compilation and IDEs (e.g. vscode and visual studio) -->
|
|
<Compile Remove="SourceGenerators\**\*.cs" />
|
|
|
|
<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" />
|
|
<Compile Remove="engine\remoting\commands\ResumeJob.cs" />
|
|
<Compile Remove="engine\remoting\commands\SuspendJob.cs" />
|
|
<Compile Remove="namespaces\SafeTransactionHandle.cs" />
|
|
<Compile Remove="namespaces\SafeRegistryHandle.cs" />
|
|
<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" />
|
|
<Compile Remove="gen\EventResource.cs" />
|
|
|
|
<EmbeddedResource Remove="resources\CoreMshSnapinResources.resx" />
|
|
<EmbeddedResource Remove="resources\ErrorPackageRemoting.resx" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup Condition=" '$(IsWindows)' != 'true' ">
|
|
<Compile Remove="engine\COM\**\*.cs" />
|
|
<Compile Remove="engine\ComInterop\**\*.cs" />
|
|
<Compile Remove="engine\ExtraAdapter.cs" />
|
|
<Compile Remove="engine\Interop\Windows\**\*.cs" />
|
|
<Compile Remove="engine\ManagementObjectAdapter.cs" />
|
|
<Compile Remove="engine\remoting\commands\ConnectPSSession.cs" />
|
|
<Compile Remove="engine\remoting\commands\CustomShellCommands.cs" />
|
|
<Compile Remove="engine\remoting\commands\DisconnectPSSession.cs" />
|
|
<Compile Remove="engine\remoting\commands\ReceivePSSession.cs" />
|
|
<Compile Remove="engine\remoting\commands\TestPSSessionConfigurationFile.cs" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup Condition=" '$(IsWindows)' == 'true' ">
|
|
<Compile Remove="engine\Interop\Unix\**\*.cs" />
|
|
</ItemGroup>
|
|
</Project>
|