* Add pkg for System.Diagnostics.PerformanceCounter
This change adds System.Diagnostics.PerformanceCounter to the compat
pack.
* Add AllXamarinFrameworks to PerformanceCounter pkgproj
* Update PerformanceCounter pkgproj for xamarin/mono
* Change InboxOnTargetFramework to AllXamarinFrameworks
Commit migrated from https://github.com/dotnet/corefx/commit/
c17b2dd417eaacbf5640bb218f7d14b16826f86c
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
+ <ItemGroup>
+ <ProjectReference Include="..\ref\System.Diagnostics.PerformanceCounter.csproj">
+ <SupportedFramework>net461;netcoreapp2.0;$(AllXamarinFrameworks)</SupportedFramework>
+ </ProjectReference>
+ <ProjectReference Include="..\src\System.Diagnostics.PerformanceCounter.csproj" />
+ </ItemGroup>
+ <ItemGroup>
+ <InboxOnTargetFramework Include="$(AllXamarinFrameworks)" />
+ </ItemGroup>
+ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
+</Project>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<BuildConfigurations>
- netcoreapp-Windows_NT;
+ netcoreapp2.0-Windows_NT;
netstandard;
netfx;
</BuildConfigurations>
<GeneratePlatformNotSupportedAssemblyMessage Condition="'$(TargetGroup)' == 'netstandard'">SR.PlatformNotSupported_PerfCounters</GeneratePlatformNotSupportedAssemblyMessage>
<UWPCompatible>false</UWPCompatible>
</PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netcoreapp-Windows_NT-Debug|AnyCPU'" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netcoreapp-Windows_NT-Release|AnyCPU'" />
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netcoreapp2.0-Windows_NT-Debug|AnyCPU'" />
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netcoreapp2.0-Windows_NT-Release|AnyCPU'" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netfx-Debug|AnyCPU'" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netfx-Release|AnyCPU'" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netstandard-Debug|AnyCPU'" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netstandard-Release|AnyCPU'" />
- <ItemGroup Condition="'$(TargetGroup)' == 'netcoreapp'">
+ <ItemGroup Condition="'$(TargetGroup)' == 'netcoreapp2.0'">
<Compile Include="System\Diagnostics\DiagnosticsConfiguration.cs" />
<Compile Include="System\Diagnostics\CounterCreationData.cs" />
<Compile Include="System\Diagnostics\CounterCreationDataCollection.cs" />
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<BuildConfigurations>
- netcoreapp-Windows_NT;
+ netcoreapp2.0-Windows_NT;
netfx;
</BuildConfigurations>
</PropertyGroup>
<PrereleaseLibraryPackage Include="System.Data.Odbc" />
<PrereleaseLibraryPackage Include="System.Drawing.Common" />
<PrereleaseLibraryPackage Include="System.Diagnostics.EventLog" />
+ <PrereleaseLibraryPackage Include="System.Diagnostics.PerformanceCounter" />
</ItemGroup>
<ItemGroup>
"xamarinmac20": "Any",
"xamarintvos10": "Any",
"xamarinwatchos10": "Any"
+ },
+ "AssemblyVersionInPackageVersion": {
+ "4.0.0.0": "4.5.0"
}
},
"System.Diagnostics.Process": {
"System.Xml.XDocument"
]
}
-}
\ No newline at end of file
+}
]
},
{
+ "Name": "System.Diagnostics.PerformanceCounter",
+ "Description": "Provides the System.Diagnostics.PerformanceCounter class, which allows access to Windows performance counters.",
+ "CommonTypes": [
+ "System.Diagnostics.PerformanceCounter"
+ ]
+ },
+ {
"Name": "System.Diagnostics.Process",
"Description": "Provides the System.Diagnostics.Process class, which allows interaction with local and remote processes.",
"CommonTypes": [