diff --git a/src/GitHub.Exports/Properties/AssemblyInfo.cs b/src/GitHub.Exports/Properties/AssemblyInfo.cs index ef1432b9dd..a36a1082dc 100644 --- a/src/GitHub.Exports/Properties/AssemblyInfo.cs +++ b/src/GitHub.Exports/Properties/AssemblyInfo.cs @@ -5,4 +5,3 @@ [assembly: AssemblyTitle("GitHub.Exports")] [assembly: AssemblyDescription("GitHub interfaces for mef exports")] [assembly: Guid("9aea02db-02b5-409c-b0ca-115d05331a6b")] -[assembly: InternalsVisibleTo("MetricsTests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100c1a49bb6a01873a4e5434cbaa9993f5a75d3ba66fecfff4d85066c7094913d43f6f9bb706d2eb65f4990a7adfe7321e120ba8be5a8367fc5551c0a6eeb4850c5646377d314142abe69a5fb8ec0957a63ba5893901adb5b4cf0eb7f7e5861376e0cb4fd975576094b2fb4843df9c186eb17232365291b93e17f5e2b6cc1cda2c2")] \ No newline at end of file diff --git a/src/GitHub.Exports/Services/MetricsService.cs b/src/GitHub.Exports/Services/MetricsService.cs index 08c836e7fd..9f1e1231b7 100644 --- a/src/GitHub.Exports/Services/MetricsService.cs +++ b/src/GitHub.Exports/Services/MetricsService.cs @@ -99,7 +99,7 @@ public Task SendOptIn() */ } - internal static StringContent SerializeRequest(UsageModel model) + public static StringContent SerializeRequest(UsageModel model) { var serializer = new SimpleJsonSerializer(); var dictionary = new Dictionary @@ -107,6 +107,7 @@ internal static StringContent SerializeRequest(UsageModel model) {ToJsonPropertyName("Dimensions"), ToModelDictionary(model.Dimensions) }, {ToJsonPropertyName("Measures"), ToModelDictionary(model.Measures) } }; + return new StringContent(serializer.Serialize(dictionary), Encoding.UTF8, "application/json"); } diff --git a/test/MetricsTests/MetricsServer/MetricsServer.csproj b/test/MetricsTests/MetricsServer/MetricsServer.csproj index ee1f37537c..7c6bf3f9e2 100644 --- a/test/MetricsTests/MetricsServer/MetricsServer.csproj +++ b/test/MetricsTests/MetricsServer/MetricsServer.csproj @@ -39,10 +39,11 @@ - true + false - key.snk + + @@ -75,7 +76,6 @@ - @@ -85,13 +85,6 @@ - - - - This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - -