diff options
author | Jose Miguel Torres <jostor@microsoft.com> | 2019-03-04 20:16:35 +0300 |
---|---|---|
committer | Jose Miguel Torres <jostor@microsoft.com> | 2019-03-04 20:16:35 +0300 |
commit | b2e13c486db8a493ea7920218ff7e21ba30d3d05 (patch) | |
tree | 430ae2709edfc1f2f7a00ef53fb1fd9d2cf304c9 /main/src/addins/AspNet | |
parent | 419a7206f1aaed3ea29908e6735ccc8cd7f92930 (diff) |
[AspNet] Moves default build action up to the extension.
Diffstat (limited to 'main/src/addins/AspNet')
-rw-r--r-- | main/src/addins/AspNet/Projects/AspNetAppProjectFlavor.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/main/src/addins/AspNet/Projects/AspNetAppProjectFlavor.cs b/main/src/addins/AspNet/Projects/AspNetAppProjectFlavor.cs index b2af7b179f..5432c3a844 100644 --- a/main/src/addins/AspNet/Projects/AspNetAppProjectFlavor.cs +++ b/main/src/addins/AspNet/Projects/AspNetAppProjectFlavor.cs @@ -60,6 +60,7 @@ namespace MonoDevelop.AspNet.Projects WebFormsRegistrationCache registrationCache; WebFormsCodeBehindTypeNameCache codebehindTypeNameCache; + public const string TypeScriptCompile = "TypeScriptCompile"; #region properties @@ -548,12 +549,12 @@ namespace MonoDevelop.AspNet.Projects protected override string OnGetDefaultBuildAction (string fileName) { - WebSubtype type = DetermineWebSubtype (fileName); + var type = DetermineWebSubtype (fileName); switch (type) { case WebSubtype.Code: return BuildAction.Compile; case WebSubtype.TypeScript: - return BuildAction.TypeScriptCompile; + return TypeScriptCompile; case WebSubtype.None: return base.OnGetDefaultBuildAction (fileName); default: |