diff --git a/src/Microsoft.VisualStudio.LanguageServices.Razor/DefaultRazorEngineAssemblyResolver.cs b/src/Microsoft.VisualStudio.LanguageServices.Razor/DefaultRazorEngineAssemblyResolver.cs index 6248495d04..13f600841d 100644 --- a/src/Microsoft.VisualStudio.LanguageServices.Razor/DefaultRazorEngineAssemblyResolver.cs +++ b/src/Microsoft.VisualStudio.LanguageServices.Razor/DefaultRazorEngineAssemblyResolver.cs @@ -1,6 +1,7 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +#if RAZOR_EXTENSION_DEVELOPER_MODE using System; using System.Collections.Generic; using System.Composition; @@ -149,3 +150,4 @@ namespace Microsoft.VisualStudio.LanguageServices.Razor } } } +#endif \ No newline at end of file diff --git a/src/Microsoft.VisualStudio.LanguageServices.Razor/DefaultRazorEngineDirectiveResolver.cs b/src/Microsoft.VisualStudio.LanguageServices.Razor/DefaultRazorEngineDirectiveResolver.cs index 1b56f431be..1e7f62fa7e 100644 --- a/src/Microsoft.VisualStudio.LanguageServices.Razor/DefaultRazorEngineDirectiveResolver.cs +++ b/src/Microsoft.VisualStudio.LanguageServices.Razor/DefaultRazorEngineDirectiveResolver.cs @@ -1,6 +1,7 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +#if RAZOR_EXTENSION_DEVELOPER_MODE using System; using System.Collections.Generic; using System.Composition; @@ -36,3 +37,4 @@ namespace Microsoft.VisualStudio.LanguageServices.Razor } } } +#endif \ No newline at end of file diff --git a/src/Microsoft.VisualStudio.LanguageServices.Razor/DefaultRazorEngineDocumentGenerator.cs b/src/Microsoft.VisualStudio.LanguageServices.Razor/DefaultRazorEngineDocumentGenerator.cs index 76e43d789f..86967c843d 100644 --- a/src/Microsoft.VisualStudio.LanguageServices.Razor/DefaultRazorEngineDocumentGenerator.cs +++ b/src/Microsoft.VisualStudio.LanguageServices.Razor/DefaultRazorEngineDocumentGenerator.cs @@ -1,6 +1,7 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +#if RAZOR_EXTENSION_DEVELOPER_MODE using System; using System.Composition; using System.Threading; @@ -34,3 +35,4 @@ namespace Microsoft.VisualStudio.LanguageServices.Razor } } } +#endif \ No newline at end of file diff --git a/src/Microsoft.VisualStudio.LanguageServices.Razor/IRazorEngineAssemblyResolver.cs b/src/Microsoft.VisualStudio.LanguageServices.Razor/IRazorEngineAssemblyResolver.cs index e3309026ba..7397bae937 100644 --- a/src/Microsoft.VisualStudio.LanguageServices.Razor/IRazorEngineAssemblyResolver.cs +++ b/src/Microsoft.VisualStudio.LanguageServices.Razor/IRazorEngineAssemblyResolver.cs @@ -1,6 +1,7 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +#if RAZOR_EXTENSION_DEVELOPER_MODE using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.CodeAnalysis; @@ -12,3 +13,4 @@ namespace Microsoft.VisualStudio.LanguageServices.Razor Task> GetRazorEngineAssembliesAsync(Project project); } } +#endif \ No newline at end of file diff --git a/src/Microsoft.VisualStudio.LanguageServices.Razor/IRazorEngineDirectiveResolver.cs b/src/Microsoft.VisualStudio.LanguageServices.Razor/IRazorEngineDirectiveResolver.cs index 15468ee973..f4299cdbf6 100644 --- a/src/Microsoft.VisualStudio.LanguageServices.Razor/IRazorEngineDirectiveResolver.cs +++ b/src/Microsoft.VisualStudio.LanguageServices.Razor/IRazorEngineDirectiveResolver.cs @@ -1,6 +1,7 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +#if RAZOR_EXTENSION_DEVELOPER_MODE using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; @@ -14,3 +15,4 @@ namespace Microsoft.VisualStudio.LanguageServices.Razor Task> GetRazorEngineDirectivesAsync(Workspace workspace, Project project, CancellationToken cancellationToken = default(CancellationToken)); } } +#endif \ No newline at end of file diff --git a/src/Microsoft.VisualStudio.LanguageServices.Razor/IRazorEngineDocumentGenerator.cs b/src/Microsoft.VisualStudio.LanguageServices.Razor/IRazorEngineDocumentGenerator.cs index dcae554f90..64cef94b0c 100644 --- a/src/Microsoft.VisualStudio.LanguageServices.Razor/IRazorEngineDocumentGenerator.cs +++ b/src/Microsoft.VisualStudio.LanguageServices.Razor/IRazorEngineDocumentGenerator.cs @@ -1,6 +1,7 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +#if RAZOR_EXTENSION_DEVELOPER_MODE using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis; @@ -12,3 +13,4 @@ namespace Microsoft.VisualStudio.LanguageServices.Razor Task GenerateDocumentAsync(Workspace workspace, Project project, string filename, string text, CancellationToken cancellationToken = default(CancellationToken)); } } +#endif \ No newline at end of file diff --git a/src/Microsoft.VisualStudio.LanguageServices.Razor/Microsoft.VisualStudio.LanguageServices.Razor.csproj b/src/Microsoft.VisualStudio.LanguageServices.Razor/Microsoft.VisualStudio.LanguageServices.Razor.csproj index 9c0b7060de..4575d1bbda 100644 --- a/src/Microsoft.VisualStudio.LanguageServices.Razor/Microsoft.VisualStudio.LanguageServices.Razor.csproj +++ b/src/Microsoft.VisualStudio.LanguageServices.Razor/Microsoft.VisualStudio.LanguageServices.Razor.csproj @@ -14,6 +14,10 @@ $(PackageTargetFallback);portable-net45+win8+wp8+wpa81; + + $(DefineConstants);RAZOR_EXTENSION_DEVELOPER_MODE + + diff --git a/src/Microsoft.VisualStudio.LanguageServices.Razor/RazorEngineAssembly.cs b/src/Microsoft.VisualStudio.LanguageServices.Razor/RazorEngineAssembly.cs index fe9e4f2231..98f7fce482 100644 --- a/src/Microsoft.VisualStudio.LanguageServices.Razor/RazorEngineAssembly.cs +++ b/src/Microsoft.VisualStudio.LanguageServices.Razor/RazorEngineAssembly.cs @@ -1,6 +1,7 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +#if RAZOR_EXTENSION_DEVELOPER_MODE using System; using Microsoft.CodeAnalysis; @@ -29,3 +30,4 @@ namespace Microsoft.VisualStudio.LanguageServices.Razor public AssemblyIdentity Identity { get; } } } +#endif \ No newline at end of file diff --git a/src/Microsoft.VisualStudio.LanguageServices.Razor/RazorEngineDocument.cs b/src/Microsoft.VisualStudio.LanguageServices.Razor/RazorEngineDocument.cs index af186e46ce..6e0de2da42 100644 --- a/src/Microsoft.VisualStudio.LanguageServices.Razor/RazorEngineDocument.cs +++ b/src/Microsoft.VisualStudio.LanguageServices.Razor/RazorEngineDocument.cs @@ -1,10 +1,12 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +#if RAZOR_EXTENSION_DEVELOPER_MODE namespace Microsoft.VisualStudio.LanguageServices.Razor { internal class RazorEngineDocument { public string Text { get; set; } } -} \ No newline at end of file +} +#endif \ No newline at end of file diff --git a/src/Microsoft.VisualStudio.LanguageServices.Razor/ReflectionNames.cs b/src/Microsoft.VisualStudio.LanguageServices.Razor/ReflectionNames.cs index 96855718cf..17ae3e2118 100644 --- a/src/Microsoft.VisualStudio.LanguageServices.Razor/ReflectionNames.cs +++ b/src/Microsoft.VisualStudio.LanguageServices.Razor/ReflectionNames.cs @@ -1,6 +1,7 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +#if RAZOR_EXTENSION_DEVELOPER_MODE namespace Microsoft.VisualStudio.LanguageServices.Razor { internal static class ReflectionNames @@ -12,3 +13,4 @@ namespace Microsoft.VisualStudio.LanguageServices.Razor public static readonly string DependencyAttribute = RazorAssemblyName + ".RazorEngineDependencyAttribute"; } } +#endif \ No newline at end of file diff --git a/tooling/Microsoft.VisualStudio.RazorExtension/Behaviors/ItemSelectedBehavior.cs b/tooling/Microsoft.VisualStudio.RazorExtension/Behaviors/ItemSelectedBehavior.cs index 1a709324a9..deb020ff95 100644 --- a/tooling/Microsoft.VisualStudio.RazorExtension/Behaviors/ItemSelectedBehavior.cs +++ b/tooling/Microsoft.VisualStudio.RazorExtension/Behaviors/ItemSelectedBehavior.cs @@ -1,6 +1,7 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +#if RAZOR_EXTENSION_DEVELOPER_MODE using System.Windows; using System.Windows.Controls; using System.Windows.Controls.Primitives; @@ -54,3 +55,4 @@ namespace Microsoft.VisualStudio.RazorExtension.Behaviors } } } +#endif diff --git a/tooling/Microsoft.VisualStudio.RazorExtension/Microsoft.VisualStudio.RazorExtension.csproj b/tooling/Microsoft.VisualStudio.RazorExtension/Microsoft.VisualStudio.RazorExtension.csproj index ae1662250a..b4ffe8066b 100644 --- a/tooling/Microsoft.VisualStudio.RazorExtension/Microsoft.VisualStudio.RazorExtension.csproj +++ b/tooling/Microsoft.VisualStudio.RazorExtension/Microsoft.VisualStudio.RazorExtension.csproj @@ -40,7 +40,7 @@ full false bin\Debug\ - DEBUG;TRACE + DEBUG;TRACE;RAZOR_EXTENSION_DEVELOPER_MODE prompt 4 @@ -64,9 +64,6 @@ - - RazorInfoToolWindowControl.xaml - @@ -314,12 +311,19 @@ - + Menus.ctmenu + + Designer + MSBuild:Compile + + + RazorInfoToolWindowControl.xaml + @@ -327,12 +331,6 @@ VSPackage - - - Designer - MSBuild:Compile - - {932f3c9c-a6c0-40d3-ba50-9309886242fc} diff --git a/tooling/Microsoft.VisualStudio.RazorExtension/NotifyPropertyChanged.cs b/tooling/Microsoft.VisualStudio.RazorExtension/NotifyPropertyChanged.cs index 83d3071e07..569469e8ff 100644 --- a/tooling/Microsoft.VisualStudio.RazorExtension/NotifyPropertyChanged.cs +++ b/tooling/Microsoft.VisualStudio.RazorExtension/NotifyPropertyChanged.cs @@ -1,6 +1,7 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +#if RAZOR_EXTENSION_DEVELOPER_MODE using System.ComponentModel; using System.Runtime.CompilerServices; @@ -16,3 +17,4 @@ namespace Microsoft.VisualStudio.RazorExtension } } } +#endif \ No newline at end of file diff --git a/tooling/Microsoft.VisualStudio.RazorExtension/RazorInfo/AssemblyViewModel.cs b/tooling/Microsoft.VisualStudio.RazorExtension/RazorInfo/AssemblyViewModel.cs index 9eb97f1477..4a1dcb0041 100644 --- a/tooling/Microsoft.VisualStudio.RazorExtension/RazorInfo/AssemblyViewModel.cs +++ b/tooling/Microsoft.VisualStudio.RazorExtension/RazorInfo/AssemblyViewModel.cs @@ -1,6 +1,7 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +#if RAZOR_EXTENSION_DEVELOPER_MODE using Microsoft.VisualStudio.LanguageServices.Razor; namespace Microsoft.VisualStudio.RazorExtension.RazorInfo @@ -22,3 +23,4 @@ namespace Microsoft.VisualStudio.RazorExtension.RazorInfo public string FilePath { get; } } } +#endif \ No newline at end of file diff --git a/tooling/Microsoft.VisualStudio.RazorExtension/RazorInfo/DirectiveViewModel.cs b/tooling/Microsoft.VisualStudio.RazorExtension/RazorInfo/DirectiveViewModel.cs index e130b3036b..6f6b0b84cb 100644 --- a/tooling/Microsoft.VisualStudio.RazorExtension/RazorInfo/DirectiveViewModel.cs +++ b/tooling/Microsoft.VisualStudio.RazorExtension/RazorInfo/DirectiveViewModel.cs @@ -1,6 +1,7 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +#if RAZOR_EXTENSION_DEVELOPER_MODE using System.Text; using Microsoft.AspNetCore.Razor.Evolution; @@ -38,3 +39,4 @@ namespace Microsoft.VisualStudio.RazorExtension.RazorInfo public string Name => _directive.Name; } } +#endif \ No newline at end of file diff --git a/tooling/Microsoft.VisualStudio.RazorExtension/RazorInfo/DocumentInfoViewModel.cs b/tooling/Microsoft.VisualStudio.RazorExtension/RazorInfo/DocumentInfoViewModel.cs index 404292dd6a..222f5a62f3 100644 --- a/tooling/Microsoft.VisualStudio.RazorExtension/RazorInfo/DocumentInfoViewModel.cs +++ b/tooling/Microsoft.VisualStudio.RazorExtension/RazorInfo/DocumentInfoViewModel.cs @@ -1,6 +1,7 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +#if RAZOR_EXTENSION_DEVELOPER_MODE using Microsoft.VisualStudio.LanguageServices.Razor; namespace Microsoft.VisualStudio.RazorExtension.RazorInfo @@ -16,4 +17,5 @@ namespace Microsoft.VisualStudio.RazorExtension.RazorInfo public string Text => _document.Text; } -} \ No newline at end of file +} +#endif \ No newline at end of file diff --git a/tooling/Microsoft.VisualStudio.RazorExtension/RazorInfo/DocumentViewModel.cs b/tooling/Microsoft.VisualStudio.RazorExtension/RazorInfo/DocumentViewModel.cs index 184f1f2850..e61a4704cb 100644 --- a/tooling/Microsoft.VisualStudio.RazorExtension/RazorInfo/DocumentViewModel.cs +++ b/tooling/Microsoft.VisualStudio.RazorExtension/RazorInfo/DocumentViewModel.cs @@ -1,7 +1,7 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using Microsoft.CodeAnalysis; +#if RAZOR_EXTENSION_DEVELOPER_MODE namespace Microsoft.VisualStudio.RazorExtension.RazorInfo { @@ -14,4 +14,5 @@ namespace Microsoft.VisualStudio.RazorExtension.RazorInfo public string FilePath { get; } } -} \ No newline at end of file +} +#endif \ No newline at end of file diff --git a/tooling/Microsoft.VisualStudio.RazorExtension/RazorInfo/ProjectInfoViewModel.cs b/tooling/Microsoft.VisualStudio.RazorExtension/RazorInfo/ProjectInfoViewModel.cs index 4894b53411..7c01538db6 100644 --- a/tooling/Microsoft.VisualStudio.RazorExtension/RazorInfo/ProjectInfoViewModel.cs +++ b/tooling/Microsoft.VisualStudio.RazorExtension/RazorInfo/ProjectInfoViewModel.cs @@ -1,6 +1,7 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +#if RAZOR_EXTENSION_DEVELOPER_MODE using System.Collections.ObjectModel; namespace Microsoft.VisualStudio.RazorExtension.RazorInfo @@ -53,3 +54,4 @@ namespace Microsoft.VisualStudio.RazorExtension.RazorInfo } } } +#endif diff --git a/tooling/Microsoft.VisualStudio.RazorExtension/RazorInfo/ProjectViewModel.cs b/tooling/Microsoft.VisualStudio.RazorExtension/RazorInfo/ProjectViewModel.cs index 5eae0fa364..1c649e6f0a 100644 --- a/tooling/Microsoft.VisualStudio.RazorExtension/RazorInfo/ProjectViewModel.cs +++ b/tooling/Microsoft.VisualStudio.RazorExtension/RazorInfo/ProjectViewModel.cs @@ -1,6 +1,7 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +#if RAZOR_EXTENSION_DEVELOPER_MODE using Microsoft.CodeAnalysis; namespace Microsoft.VisualStudio.RazorExtension.RazorInfo @@ -18,3 +19,4 @@ namespace Microsoft.VisualStudio.RazorExtension.RazorInfo public ProjectId Id { get; } } } +#endif \ No newline at end of file diff --git a/tooling/Microsoft.VisualStudio.RazorExtension/RazorInfo/RazorInfoToolWindow.cs b/tooling/Microsoft.VisualStudio.RazorExtension/RazorInfo/RazorInfoToolWindow.cs index 2feeac0bb8..59996bea14 100644 --- a/tooling/Microsoft.VisualStudio.RazorExtension/RazorInfo/RazorInfoToolWindow.cs +++ b/tooling/Microsoft.VisualStudio.RazorExtension/RazorInfo/RazorInfoToolWindow.cs @@ -1,6 +1,7 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +#if RAZOR_EXTENSION_DEVELOPER_MODE using System; using System.Runtime.InteropServices; using Microsoft.CodeAnalysis; @@ -104,3 +105,4 @@ namespace Microsoft.VisualStudio.RazorExtension.RazorInfo } } } +#endif diff --git a/tooling/Microsoft.VisualStudio.RazorExtension/RazorInfo/RazorInfoToolWindowCommand.cs b/tooling/Microsoft.VisualStudio.RazorExtension/RazorInfo/RazorInfoToolWindowCommand.cs index 53e0627d0f..5d4c4d0700 100644 --- a/tooling/Microsoft.VisualStudio.RazorExtension/RazorInfo/RazorInfoToolWindowCommand.cs +++ b/tooling/Microsoft.VisualStudio.RazorExtension/RazorInfo/RazorInfoToolWindowCommand.cs @@ -1,6 +1,7 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +#if RAZOR_EXTENSION_DEVELOPER_MODE using System; using System.ComponentModel.Design; using Microsoft.VisualStudio.Shell; @@ -101,3 +102,4 @@ namespace Microsoft.VisualStudio.RazorExtension.RazorInfo } } } +#endif diff --git a/tooling/Microsoft.VisualStudio.RazorExtension/RazorInfo/RazorInfoViewModel.cs b/tooling/Microsoft.VisualStudio.RazorExtension/RazorInfo/RazorInfoViewModel.cs index bec3961149..4046b44fe7 100644 --- a/tooling/Microsoft.VisualStudio.RazorExtension/RazorInfo/RazorInfoViewModel.cs +++ b/tooling/Microsoft.VisualStudio.RazorExtension/RazorInfo/RazorInfoViewModel.cs @@ -1,6 +1,7 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +#if RAZOR_EXTENSION_DEVELOPER_MODE using System; using System.Collections.Generic; using System.Collections.ObjectModel; @@ -320,3 +321,4 @@ namespace Microsoft.VisualStudio.RazorExtension.RazorInfo } } } +#endif \ No newline at end of file diff --git a/tooling/Microsoft.VisualStudio.RazorExtension/RazorInfo/TagHelperViewModel.cs b/tooling/Microsoft.VisualStudio.RazorExtension/RazorInfo/TagHelperViewModel.cs index 5fc71dc68b..7ee2183809 100644 --- a/tooling/Microsoft.VisualStudio.RazorExtension/RazorInfo/TagHelperViewModel.cs +++ b/tooling/Microsoft.VisualStudio.RazorExtension/RazorInfo/TagHelperViewModel.cs @@ -1,6 +1,7 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +#if RAZOR_EXTENSION_DEVELOPER_MODE using Microsoft.AspNetCore.Razor.Evolution; namespace Microsoft.VisualStudio.RazorExtension.RazorInfo @@ -21,3 +22,4 @@ namespace Microsoft.VisualStudio.RazorExtension.RazorInfo public string TypeName => _descriptor.TypeName; } } +#endif \ No newline at end of file diff --git a/tooling/Microsoft.VisualStudio.RazorExtension/RazorPackage.cs b/tooling/Microsoft.VisualStudio.RazorExtension/RazorPackage.cs index b259003e79..49bb67a812 100644 --- a/tooling/Microsoft.VisualStudio.RazorExtension/RazorPackage.cs +++ b/tooling/Microsoft.VisualStudio.RazorExtension/RazorPackage.cs @@ -14,7 +14,9 @@ namespace Microsoft.VisualStudio.RazorExtension [Guid(RazorPackage.PackageGuidString)] [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1650:ElementDocumentationMustBeSpelledCorrectly", Justification = "pkgdef, VS and vsixmanifest are valid VS terms")] [ProvideMenuResource("Menus.ctmenu", 1)] +#if RAZOR_EXTENSION_DEVELOPER_MODE [ProvideToolWindow(typeof(Microsoft.VisualStudio.RazorExtension.RazorInfo.RazorInfoToolWindow))] +#endif public sealed class RazorPackage : Package { public const string PackageGuidString = "13b72f58-279e-49e0-a56d-296be02f0805"; @@ -37,7 +39,9 @@ namespace Microsoft.VisualStudio.RazorExtension var packageGuid = new Guid(CSharpPackageIdString); shell.LoadPackage(ref packageGuid, out package); - Microsoft.VisualStudio.RazorExtension.RazorInfo.RazorInfoToolWindowCommand.Initialize(this); +#if RAZOR_EXTENSION_DEVELOPER_MODE + RazorInfo.RazorInfoToolWindowCommand.Initialize(this); +#endif } } } diff --git a/tooling/Microsoft.VisualStudio.RazorExtension/RelayCommand.cs b/tooling/Microsoft.VisualStudio.RazorExtension/RelayCommand.cs index 6f42bbb654..cf6db15da9 100644 --- a/tooling/Microsoft.VisualStudio.RazorExtension/RelayCommand.cs +++ b/tooling/Microsoft.VisualStudio.RazorExtension/RelayCommand.cs @@ -1,6 +1,7 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +#if RAZOR_EXTENSION_DEVELOPER_MODE using System; using System.Windows.Input; @@ -42,3 +43,4 @@ namespace Microsoft.VisualStudio.RazorExtension } } } +#endif \ No newline at end of file