diff --git a/src/MusicStore/Interfaces/AssemblyNeutralAttribute.cs b/src/MusicStore/Interfaces/AssemblyNeutralAttribute.cs deleted file mode 100644 index 5b71533c10..0000000000 --- a/src/MusicStore/Interfaces/AssemblyNeutralAttribute.cs +++ /dev/null @@ -1,11 +0,0 @@ -using System; -using System.Runtime.Versioning; - -namespace Microsoft.Framework.Runtime -{ - [AssemblyNeutral] - [AttributeUsage(AttributeTargets.All, Inherited = false, AllowMultiple = true)] - public sealed class AssemblyNeutralAttribute : Attribute - { - } -} \ No newline at end of file diff --git a/src/MusicStore/Interfaces/IApplicationEnvironment.cs b/src/MusicStore/Interfaces/IApplicationEnvironment.cs deleted file mode 100644 index 664391416d..0000000000 --- a/src/MusicStore/Interfaces/IApplicationEnvironment.cs +++ /dev/null @@ -1,17 +0,0 @@ -using System; -using System.Runtime.Versioning; - -namespace Microsoft.Framework.Runtime -{ - /// - /// Service provided by the host containing application environment details. - /// - [AssemblyNeutral] - public interface IApplicationEnvironment - { - string ApplicationName { get; } - string Version { get; } - string ApplicationBasePath { get; } - FrameworkName TargetFramework { get; } - } -} \ No newline at end of file diff --git a/src/MusicStore/Startup.cs b/src/MusicStore/Startup.cs index b08cabd445..250ae34a20 100644 --- a/src/MusicStore/Startup.cs +++ b/src/MusicStore/Startup.cs @@ -35,9 +35,8 @@ public class Startup * Below code demonstrates usage of multiple configuration sources. For instance a setting say 'setting1' is found in both the registered sources, * then the later source will win. By this way a Local config can be overridden by a different setting while deployed remotely. */ - var applicationEnvironment = app.ApplicationServices.GetService(); var configuration = new Configuration(); - configuration.AddJsonFile(Path.Combine(applicationEnvironment.ApplicationBasePath, "LocalConfig.json")); + configuration.AddJsonFile("LocalConfig.json"); configuration.AddEnvironmentVariables(); //All environment variables in the process's context flow in as configuration values. services.AddInstance(configuration);