<PackageId>$(MSBuildProjectName)</PackageId>
<AssemblyName>Microsoft.Diagnostics.Tracing.EventSource</AssemblyName>
<DefineConstants>$(DefineConstants);NO_EVENTCOMMANDEXECUTED_SUPPORT;ES_BUILD_STANDALONE;FEATURE_MANAGED_ETW;TARGET_WINDOWS</DefineConstants>
- <TargetFrameworks>net461-windows</TargetFrameworks>
+ <TargetFrameworks>net461</TargetFrameworks>
<Nullable>enable</Nullable>
<IncludePlatformAttributes>true</IncludePlatformAttributes>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<PropertyGroup>
<DefineConstants>$(DefineConstants);USE_MDT_EVENTSOURCE</DefineConstants>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <TargetFrameworks>net461-windows</TargetFrameworks>
+ <TargetFrameworks>net461</TargetFrameworks>
</PropertyGroup>
<PropertyGroup>
<SDTTestDir>..\..\System.Diagnostics.Tracing\tests</SDTTestDir>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <TargetFrameworks>netstandard2.0;net461</TargetFrameworks>
+ <TargetFrameworks>netstandard2.0;net461-windows</TargetFrameworks>
<EnableDefaultItems>true</EnableDefaultItems>
<PackageDescription>XML configuration provider implementation for Microsoft.Extensions.Configuration.</PackageDescription>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <TargetFrameworks>$(NetCoreAppCurrent);net461</TargetFrameworks>
+ <TargetFrameworks>$(NetCoreAppCurrent);net461-windows</TargetFrameworks>
<EnableDefaultItems>true</EnableDefaultItems>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <TargetFrameworks>$(NetCoreAppCurrent);net461</TargetFrameworks>
+ <TargetFrameworks>$(NetCoreAppCurrent);net461-windows</TargetFrameworks>
<EnableDefaultItems>true</EnableDefaultItems>
</PropertyGroup>
</PropertyGroup>
<ItemGroup>
- <ProjectReference Include="..\src\Microsoft.NETCore.Platforms.csproj" />
- <!-- Workaround NuGet promoting this to a ProjectReference -->
- <PackageReference Include="System.Memory" Condition="'$(TargetFramework)' == 'net472'" Version="$(SystemMemoryVersion)" />
- <PackageReference Include="System.Security.AccessControl" Condition="'$(TargetFramework)' == 'net472'" Version="$(SystemSecurityAccessControlVersion)" />
- <PackageReference Include="System.Security.Principal.Windows" Condition="'$(TargetFramework)' == 'net472'" Version="$(SystemSecurityPrincipalWindowsVersion)" />
- </ItemGroup>
-
- <ItemGroup>
<Compile Include="AssemblyInfo.cs" />
<Compile Include="GenerateRuntimeGraphTests.cs" />
<Compile Include="Log.cs" />
<Content Include="..\src\runtimeGroups.props" CopyToOutputDirectory="PreserveNewest" />
<Content Include="..\src\runtime.json" CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>
+
+ <ItemGroup>
+ <ProjectReference Include="..\src\Microsoft.NETCore.Platforms.csproj" />
+ </ItemGroup>
+
+ <!-- Workaround NuGet promoting this to a ProjectReference -->
+ <ItemGroup Condition="'$(TargetFramework)' == 'net472'">
+ <PackageReference Include="System.Memory" Version="$(SystemMemoryVersion)" />
+ <PackageReference Include="System.Security.Principal.Windows" Version="$(SystemSecurityPrincipalWindowsVersion)" />
+ <ProjectReference Include="$(LibrariesProjectRoot)System.Security.AccessControl\src\System.Security.AccessControl.csproj" />
+ </ItemGroup>
</Project>
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<IncludeRemoteExecutor>true</IncludeRemoteExecutor>
- <TargetFrameworks>$(NetCoreAppCurrent);net461</TargetFrameworks>
+ <TargetFrameworks>$(NetCoreAppCurrent);net48-windows</TargetFrameworks>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(CommonPath)System\Runtime\CompilerServices\IsExternalInit.cs" Link="Common\System\Runtime\CompilerServices\IsExternalInit.cs" />
<Compile Include="UtilsTests.cs" />
<Compile Include="VBMathTests.cs" />
</ItemGroup>
- <ItemGroup Condition="'$(TargetFramework)' == 'net461'">
+ <ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'">
<ProjectReference Include="$(LibrariesProjectRoot)System.Text.Encoding.CodePages\src\System.Text.Encoding.CodePages.csproj" />
<Reference Include="Microsoft.VisualBasic" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
<PackageReference Include="Microsoft.Win32.Registry" Version="$(MicrosoftWin32RegistryVersion)" />
- <PackageReference Include="System.Security.AccessControl" Version="$(SystemSecurityAccessControlVersion)" />
+ <ProjectReference Include="$(LibrariesProjectRoot)System.Security.AccessControl\ref\System.Security.AccessControl.csproj" />
<!-- Manually reference the transitive dependency to make NuGet pick the package over the transitive project: https://github.com/NuGet/Home/issues/10368 -->
<PackageReference Include="System.Memory" Version="$(SystemMemoryVersion)" PrivateAssets="all" />
<PackageReference Include="System.Security.Principal.Windows" Version="$(SystemSecurityPrincipalWindowsVersion)" PrivateAssets="all" />
<Compile Include="Microsoft\Win32\RegistryAclExtensions.cs" />
</ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="$(LibrariesProjectRoot)System.Security.AccessControl\src\System.Security.AccessControl.csproj" />
+ </ItemGroup>
+
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'">
<Reference Include="Microsoft.Win32.Registry" />
<Reference Include="System.Runtime" />
- <Reference Include="System.Security.AccessControl" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'">
<PackageReference Include="Microsoft.Win32.Registry" Version="$(MicrosoftWin32RegistryVersion)" />
- <PackageReference Include="System.Security.AccessControl" Version="$(SystemSecurityAccessControlVersion)" />
+ <!-- Manually reference the transitive dependency to make NuGet pick the package over the transitive project: https://github.com/NuGet/Home/issues/10368 -->
+ <PackageReference Include="System.Security.Principal.Windows" Version="$(SystemSecurityPrincipalWindowsVersion)" PrivateAssets="all" />
</ItemGroup>
</Project>
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <TargetFrameworks>$(NetCoreAppCurrent)-windows;net461-windows</TargetFrameworks>
+ <TargetFrameworks>$(NetCoreAppCurrent)-windows;net461</TargetFrameworks>
<IncludeRemoteExecutor>true</IncludeRemoteExecutor>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="$(LibrariesProjectRoot)System.Management\src\System.Management.csproj" />
<ProjectReference Include="$(LibrariesProjectRoot)System.Reflection.Context\src\System.Reflection.Context.csproj" />
<ProjectReference Include="$(LibrariesProjectRoot)System.Runtime.Caching\src\System.Runtime.Caching.csproj" />
+ <ProjectReference Include="$(LibrariesProjectRoot)System.Security.AccessControl\src\System.Security.AccessControl.csproj" />
<ProjectReference Include="$(LibrariesProjectRoot)System.Security.Cryptography.Pkcs\src\System.Security.Cryptography.Pkcs.csproj" />
<ProjectReference Include="$(LibrariesProjectRoot)System.Security.Cryptography.ProtectedData\src\System.Security.Cryptography.ProtectedData.csproj" />
<ProjectReference Include="$(LibrariesProjectRoot)System.Security.Cryptography.Xml\src\System.Security.Cryptography.Xml.csproj" />
<PackageReference Include="System.Reflection.Emit" Version="$(SystemReflectionEmitVersion)" />
<PackageReference Include="System.Reflection.Emit.ILGeneration" Version="$(SystemReflectionEmitILGenerationVersion)" />
<PackageReference Include="System.Reflection.Emit.Lightweight" Version="$(SystemReflectionEmitLightweightVersion)" />
- <PackageReference Include="System.Security.AccessControl" Version="$(SystemSecurityAccessControlVersion)" />
<PackageReference Include="System.Security.Cryptography.Cng" Version="$(SystemSecurityCryptographyCngVersion)" />
<PackageReference Include="System.Security.Principal.Windows" Version="$(SystemSecurityPrincipalWindowsVersion)" />
</ItemGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <TargetFrameworks>$(NetCoreAppCurrent);netstandard2.0;net461</TargetFrameworks>
+ <TargetFrameworks>$(NetCoreAppCurrent);netstandard2.0;net461-windows</TargetFrameworks>
<!-- opt-out of trimming until it works https://github.com/dotnet/runtime/issues/49062 -->
<SetIsTrimmable>false</SetIsTrimmable>
<NoWarn>$(NoWarn);CA1847</NoWarn>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<IncludeRemoteExecutor>true</IncludeRemoteExecutor>
- <TargetFrameworks>$(NetCoreAppCurrent);net461</TargetFrameworks>
+ <TargetFrameworks>$(NetCoreAppCurrent);net461-windows</TargetFrameworks>
<IgnoreForCI Condition="'$(TargetOS)' == 'Browser'">true</IgnoreForCI>
</PropertyGroup>
<ItemGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <TargetFrameworks>$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent)-FreeBSD;$(NetCoreAppCurrent)-illumos;$(NetCoreAppCurrent)-Solaris;$(NetCoreAppCurrent)-Linux;$(NetCoreAppCurrent)-OSX;$(NetCoreAppCurrent)-iOS;$(NetCoreAppCurrent)-tvOS;$(NetCoreAppCurrent);netcoreapp3.1-windows;netcoreapp3.1-FreeBSD;netcoreapp3.1-Linux;netcoreapp3.1-OSX;netcoreapp3.1;netstandard2.0;net461</TargetFrameworks>
+ <TargetFrameworks>$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent)-FreeBSD;$(NetCoreAppCurrent)-illumos;$(NetCoreAppCurrent)-Solaris;$(NetCoreAppCurrent)-Linux;$(NetCoreAppCurrent)-OSX;$(NetCoreAppCurrent)-iOS;$(NetCoreAppCurrent)-tvOS;$(NetCoreAppCurrent);netcoreapp3.1-windows;netcoreapp3.1-FreeBSD;netcoreapp3.1-Linux;netcoreapp3.1-OSX;netcoreapp3.1;netstandard2.0;net461-windows</TargetFrameworks>
<NoWarn>$(NoWarn);CA2249;CA1838</NoWarn>
<Nullable>enable</Nullable>
<IsPackable>true</IsPackable>
<PackageReference Include="System.IO.FileSystem.AccessControl" Version="$(SystemIOFileSystemAccessControlVersion)" />
<!-- Manually reference the transitive dependency to make NuGet pick the package over the transitive project: https://github.com/NuGet/Home/issues/10368 -->
<PackageReference Include="System.Security.Principal.Windows" Version="$(SystemSecurityPrincipalWindowsVersion)" PrivateAssets="all" />
- <PackageReference Include="System.Security.AccessControl" Version="$(SystemSecurityAccessControlVersion)" PrivateAssets="all" />
<PackageReference Include="System.Memory" Version="$(SystemMemoryVersion)" PrivateAssets="all" />
<PackageReference Include="System.Numerics.Vectors" Version="$(SystemNumericsVectorsVersion)" PrivateAssets="all" />
<ProjectReference Include="$(LibrariesProjectRoot)System.Security.Permissions\ref\System.Security.Permissions.csproj" />
<PackageReference Include="Microsoft.Win32.Registry" Version="$(MicrosoftWin32RegistryVersion)" />
<PackageReference Include="System.Security.Principal.Windows" Version="$(SystemSecurityPrincipalWindowsVersion)" />
<PackageReference Include="System.Memory" Version="$(SystemMemoryVersion)" />
- <!-- Manually reference the transitive dependency to make NuGet pick the package over the transitive project: https://github.com/NuGet/Home/issues/10368 -->
- <PackageReference Include="System.Security.AccessControl" Version="$(SystemSecurityAccessControlVersion)" PrivateAssets="all" />
<!-- S.R.C.Unsafe isn't a primary but transitive dependency and this P2P makes sure that the live version is used. -->
<ProjectReference Include="$(LibrariesProjectRoot)System.Runtime.CompilerServices.Unsafe\src\System.Runtime.CompilerServices.Unsafe.ilproj" PrivateAssets="all" />
</ItemGroup>
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'">
<PackageReference Include="System.IO.FileSystem.AccessControl" Version="$(SystemIOFileSystemAccessControlVersion)" Condition="!$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))" />
- <PackageReference Include="System.Security.AccessControl" Version="$(SystemSecurityAccessControlVersion)" Condition="!$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))" />
<ProjectReference Include="$(LibrariesProjectRoot)System.Configuration.ConfigurationManager\src\System.Configuration.ConfigurationManager.csproj" />
<ProjectReference Include="$(LibrariesProjectRoot)System.DirectoryServices\src\System.DirectoryServices.csproj" />
<ProjectReference Include="$(LibrariesProjectRoot)System.DirectoryServices.Protocols\src\System.DirectoryServices.Protocols.csproj" />
+ <ProjectReference Include="$(LibrariesProjectRoot)System.Security.AccessControl\src\System.Security.AccessControl.csproj" />
<Reference Include="netstandard" Condition="$(TargetFramework.StartsWith('netcoreapp3.1'))" />
<Reference Include="Microsoft.Win32.Primitives" />
<Reference Include="System.Collections" />
<Reference Include="System.Runtime" />
<Reference Include="System.Runtime.Extensions" />
<Reference Include="System.Runtime.InteropServices" />
- <Reference Include="System.Security.AccessControl" Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))" />
<Reference Include="System.Security.Claims" />
<Reference Include="System.Security.Cryptography.X509Certificates" />
<Reference Include="System.Security.Principal" />
<Compile Include="System.DirectoryServices.manual.cs" />
</ItemGroup>
<ItemGroup>
+ <ProjectReference Include="$(LibrariesProjectRoot)System.Security.AccessControl\src\System.Security.AccessControl.csproj" />
<ProjectReference Include="$(LibrariesProjectRoot)System.Security.Permissions\ref\System.Security.Permissions.csproj" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == '$(NetCoreAppCurrent)'">
</ItemGroup>
<ItemGroup Condition="!$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))">
<PackageReference Include="System.IO.FileSystem.AccessControl" Version="$(SystemIOFileSystemAccessControlVersion)" />
- <PackageReference Include="System.Security.AccessControl" Version="$(SystemSecurityAccessControlVersion)" />
<PackageReference Include="System.Security.Principal.Windows" Version="$(SystemSecurityPrincipalWindowsVersion)" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp3.1'">
<Compile Include="$(CommonPath)System\Obsoletions.cs" Link="System\Obsoletions.cs" />
</ItemGroup>
<ItemGroup>
+ <ProjectReference Include="$(LibrariesProjectRoot)System.Security.AccessControl\src\System.Security.AccessControl.csproj" />
<ProjectReference Include="$(LibrariesProjectRoot)System.Security.Permissions\src\System.Security.Permissions.csproj" />
</ItemGroup>
<ItemGroup Condition="!$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))">
<PackageReference Include="System.IO.FileSystem.AccessControl" Version="$(SystemIOFileSystemAccessControlVersion)" />
- <PackageReference Include="System.Security.AccessControl" Version="$(SystemSecurityAccessControlVersion)" />
<PackageReference Include="System.Security.Principal.Windows" Version="$(SystemSecurityPrincipalWindowsVersion)" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'">
<Reference Include="System.Runtime" />
<Reference Include="System.Runtime.Extensions" />
<Reference Include="System.Runtime.InteropServices" />
- <Reference Include="System.Security.AccessControl" Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))" />
<Reference Include="System.Security.Claims" />
<Reference Include="System.Security.Cryptography.Algorithms" />
<Reference Include="System.Security.Principal.Windows" Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))" />
--- /dev/null
+<configuration>
+ <!-- This disables restore in VS for projects that target platform specific target frameworks older than net5.0. -->
+ <packageRestore>
+ <!-- The 'automatic' key is set to True when the "Automatically check for missing packages during
+ build in Visual Studio" checkbox is set. Clearing the box sets this to False and disables
+ automatic restore. -->
+ <add key="automatic" value="False" />
+ <!-- The 'enabled' key is True when the "Allow NuGet to download missing packages" checkbox is set.
+ Clearing the box sets this to False, disabling command-line, automatic, and MSBuild-integrated restore. -->
+ <add key="enabled" value="False" />
+ </packageRestore>
+</configuration>
\ No newline at end of file
+++ /dev/null
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// ------------------------------------------------------------------------------
-// Changes to this file must follow the https://aka.ms/api-review process.
-// ------------------------------------------------------------------------------
-
-#nullable enable
-
-namespace System.Security.Policy
-{
- public sealed partial class Evidence : System.Collections.ICollection, System.Collections.IEnumerable
- {
- public Evidence() { }
- [System.ObsoleteAttribute("This constructor is obsolete. Use the constructor which accepts arrays of EvidenceBase instead.")]
- public Evidence(object[] hostEvidence, object[] assemblyEvidence) { }
- public Evidence(System.Security.Policy.Evidence evidence) { }
- public Evidence(System.Security.Policy.EvidenceBase[] hostEvidence, System.Security.Policy.EvidenceBase[] assemblyEvidence) { }
- [System.ObsoleteAttribute("Evidence should not be treated as an ICollection. Use GetHostEnumerator and GetAssemblyEnumerator to iterate over the evidence to collect a count.")]
- public int Count { get { throw null; } }
- public bool IsReadOnly { get { throw null; } }
- public bool IsSynchronized { get { throw null; } }
- public bool Locked { get { throw null; } set { } }
- public object SyncRoot { get { throw null; } }
- [System.ObsoleteAttribute("Evidence.AddAssembly has been deprecated. Use AddAssemblyEvidence instead.")]
- public void AddAssembly(object id) { }
- public void AddAssemblyEvidence<T>(T evidence) where T : System.Security.Policy.EvidenceBase { }
- [System.ObsoleteAttribute("Evidence.AddHost has been deprecated. Use AddHostEvidence instead.")]
- public void AddHost(object id) { }
- public void AddHostEvidence<T>(T evidence) where T : System.Security.Policy.EvidenceBase { }
- public void Clear() { }
- public System.Security.Policy.Evidence? Clone() { throw null; }
- [System.ObsoleteAttribute("Evidence should not be treated as an ICollection. Use the GetHostEnumerator and GetAssemblyEnumerator methods rather than using CopyTo.")]
- public void CopyTo(System.Array array, int index) { }
- public System.Collections.IEnumerator GetAssemblyEnumerator() { throw null; }
- public T? GetAssemblyEvidence<T>() where T : System.Security.Policy.EvidenceBase { throw null; }
- [System.ObsoleteAttribute("GetEnumerator is obsolete. Use GetAssemblyEnumerator and GetHostEnumerator instead.")]
- public System.Collections.IEnumerator GetEnumerator() { throw null; }
- public System.Collections.IEnumerator GetHostEnumerator() { throw null; }
- public T? GetHostEvidence<T>() where T : System.Security.Policy.EvidenceBase { throw null; }
- public void Merge(System.Security.Policy.Evidence evidence) { }
- public void RemoveType(System.Type t) { }
- }
- public abstract partial class EvidenceBase
- {
- protected EvidenceBase() { }
- public virtual System.Security.Policy.EvidenceBase? Clone() { throw null; }
- }
-}
public void SetAudit(System.Security.Principal.SecurityIdentifier sid, System.Security.AccessControl.ObjectAuditRule rule) { }
}
}
+
+namespace System.Security.Policy
+{
+ public sealed partial class Evidence : System.Collections.ICollection, System.Collections.IEnumerable
+ {
+ public Evidence() { }
+ [System.ObsoleteAttribute("This constructor is obsolete. Please use the constructor which takes arrays of EvidenceBase instead.")]
+ public Evidence(object[] hostEvidence, object[] assemblyEvidence) { }
+ public Evidence(System.Security.Policy.Evidence evidence) { }
+ public Evidence(System.Security.Policy.EvidenceBase[] hostEvidence, System.Security.Policy.EvidenceBase[] assemblyEvidence) { }
+ [System.ObsoleteAttribute("Evidence should not be treated as an ICollection. Please use GetHostEnumerator and GetAssemblyEnumerator to iterate over the evidence to collect a count.")]
+ public int Count { get { throw null; } }
+ public bool IsReadOnly { get { throw null; } }
+ public bool IsSynchronized { get { throw null; } }
+ public bool Locked { get { throw null; } set { } }
+ public object SyncRoot { get { throw null; } }
+ [System.ObsoleteAttribute("This method is obsolete. Please use AddAssemblyEvidence instead.")]
+ public void AddAssembly(object id) { }
+ public void AddAssemblyEvidence<T>(T evidence) where T : System.Security.Policy.EvidenceBase { }
+ [System.ObsoleteAttribute("This method is obsolete. Please use AddHostEvidence instead.")]
+ public void AddHost(object id) { }
+ public void AddHostEvidence<T>(T evidence) where T : System.Security.Policy.EvidenceBase { }
+ public void Clear() { }
+ public System.Security.Policy.Evidence? Clone() { throw null; }
+ [System.ObsoleteAttribute("Evidence should not be treated as an ICollection. Please use the GetHostEnumerator and GetAssemblyEnumerator methods rather than using CopyTo.")]
+ public void CopyTo(System.Array array, int index) { }
+ public System.Collections.IEnumerator GetAssemblyEnumerator() { throw null; }
+ public T? GetAssemblyEvidence<T>() where T : System.Security.Policy.EvidenceBase { throw null; }
+ [System.ObsoleteAttribute("GetEnumerator is obsolete. Please use GetAssemblyEnumerator and GetHostEnumerator instead.")]
+ public System.Collections.IEnumerator GetEnumerator() { throw null; }
+ public System.Collections.IEnumerator GetHostEnumerator() { throw null; }
+ public T? GetHostEvidence<T>() where T : System.Security.Policy.EvidenceBase { throw null; }
+ public void Merge(System.Security.Policy.Evidence evidence) { }
+ public void RemoveType(System.Type t) { }
+ }
+ public abstract partial class EvidenceBase
+ {
+ protected EvidenceBase() { }
+ public virtual System.Security.Policy.EvidenceBase? Clone() { throw null; }
+ }
+}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <TargetFrameworks>$(NetCoreAppCurrent)</TargetFrameworks>
+ <TargetFrameworks>$(NetCoreAppCurrent);netstandard2.0;net461</TargetFrameworks>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
- <Compile Include="System.Security.AccessControl.cs" />
- <Compile Include="System.Security.AccessControl.Evidence.cs" />
+ <Compile Condition="'$(TargetFramework)' != 'net461'" Include="System.Security.AccessControl.cs" />
+ <Compile Condition="'$(TargetFramework)' == 'net461'" Include="System.Security.AccessControl.net461.cs" />
</ItemGroup>
- <ItemGroup>
+ <ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETStandard'">
+ <PackageReference Include="System.Security.Principal.Windows" Version="$(SystemSecurityPrincipalWindowsVersion)" />
+ </ItemGroup>
+ <ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'">
<ProjectReference Include="$(LibrariesProjectRoot)System.Security.Principal.Windows\ref\System.Security.Principal.Windows.csproj" />
</ItemGroup>
</Project>
\ No newline at end of file
--- /dev/null
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// ------------------------------------------------------------------------------
+// Changes to this file must follow the https://aka.ms/api-review process.
+// ------------------------------------------------------------------------------
+
+using System.Runtime.CompilerServices;
+
+[assembly: TypeForwardedTo(typeof(System.Security.AccessControl.AccessControlActions))]
+[assembly: TypeForwardedTo(typeof(System.Security.AccessControl.AccessControlModification))]
+[assembly: TypeForwardedTo(typeof(System.Security.AccessControl.AccessControlSections))]
+[assembly: TypeForwardedTo(typeof(System.Security.AccessControl.AccessControlType))]
+[assembly: TypeForwardedTo(typeof(System.Security.AccessControl.AccessRule))]
+[assembly: TypeForwardedTo(typeof(System.Security.AccessControl.AccessRule<>))]
+[assembly: TypeForwardedTo(typeof(System.Security.AccessControl.AceEnumerator))]
+[assembly: TypeForwardedTo(typeof(System.Security.AccessControl.AceFlags))]
+[assembly: TypeForwardedTo(typeof(System.Security.AccessControl.AceQualifier))]
+[assembly: TypeForwardedTo(typeof(System.Security.AccessControl.AceType))]
+[assembly: TypeForwardedTo(typeof(System.Security.AccessControl.AuditFlags))]
+[assembly: TypeForwardedTo(typeof(System.Security.AccessControl.AuditRule))]
+[assembly: TypeForwardedTo(typeof(System.Security.AccessControl.AuditRule<>))]
+[assembly: TypeForwardedTo(typeof(System.Security.AccessControl.AuthorizationRule))]
+[assembly: TypeForwardedTo(typeof(System.Security.AccessControl.AuthorizationRuleCollection))]
+[assembly: TypeForwardedTo(typeof(System.Security.AccessControl.CommonAce))]
+[assembly: TypeForwardedTo(typeof(System.Security.AccessControl.CommonAcl))]
+[assembly: TypeForwardedTo(typeof(System.Security.AccessControl.CommonObjectSecurity))]
+[assembly: TypeForwardedTo(typeof(System.Security.AccessControl.CommonSecurityDescriptor))]
+[assembly: TypeForwardedTo(typeof(System.Security.AccessControl.CompoundAce))]
+[assembly: TypeForwardedTo(typeof(System.Security.AccessControl.CompoundAceType))]
+[assembly: TypeForwardedTo(typeof(System.Security.AccessControl.ControlFlags))]
+[assembly: TypeForwardedTo(typeof(System.Security.AccessControl.CustomAce))]
+[assembly: TypeForwardedTo(typeof(System.Security.AccessControl.DiscretionaryAcl))]
+[assembly: TypeForwardedTo(typeof(System.Security.AccessControl.GenericAce))]
+[assembly: TypeForwardedTo(typeof(System.Security.AccessControl.GenericAcl))]
+[assembly: TypeForwardedTo(typeof(System.Security.AccessControl.GenericSecurityDescriptor))]
+[assembly: TypeForwardedTo(typeof(System.Security.AccessControl.InheritanceFlags))]
+[assembly: TypeForwardedTo(typeof(System.Security.AccessControl.KnownAce))]
+[assembly: TypeForwardedTo(typeof(System.Security.AccessControl.NativeObjectSecurity))]
+[assembly: TypeForwardedTo(typeof(System.Security.AccessControl.ObjectAccessRule))]
+[assembly: TypeForwardedTo(typeof(System.Security.AccessControl.ObjectAce))]
+[assembly: TypeForwardedTo(typeof(System.Security.AccessControl.ObjectAceFlags))]
+[assembly: TypeForwardedTo(typeof(System.Security.AccessControl.ObjectAuditRule))]
+[assembly: TypeForwardedTo(typeof(System.Security.AccessControl.ObjectSecurity))]
+[assembly: TypeForwardedTo(typeof(System.Security.AccessControl.ObjectSecurity<>))]
+[assembly: TypeForwardedTo(typeof(System.Security.AccessControl.PrivilegeNotHeldException))]
+[assembly: TypeForwardedTo(typeof(System.Security.AccessControl.PropagationFlags))]
+[assembly: TypeForwardedTo(typeof(System.Security.AccessControl.QualifiedAce))]
+[assembly: TypeForwardedTo(typeof(System.Security.AccessControl.RawAcl))]
+[assembly: TypeForwardedTo(typeof(System.Security.AccessControl.RawSecurityDescriptor))]
+[assembly: TypeForwardedTo(typeof(System.Security.AccessControl.ResourceType))]
+[assembly: TypeForwardedTo(typeof(System.Security.AccessControl.SecurityInfos))]
+[assembly: TypeForwardedTo(typeof(System.Security.AccessControl.SystemAcl))]
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+<Suppressions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <Suppression>
+ <DiagnosticId>CP0001</DiagnosticId>
+ <Left>lib/netstandard2.0/System.Security.AccessControl.dll</Left>
+ <Right>lib/net461/System.Security.AccessControl.dll</Right>
+ </Suppression>
+ <Suppression>
+ <DiagnosticId>PKV006</DiagnosticId>
+ <Target>.NETFramework,Version=v4.6</Target>
+ </Suppression>
+ <Suppression>
+ <DiagnosticId>PKV006</DiagnosticId>
+ <Target>.NETStandard,Version=v1.3</Target>
+ </Suppression>
+ <Suppression>
+ <DiagnosticId>PKV007</DiagnosticId>
+ <Target>.NETFramework,Version=v4.6-win</Target>
+ </Suppression>
+ <Suppression>
+ <DiagnosticId>PKV007</DiagnosticId>
+ <Target>.NETStandard,Version=v1.3-win</Target>
+ </Suppression>
+</Suppressions>
\ No newline at end of file
--- /dev/null
+<?xml version="1.0" encoding="utf-8" ?>
+<linker>
+ <assembly fullname="System.Security.AccessControl">
+ <!-- This file should be removed once issue https://github.com/mono/linker/issues/2238 is fixed. -->
+ <type fullname="System.Security.AccessControl.AceEnumerator" />
+ </assembly>
+</linker>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <TargetFrameworks>$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent)</TargetFrameworks>
+ <TargetFrameworks>$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent);netstandard2.0-windows;netstandard2.0;net461-windows</TargetFrameworks>
+ <IsPackable>true</IsPackable>
+ <PackageDescription>Provides base classes that enable managing access and audit control lists on securable objects.
+
+Commonly Used Types:
+System.Security.AccessControl.AccessRule
+System.Security.AccessControl.AuditRule
+System.Security.AccessControl.ObjectAccessRule
+System.Security.AccessControl.ObjectAuditRule
+System.Security.AccessControl.ObjectSecurity</PackageDescription>
<Nullable>enable</Nullable>
</PropertyGroup>
<!-- DesignTimeBuild requires all the TargetFramework Derived Properties to not be present in the first property group. -->
<PropertyGroup>
+ <IsPartialFacadeAssembly Condition="$([MSBuild]::GetTargetFrameworkIdentifier('$(TargetFramework)')) == '.NETFramework'">true</IsPartialFacadeAssembly>
<GeneratePlatformNotSupportedAssemblyMessage Condition="'$(TargetsWindows)' != 'true'">SR.PlatformNotSupported_AccessControl</GeneratePlatformNotSupportedAssemblyMessage>
</PropertyGroup>
- <ItemGroup Condition="'$(TargetsWindows)' == 'true'">
+ <ItemGroup Condition="'$(IsPartialFacadeAssembly)' != 'true' and '$(TargetsWindows)' == 'true'">
<Compile Include="System\Security\AccessControl\ACE.cs" />
<Compile Include="System\Security\AccessControl\ACL.cs" />
<Compile Include="System\Security\AccessControl\CommonObjectSecurity.cs" />
<Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.DuplicateTokenEx_SafeTokenHandle.cs"
Link="Common\Interop\Interop.DuplicateTokenEx_SafeTokenHandle.cs" />
</ItemGroup>
- <ItemGroup>
- <ProjectReference Include="$(LibrariesProjectRoot)System.Security.Principal.Windows\src\System.Security.Principal.Windows.csproj" />
+ <ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'">
<Reference Include="System.Collections" />
<Reference Include="System.Collections.NonGeneric" />
<Reference Include="System.Diagnostics.Debug" />
<Reference Include="System.Runtime" />
<Reference Include="System.Runtime.Extensions" />
<Reference Include="System.Runtime.InteropServices" />
+ <Reference Include="System.Security.Principal.Windows" />
<Reference Include="System.Threading" />
<Reference Include="System.Threading.Thread" />
<Reference Include="Microsoft.Win32.Primitives" />
</ItemGroup>
+ <ItemGroup Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'">
+ <PackageReference Include="System.Security.Principal.Windows" Version="$(SystemSecurityPrincipalWindowsVersion)" />
+ </ItemGroup>
</Project>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <TargetFrameworks>$(NetCoreAppCurrent);netstandard2.0;net461</TargetFrameworks>
+ <TargetFrameworks>$(NetCoreAppCurrent);netstandard2.0;net461-windows</TargetFrameworks>
<IsPackable>true</IsPackable>
<PackageDescription>Provides classes to support the creation and validation of XML digital signatures. The classes in this namespace implement the World Wide Web Consortium Recommendation, "XML-Signature Syntax and Processing", described at http://www.w3.org/TR/xmldsig-core/.
<Reference Include="System.Net.Requests" />
<Reference Include="System.Runtime" />
<Reference Include="System.Runtime.Numerics" />
- <Reference Include="System.Security.AccessControl" />
<Reference Include="System.Security.Cryptography.Algorithms" />
<Reference Include="System.Security.Cryptography.Csp" />
<Reference Include="System.Security.Cryptography.Encoding" />
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <TargetFrameworks>$(NetCoreAppCurrent);net461</TargetFrameworks>
+ <TargetFrameworks>$(NetCoreAppCurrent);net461-windows</TargetFrameworks>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(CommonTestPath)System\Security\Cryptography\PlatformSupport.cs"
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Permissions.SecurityAttribute))]
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Permissions.SecurityPermissionAttribute))]
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Permissions.SecurityPermissionFlag))]
-#if NET6_0_OR_GREATER
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Policy.Evidence))]
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Policy.EvidenceBase))]
-#endif
#if NETCOREAPP
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.IStackWalk))]
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.PermissionSet))]
<Compile Include="System.Security.Permissions.cs" Condition="'$(TargetFramework)' != 'net461'" />
<Compile Include="System.Security.Permissions.Forwards.cs" Condition="'$(TargetFramework)' != 'net461'" />
<Compile Include="System.Security.Permissions.netcoreapp.cs" Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'" />
- <Compile Include="$(LibrariesProjectRoot)System.Security.AccessControl\ref\System.Security.AccessControl.Evidence.cs" Condition="'$(TargetFramework)' != 'net461' and !$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))" />
<Compile Include="System.Security.Permissions.net461.cs" Condition="'$(TargetFramework)' == 'net461'" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net461'">
<Reference Include="System.Xaml" />
<Reference Include="WindowsBase" />
</ItemGroup>
- <ItemGroup Condition="'$(TargetFramework)' != 'net461' and !$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))">
- <PackageReference Include="System.Security.AccessControl" Version="$(SystemSecurityAccessControlVersion)" />
- <!-- Manually reference the transitive dependency to make NuGet pick the package over the transitive project: https://github.com/NuGet/Home/issues/10368 -->
- <PackageReference Include="System.Security.Principal.Windows" Version="$(SystemSecurityPrincipalWindowsVersion)" PrivateAssets="all" />
+ <ItemGroup>
+ <ProjectReference Include="$(LibrariesProjectRoot)System.Security.AccessControl\ref\System.Security.AccessControl.csproj" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'">
<ProjectReference Include="$(LibrariesProjectRoot)System.Windows.Extensions\ref\System.Windows.Extensions.csproj" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == '$(NetCoreAppCurrent)'">
<ProjectReference Include="$(LibrariesProjectRoot)System.Data.Common\ref\System.Data.Common.csproj" />
- <ProjectReference Include="$(LibrariesProjectRoot)System.Security.AccessControl\ref\System.Security.AccessControl.csproj" />
<ProjectReference Include="$(LibrariesProjectRoot)System.Security.Cryptography.Csp\ref\System.Security.Cryptography.Csp.csproj" />
<ProjectReference Include="$(LibrariesProjectRoot)System.Text.RegularExpressions\ref\System.Text.RegularExpressions.csproj" />
</ItemGroup>
<Left>lib/netstandard2.0/System.Security.Permissions.dll</Left>
<Right>lib/netcoreapp3.1/System.Security.Permissions.dll</Right>
</Suppression>
+ <Suppression>
+ <DiagnosticId>CP0001</DiagnosticId>
+ <Target>T:System.Security.Policy.Evidence</Target>
+ <Left>ref/net5.0/System.Security.Permissions.dll</Left>
+ <Right>lib/net5.0/System.Security.Permissions.dll</Right>
+ <IsBaselineSuppression>true</IsBaselineSuppression>
+ </Suppression>
+ <Suppression>
+ <DiagnosticId>CP0001</DiagnosticId>
+ <Target>T:System.Security.Policy.EvidenceBase</Target>
+ <Left>ref/net5.0/System.Security.Permissions.dll</Left>
+ <Right>lib/net5.0/System.Security.Permissions.dll</Right>
+ <IsBaselineSuppression>true</IsBaselineSuppression>
+ </Suppression>
+ <Suppression>
+ <DiagnosticId>CP0001</DiagnosticId>
+ <Target>T:System.Security.Policy.Evidence</Target>
+ <Left>ref/netcoreapp3.0/System.Security.Permissions.dll</Left>
+ <Right>lib/netstandard2.0/System.Security.Permissions.dll</Right>
+ <IsBaselineSuppression>true</IsBaselineSuppression>
+ </Suppression>
+ <Suppression>
+ <DiagnosticId>CP0001</DiagnosticId>
+ <Target>T:System.Security.Policy.EvidenceBase</Target>
+ <Left>ref/netcoreapp3.0/System.Security.Permissions.dll</Left>
+ <Right>lib/netstandard2.0/System.Security.Permissions.dll</Right>
+ <IsBaselineSuppression>true</IsBaselineSuppression>
+ </Suppression>
+ <Suppression>
+ <DiagnosticId>CP0001</DiagnosticId>
+ <Target>T:System.Security.Policy.Evidence</Target>
+ <Left>ref/netstandard2.0/System.Security.Permissions.dll</Left>
+ <Right>lib/netstandard2.0/System.Security.Permissions.dll</Right>
+ <IsBaselineSuppression>true</IsBaselineSuppression>
+ </Suppression>
+ <Suppression>
+ <DiagnosticId>CP0001</DiagnosticId>
+ <Target>T:System.Security.Policy.EvidenceBase</Target>
+ <Left>ref/netstandard2.0/System.Security.Permissions.dll</Left>
+ <Right>lib/netstandard2.0/System.Security.Permissions.dll</Right>
+ <IsBaselineSuppression>true</IsBaselineSuppression>
+ </Suppression>
+ <Suppression>
+ <DiagnosticId>CP0001</DiagnosticId>
+ <Target>T:System.Security.Policy.Evidence</Target>
+ <Left>lib/net5.0/System.Security.Permissions.dll</Left>
+ <Right>lib/net5.0/System.Security.Permissions.dll</Right>
+ <IsBaselineSuppression>true</IsBaselineSuppression>
+ </Suppression>
+ <Suppression>
+ <DiagnosticId>CP0001</DiagnosticId>
+ <Target>T:System.Security.Policy.EvidenceBase</Target>
+ <Left>lib/net5.0/System.Security.Permissions.dll</Left>
+ <Right>lib/net5.0/System.Security.Permissions.dll</Right>
+ <IsBaselineSuppression>true</IsBaselineSuppression>
+ </Suppression>
+ <Suppression>
+ <DiagnosticId>CP0001</DiagnosticId>
+ <Target>T:System.Security.Policy.Evidence</Target>
+ <Left>lib/netcoreapp3.0/System.Security.Permissions.dll</Left>
+ <Right>lib/netstandard2.0/System.Security.Permissions.dll</Right>
+ <IsBaselineSuppression>true</IsBaselineSuppression>
+ </Suppression>
+ <Suppression>
+ <DiagnosticId>CP0001</DiagnosticId>
+ <Target>T:System.Security.Policy.EvidenceBase</Target>
+ <Left>lib/netcoreapp3.0/System.Security.Permissions.dll</Left>
+ <Right>lib/netstandard2.0/System.Security.Permissions.dll</Right>
+ <IsBaselineSuppression>true</IsBaselineSuppression>
+ </Suppression>
+ <Suppression>
+ <DiagnosticId>CP0001</DiagnosticId>
+ <Target>T:System.Security.Policy.Evidence</Target>
+ <Left>lib/netstandard2.0/System.Security.Permissions.dll</Left>
+ <Right>lib/netstandard2.0/System.Security.Permissions.dll</Right>
+ <IsBaselineSuppression>true</IsBaselineSuppression>
+ </Suppression>
+ <Suppression>
+ <DiagnosticId>CP0001</DiagnosticId>
+ <Target>T:System.Security.Policy.EvidenceBase</Target>
+ <Left>lib/netstandard2.0/System.Security.Permissions.dll</Left>
+ <Right>lib/netstandard2.0/System.Security.Permissions.dll</Right>
+ <IsBaselineSuppression>true</IsBaselineSuppression>
+ </Suppression>
</Suppressions>
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<IsPartialFacadeAssembly>true</IsPartialFacadeAssembly>
- <TargetFrameworks>$(NetCoreAppCurrent);net5.0;netcoreapp3.1;netstandard2.0;net461</TargetFrameworks>
+ <TargetFrameworks>$(NetCoreAppCurrent);net5.0;netcoreapp3.1;netstandard2.0;net461-windows</TargetFrameworks>
<IsPackable>true</IsPackable>
<PackageDescription>Provides types supporting Code Access Security (CAS).</PackageDescription>
</PropertyGroup>
- <ItemGroup Condition="'$(TargetFramework)' != 'net461'">
+ <ItemGroup Condition="'$(TargetFrameworkIdentifier)' != '.NETFramework'">
<Compile Include="System\ApplicationIdentity.cs" />
<Compile Include="System\Configuration\ConfigurationPermission.cs" />
<Compile Include="System\Configuration\ConfigurationPermissionAttribute.cs" />
<Compile Include="System\Security\Policy\ApplicationVersionMatch.cs" />
<Compile Include="System\Security\Policy\CodeConnectAccess.cs" />
<Compile Include="System\Security\Policy\CodeGroup.cs" />
- <Compile Include="$(LibrariesProjectRoot)System.Security.AccessControl\src\System\Security\Policy\Evidence.cs" Condition="!$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))" />
- <Compile Include="$(LibrariesProjectRoot)System.Security.AccessControl\src\System\Security\Policy\EvidenceBase.cs" Condition="!$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))" />
<Compile Include="System\Security\Policy\FileCodeGroup.cs" />
<Compile Include="System\Security\Policy\FirstMatchCodeGroup.cs" />
<Compile Include="System\Security\Policy\GacInstalled.cs" />
<Compile Include="$(LibrariesProjectRoot)System.Private.CoreLib\src\System\Security\Permissions\PermissionState.cs"
Link="System\Security\Permissions\PermissionState.cs" />
</ItemGroup>
- <ItemGroup Condition="!$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))">
- <PackageReference Include="System.Security.AccessControl" Version="$(SystemSecurityAccessControlVersion)" />
+ <ItemGroup>
+ <ProjectReference Include="$(LibrariesProjectRoot)System.Security.AccessControl\src\System.Security.AccessControl.csproj" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'">
<ProjectReference Include="$(LibrariesProjectRoot)System.Windows.Extensions\src\System.Windows.Extensions.csproj" />
<Reference Include="System.Resources.ResourceManager" />
<Reference Include="System.Runtime" />
<Reference Include="System.Runtime.Extensions" />
- <Reference Include="System.Security.AccessControl" Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))" />
<Reference Include="System.Security.Cryptography.Algorithms" />
<Reference Include="System.Security.Cryptography.Csp" />
<Reference Include="System.Security.Cryptography.Primitives" />
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <TargetFrameworks>$(NetCoreAppCurrent);net461-windows</TargetFrameworks>
+ <TargetFrameworks>$(NetCoreAppCurrent);net461</TargetFrameworks>
</PropertyGroup>
<ItemGroup>
<Compile Include="BasicScenarioTests.cs" />
<PropertyGroup>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<OutputType>Exe</OutputType>
- <TargetFrameworks>$(NetCoreAppCurrent);net461</TargetFrameworks>
+ <TargetFrameworks>$(NetCoreAppCurrent);net461-windows</TargetFrameworks>
<Nullable>annotations</Nullable>
</PropertyGroup>
<ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\System.ServiceProcess.ServiceController.csproj" />
</ItemGroup>
+ <ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'">
+ <Reference Include="System.ServiceProcess" />
+ </ItemGroup>
</Project>
\ No newline at end of file
<ProjectReference Include="$(LibrariesProjectRoot)System.Threading\ref\System.Threading.csproj" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
- <PackageReference Include="System.Security.AccessControl" Version="$(SystemSecurityAccessControlVersion)" />
+ <ProjectReference Include="$(LibrariesProjectRoot)System.Security.AccessControl\ref\System.Security.AccessControl.csproj" />
<PackageReference Include="System.Security.Principal.Windows" Version="$(SystemSecurityPrincipalWindowsVersion)" />
</ItemGroup>
</Project>
\ No newline at end of file
<Compile Include="System\Threading\SemaphoreAcl.net46.cs" />
<Compile Include="System\Threading\ThreadingAclExtensions.net46.cs" />
</ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="$(LibrariesProjectRoot)System.Security.AccessControl\src\System.Security.AccessControl.csproj" />
+ </ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'">
<Reference Include="System.Runtime" />
<Reference Include="System.Runtime.InteropServices" />
- <Reference Include="System.Security.AccessControl" />
<Reference Include="System.Security.Principal.Windows" />
<Reference Include="System.Threading" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'">
- <PackageReference Include="System.Security.AccessControl" Version="$(SystemSecurityAccessControlVersion)" />
<PackageReference Include="System.Security.Principal.Windows" Version="$(SystemSecurityPrincipalWindowsVersion)" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETStandard'">