diff --git a/Configuration.sln b/Configuration.sln
index 62b1ac7..0370cc9 100644
--- a/Configuration.sln
+++ b/Configuration.sln
@@ -27,12 +27,6 @@ Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.Framework.Configu
EndProject
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.Framework.ConfigurationModel.Test.Common", "test\Microsoft.Framework.ConfigurationModel.Test.Common\Microsoft.Framework.ConfigurationModel.Test.Common.xproj", "{29C120E5-F682-4BFB-826B-040A594802CA}"
EndProject
-Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.Framework.ConfigurationModel.UserSecrets", "src\Microsoft.Framework.ConfigurationModel.UserSecrets\Microsoft.Framework.ConfigurationModel.UserSecrets.xproj", "{58B6443B-1278-4DF9-B7BB-DDF3BFFCF868}"
-EndProject
-Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "SecretManager", "src\SecretManager\SecretManager.xproj", "{8730E848-CA0F-4E0A-9A2F-BC22AD0B2C4E}"
-EndProject
-Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "SecretManager.Tests", "test\SecretManager.Tests\SecretManager.Tests.xproj", "{113EBBD2-E857-4CAF-9B53-7A8742CBCD4A}"
-EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -147,42 +141,6 @@ Global
{29C120E5-F682-4BFB-826B-040A594802CA}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{29C120E5-F682-4BFB-826B-040A594802CA}.Release|x86.ActiveCfg = Release|Any CPU
{29C120E5-F682-4BFB-826B-040A594802CA}.Release|x86.Build.0 = Release|Any CPU
- {58B6443B-1278-4DF9-B7BB-DDF3BFFCF868}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {58B6443B-1278-4DF9-B7BB-DDF3BFFCF868}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {58B6443B-1278-4DF9-B7BB-DDF3BFFCF868}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
- {58B6443B-1278-4DF9-B7BB-DDF3BFFCF868}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
- {58B6443B-1278-4DF9-B7BB-DDF3BFFCF868}.Debug|x86.ActiveCfg = Debug|Any CPU
- {58B6443B-1278-4DF9-B7BB-DDF3BFFCF868}.Debug|x86.Build.0 = Debug|Any CPU
- {58B6443B-1278-4DF9-B7BB-DDF3BFFCF868}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {58B6443B-1278-4DF9-B7BB-DDF3BFFCF868}.Release|Any CPU.Build.0 = Release|Any CPU
- {58B6443B-1278-4DF9-B7BB-DDF3BFFCF868}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
- {58B6443B-1278-4DF9-B7BB-DDF3BFFCF868}.Release|Mixed Platforms.Build.0 = Release|Any CPU
- {58B6443B-1278-4DF9-B7BB-DDF3BFFCF868}.Release|x86.ActiveCfg = Release|Any CPU
- {58B6443B-1278-4DF9-B7BB-DDF3BFFCF868}.Release|x86.Build.0 = Release|Any CPU
- {8730E848-CA0F-4E0A-9A2F-BC22AD0B2C4E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {8730E848-CA0F-4E0A-9A2F-BC22AD0B2C4E}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {8730E848-CA0F-4E0A-9A2F-BC22AD0B2C4E}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
- {8730E848-CA0F-4E0A-9A2F-BC22AD0B2C4E}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
- {8730E848-CA0F-4E0A-9A2F-BC22AD0B2C4E}.Debug|x86.ActiveCfg = Debug|Any CPU
- {8730E848-CA0F-4E0A-9A2F-BC22AD0B2C4E}.Debug|x86.Build.0 = Debug|Any CPU
- {8730E848-CA0F-4E0A-9A2F-BC22AD0B2C4E}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {8730E848-CA0F-4E0A-9A2F-BC22AD0B2C4E}.Release|Any CPU.Build.0 = Release|Any CPU
- {8730E848-CA0F-4E0A-9A2F-BC22AD0B2C4E}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
- {8730E848-CA0F-4E0A-9A2F-BC22AD0B2C4E}.Release|Mixed Platforms.Build.0 = Release|Any CPU
- {8730E848-CA0F-4E0A-9A2F-BC22AD0B2C4E}.Release|x86.ActiveCfg = Release|Any CPU
- {8730E848-CA0F-4E0A-9A2F-BC22AD0B2C4E}.Release|x86.Build.0 = Release|Any CPU
- {113EBBD2-E857-4CAF-9B53-7A8742CBCD4A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {113EBBD2-E857-4CAF-9B53-7A8742CBCD4A}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {113EBBD2-E857-4CAF-9B53-7A8742CBCD4A}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
- {113EBBD2-E857-4CAF-9B53-7A8742CBCD4A}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
- {113EBBD2-E857-4CAF-9B53-7A8742CBCD4A}.Debug|x86.ActiveCfg = Debug|Any CPU
- {113EBBD2-E857-4CAF-9B53-7A8742CBCD4A}.Debug|x86.Build.0 = Debug|Any CPU
- {113EBBD2-E857-4CAF-9B53-7A8742CBCD4A}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {113EBBD2-E857-4CAF-9B53-7A8742CBCD4A}.Release|Any CPU.Build.0 = Release|Any CPU
- {113EBBD2-E857-4CAF-9B53-7A8742CBCD4A}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
- {113EBBD2-E857-4CAF-9B53-7A8742CBCD4A}.Release|Mixed Platforms.Build.0 = Release|Any CPU
- {113EBBD2-E857-4CAF-9B53-7A8742CBCD4A}.Release|x86.ActiveCfg = Release|Any CPU
- {113EBBD2-E857-4CAF-9B53-7A8742CBCD4A}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@@ -198,8 +156,5 @@ Global
{8967162D-4966-40A7-9970-395A206732AC} = {F141E2D0-F9B8-4ADB-A19A-7B6FF4CA19A1}
{3F1CB08E-9FBD-4CAE-A78A-4AC43F24FC49} = {F141E2D0-F9B8-4ADB-A19A-7B6FF4CA19A1}
{29C120E5-F682-4BFB-826B-040A594802CA} = {B54371FF-B920-46C8-8D55-6B19DBB43EBF}
- {58B6443B-1278-4DF9-B7BB-DDF3BFFCF868} = {F141E2D0-F9B8-4ADB-A19A-7B6FF4CA19A1}
- {8730E848-CA0F-4E0A-9A2F-BC22AD0B2C4E} = {F141E2D0-F9B8-4ADB-A19A-7B6FF4CA19A1}
- {113EBBD2-E857-4CAF-9B53-7A8742CBCD4A} = {B54371FF-B920-46C8-8D55-6B19DBB43EBF}
EndGlobalSection
EndGlobal
diff --git a/src/Microsoft.Framework.ConfigurationModel.UserSecrets/ConfigurationExtensions.cs b/src/Microsoft.Framework.ConfigurationModel.UserSecrets/ConfigurationExtensions.cs
deleted file mode 100644
index e5a357f..0000000
--- a/src/Microsoft.Framework.ConfigurationModel.UserSecrets/ConfigurationExtensions.cs
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
-// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
-
-using System.IO;
-using Microsoft.Framework.ConfigurationModel.UserSecrets;
-using Microsoft.Framework.Internal;
-using Microsoft.Framework.Runtime;
-using Microsoft.Framework.Runtime.Infrastructure;
-
-namespace Microsoft.Framework.ConfigurationModel
-{
- public static class ConfigurationExtensions
- {
- ///
- /// Adds the user secrets configuration source.
- ///
- ///
- ///
- public static IConfigurationSourceRoot AddUserSecrets([NotNull]this IConfigurationSourceRoot configuration)
- {
- var appEnv = (IApplicationEnvironment)CallContextServiceLocator.Locator.ServiceProvider.GetService(typeof(IApplicationEnvironment));
- var secretPath = PathHelper.GetSecretsPath(appEnv.ApplicationBasePath);
-
- if (!File.Exists(secretPath))
- {
- // TODO: Use the optional config add after that's available?.
- return configuration;
- }
-
- return configuration.AddJsonFile(secretPath);
- }
-
- ///
- /// Adds the user secrets configuration source with specified secrets id.
- ///
- ///
- ///
- public static IConfigurationSourceRoot AddUserSecrets([NotNull]this IConfigurationSourceRoot configuration, [NotNull]string userSecretsId)
- {
- var secretPath = PathHelper.GetSecretsPathFromSecretsId(userSecretsId);
-
- if (!File.Exists(secretPath))
- {
- // TODO: Use the optional config add after that's available?.
- return configuration;
- }
-
- return configuration.AddJsonFile(secretPath);
- }
- }
-}
\ No newline at end of file
diff --git a/src/Microsoft.Framework.ConfigurationModel.UserSecrets/Microsoft.Framework.ConfigurationModel.UserSecrets.xproj b/src/Microsoft.Framework.ConfigurationModel.UserSecrets/Microsoft.Framework.ConfigurationModel.UserSecrets.xproj
deleted file mode 100644
index 3acb550..0000000
--- a/src/Microsoft.Framework.ConfigurationModel.UserSecrets/Microsoft.Framework.ConfigurationModel.UserSecrets.xproj
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
- 14.0
- $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)
-
-
-
- 58b6443b-1278-4df9-b7bb-ddf3bffcf868
-
-
-
-
-
-
-
- 2.0
-
-
-
\ No newline at end of file
diff --git a/src/Microsoft.Framework.ConfigurationModel.UserSecrets/PathHelper.cs b/src/Microsoft.Framework.ConfigurationModel.UserSecrets/PathHelper.cs
deleted file mode 100644
index b988837..0000000
--- a/src/Microsoft.Framework.ConfigurationModel.UserSecrets/PathHelper.cs
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
-// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
-
-using System;
-using System.IO;
-using Microsoft.Framework.Internal;
-using Newtonsoft.Json.Linq;
-
-namespace Microsoft.Framework.ConfigurationModel.UserSecrets
-{
- public class PathHelper
- {
- private const string Secrets_File_Name = "secrets.json";
-
- public static string GetSecretsPath([NotNull]string projectPath)
- {
- var projectFilePath = Path.Combine(projectPath, "project.json");
-
- if (!File.Exists(projectFilePath))
- {
- throw new InvalidOperationException(
- string.Format(Resources.Error_Missing_Project_Json, projectFilePath));
- }
-
- var obj = JObject.Parse(File.ReadAllText(projectFilePath));
- var userSecretsId = obj.Value("userSecretsId");
-
- if (string.IsNullOrEmpty(userSecretsId))
- {
- throw new InvalidOperationException(
- string.Format(Resources.Error_Missing_UserSecretId_In_Project_Json, projectFilePath));
- }
-
- return GetSecretsPathFromSecretsId(userSecretsId);
- }
-
- public static string GetSecretsPathFromSecretsId([NotNull]string userSecretsId)
- {
- var badCharIndex = userSecretsId.IndexOfAny(Path.GetInvalidPathChars());
- if (badCharIndex != -1)
- {
- throw new InvalidOperationException(
- string.Format(
- Resources.Error_Invalid_Character_In_UserSecrets_Id,
- userSecretsId[badCharIndex],
- badCharIndex));
- }
-
- var root = Environment.GetEnvironmentVariable("APPDATA") ?? // On Windows it goes to %APPDATA%\Microsoft\UserSecrets\
- Environment.GetEnvironmentVariable("HOME"); // On Mac/Linux it goes to ~/.microsoft/usersecrets/
-
- if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("APPDATA")))
- {
- return Path.Combine(root, "Microsoft", "UserSecrets", userSecretsId, Secrets_File_Name);
- }
- else
- {
- return Path.Combine(root, ".microsoft", "usersecrets", userSecretsId, Secrets_File_Name);
- }
- }
- }
-}
\ No newline at end of file
diff --git a/src/Microsoft.Framework.ConfigurationModel.UserSecrets/Properties/Resources.Designer.cs b/src/Microsoft.Framework.ConfigurationModel.UserSecrets/Properties/Resources.Designer.cs
deleted file mode 100644
index 13c3c6f..0000000
--- a/src/Microsoft.Framework.ConfigurationModel.UserSecrets/Properties/Resources.Designer.cs
+++ /dev/null
@@ -1,78 +0,0 @@
-//
-namespace Microsoft.Framework.ConfigurationModel.UserSecrets
-{
- using System.Globalization;
- using System.Reflection;
- using System.Resources;
-
- internal static class Resources
- {
- private static readonly ResourceManager _resourceManager
- = new ResourceManager("Microsoft.Framework.ConfigurationModel.UserSecrets.Resources", typeof(Resources).GetTypeInfo().Assembly);
-
- ///
- /// Invalid character '{0}' found in 'userSecretsId' value at index '{1}'.
- ///
- internal static string Error_Invalid_Character_In_UserSecrets_Id
- {
- get { return GetString("Error_Invalid_Character_In_UserSecrets_Id"); }
- }
-
- ///
- /// Invalid character '{0}' found in 'userSecretsId' value at index '{1}'.
- ///
- internal static string FormatError_Invalid_Character_In_UserSecrets_Id(object p0, object p1)
- {
- return string.Format(CultureInfo.CurrentCulture, GetString("Error_Invalid_Character_In_UserSecrets_Id"), p0, p1);
- }
-
- ///
- /// Unable to locate a project.json at '{0}'.
- ///
- internal static string Error_Missing_Project_Json
- {
- get { return GetString("Error_Missing_Project_Json"); }
- }
-
- ///
- /// Unable to locate a project.json at '{0}'.
- ///
- internal static string FormatError_Missing_Project_Json(object p0)
- {
- return string.Format(CultureInfo.CurrentCulture, GetString("Error_Missing_Project_Json"), p0);
- }
-
- ///
- /// Missing 'userSecretsId' in '{0}'.
- ///
- internal static string Error_Missing_UserSecretId_In_Project_Json
- {
- get { return GetString("Error_Missing_UserSecretId_In_Project_Json"); }
- }
-
- ///
- /// Missing 'userSecretsId' in '{0}'.
- ///
- internal static string FormatError_Missing_UserSecretId_In_Project_Json(object p0)
- {
- return string.Format(CultureInfo.CurrentCulture, GetString("Error_Missing_UserSecretId_In_Project_Json"), p0);
- }
-
- private static string GetString(string name, params string[] formatterNames)
- {
- var value = _resourceManager.GetString(name);
-
- System.Diagnostics.Debug.Assert(value != null);
-
- if (formatterNames != null)
- {
- for (var i = 0; i < formatterNames.Length; i++)
- {
- value = value.Replace("{" + formatterNames[i] + "}", "{" + i + "}");
- }
- }
-
- return value;
- }
- }
-}
diff --git a/src/Microsoft.Framework.ConfigurationModel.UserSecrets/Resources.resx b/src/Microsoft.Framework.ConfigurationModel.UserSecrets/Resources.resx
deleted file mode 100644
index eedd189..0000000
--- a/src/Microsoft.Framework.ConfigurationModel.UserSecrets/Resources.resx
+++ /dev/null
@@ -1,129 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- Invalid character '{0}' found in 'userSecretsId' value at index '{1}'.
-
-
- Unable to locate a project.json at '{0}'.
-
-
- Missing 'userSecretsId' in '{0}'.
-
-
\ No newline at end of file
diff --git a/src/Microsoft.Framework.ConfigurationModel.UserSecrets/project.json b/src/Microsoft.Framework.ConfigurationModel.UserSecrets/project.json
deleted file mode 100644
index 7be6fbc..0000000
--- a/src/Microsoft.Framework.ConfigurationModel.UserSecrets/project.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "version": "1.0.0-*",
- "description": "ASP.NET 5 Configuration extensions to load user secrets.",
- "dependencies": {
- "Microsoft.Framework.ConfigurationModel.Json": "1.0.0-*",
- "Microsoft.Framework.NotNullAttribute.Internal": { "type": "build", "version": "1.0.0-*" }
- },
- "frameworks": {
- "dnx451": { },
- "dnxcore50": {
- "dependencies": {
- "System.Runtime": "4.0.20-beta-*"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/src/SecretManager/CommandOutputLogger.cs b/src/SecretManager/CommandOutputLogger.cs
deleted file mode 100644
index 311ccf0..0000000
--- a/src/SecretManager/CommandOutputLogger.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
-// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
-
-using System;
-using Microsoft.Framework.Logging;
-using Microsoft.Framework.Runtime.Common.CommandLine;
-
-namespace SecretManager
-{
- ///
- /// Logger to print formatted command output.
- ///
- public class CommandOutputLogger : ILogger
- {
- private readonly CommandOutputProvider _provider;
-
- public CommandOutputLogger(CommandOutputProvider commandOutputProvider)
- {
- _provider = commandOutputProvider;
- }
-
- public IDisposable BeginScope(object state)
- {
- throw new NotImplementedException();
- }
-
- public bool IsEnabled(LogLevel logLevel)
- {
- if (logLevel < _provider.LogLevel)
- {
- return false;
- }
-
- return true;
- }
-
- public void Log(LogLevel logLevel, int eventId, object state, Exception exception, Func