diff --git a/src/Yavsc.Server/Attributes/ActivityBillingAttribute.cs b/src/Yavsc.Abstract/Attributes/ActivityBillingAttribute.cs similarity index 100% rename from src/Yavsc.Server/Attributes/ActivityBillingAttribute.cs rename to src/Yavsc.Abstract/Attributes/ActivityBillingAttribute.cs diff --git a/src/Yavsc.Server/Attributes/ActivitySettingsAttribute.cs b/src/Yavsc.Abstract/Attributes/ActivitySettingsAttribute.cs similarity index 100% rename from src/Yavsc.Server/Attributes/ActivitySettingsAttribute.cs rename to src/Yavsc.Abstract/Attributes/ActivitySettingsAttribute.cs diff --git a/src/Yavsc.Server/Attributes/Validation/YaRegularExpression.cs b/src/Yavsc.Abstract/Attributes/Validation/YaRegularExpression.cs similarity index 57% rename from src/Yavsc.Server/Attributes/Validation/YaRegularExpression.cs rename to src/Yavsc.Abstract/Attributes/Validation/YaRegularExpression.cs index dfe0739b..0b31cf10 100644 --- a/src/Yavsc.Server/Attributes/Validation/YaRegularExpression.cs +++ b/src/Yavsc.Abstract/Attributes/Validation/YaRegularExpression.cs @@ -1,4 +1,7 @@ +using System; +using System.Reflection; + namespace Yavsc.Attributes.Validation { public class YaRegularExpression : System.ComponentModel.DataAnnotations.RegularExpressionAttribute { @@ -9,7 +12,9 @@ namespace Yavsc.Attributes.Validation public override string FormatErrorMessage(string name) { - return ResourcesHelpers.GlobalLocalizer[this.ErrorMessageResourceName]; + var prop = this.ErrorMessageResourceType.GetProperty(ErrorMessageResourceName); + return (string) prop.GetValue(null, BindingFlags.Static, null, null, System.Globalization.CultureInfo.CurrentUICulture); + } } } \ No newline at end of file diff --git a/src/Yavsc.Server/Attributes/Validation/YaRequiredAttribute.cs b/src/Yavsc.Abstract/Attributes/Validation/YaRequiredAttribute.cs similarity index 84% rename from src/Yavsc.Server/Attributes/Validation/YaRequiredAttribute.cs rename to src/Yavsc.Abstract/Attributes/Validation/YaRequiredAttribute.cs index fffa9a95..c73d4d38 100644 --- a/src/Yavsc.Server/Attributes/Validation/YaRequiredAttribute.cs +++ b/src/Yavsc.Abstract/Attributes/Validation/YaRequiredAttribute.cs @@ -10,13 +10,12 @@ namespace Yavsc.Attributes.Validation /// Gets or sets a flag indicating whether the attribute should allow empty strings. /// public bool AllowEmptyStrings { get; set; } - public YaRequiredAttribute (string msg) : base() + public YaRequiredAttribute (string msg) : base(msg) { ErrorMessage = msg; } - public YaRequiredAttribute () + public YaRequiredAttribute () : base("RequiredField") { - this.ErrorMessage = ResourcesHelpers.GlobalLocalizer["RequiredField"]; } public override bool IsValid(object value) { diff --git a/src/Yavsc.Server/Attributes/Validation/YaStringLength.cs b/src/Yavsc.Abstract/Attributes/Validation/YaStringLength.cs similarity index 58% rename from src/Yavsc.Server/Attributes/Validation/YaStringLength.cs rename to src/Yavsc.Abstract/Attributes/Validation/YaStringLength.cs index e7aa65ed..c8e5c6c8 100644 --- a/src/Yavsc.Server/Attributes/Validation/YaStringLength.cs +++ b/src/Yavsc.Abstract/Attributes/Validation/YaStringLength.cs @@ -1,3 +1,5 @@ +using System; + namespace Yavsc.Attributes.Validation { public class YaStringLength: YaValidationAttribute @@ -5,20 +7,22 @@ namespace Yavsc.Attributes.Validation public long MinLen { get; set; } = -1; private long maxLen; public YaStringLength(long maxLen) : base( - ()=>string.Format( - ResourcesHelpers.GlobalLocalizer["BadStringLength"], - maxLen)) + ()=> + "BadStringLength") { this.maxLen = maxLen; } - private long excedent; - private long manquant; + private long excedent=0; + private long manquant=0; public override bool IsValid(object value) { + if (value == null) { return false; } + Console.WriteLine("Validating string length for "+value.ToString()); + string stringValue = value as string; if (stringValue==null) return false; if (MinLen>=0) @@ -38,21 +42,6 @@ namespace Yavsc.Attributes.Validation } return true; } - public override string FormatErrorMessage(string name) - { - if (MinLen<0) { - // DetailledMaxStringLength - return string.Format( - ResourcesHelpers.GlobalLocalizer["DetailledMaxStringLength"], - maxLen, - excedent); - } else - return string.Format( - ResourcesHelpers.GlobalLocalizer["DetailledMinMaxStringLength"], - MinLen, - maxLen, - manquant, - excedent); - } + } } \ No newline at end of file diff --git a/src/Yavsc.Abstract/Attributes/Validation/YaValidationAttribute.cs b/src/Yavsc.Abstract/Attributes/Validation/YaValidationAttribute.cs new file mode 100644 index 00000000..598c02b5 --- /dev/null +++ b/src/Yavsc.Abstract/Attributes/Validation/YaValidationAttribute.cs @@ -0,0 +1,32 @@ +using System; +using System.Reflection; + +namespace Yavsc.Attributes.Validation +{ + public class YaValidationAttribute : System.ComponentModel.DataAnnotations.ValidationAttribute + { + public YaValidationAttribute(string msg) : base(msg) + { + + } + + public YaValidationAttribute(Func acr): base(acr) + { + + } + + public override string FormatErrorMessage(string name) + { + if (ErrorMessageResourceType == null) // failed :/ + return name; + if (ErrorMessageResourceName == null) // re failed :/ + return name; + + var prop = this.ErrorMessageResourceType.GetProperty(ErrorMessageResourceName); + if (prop==null) // re re failed :/ + return "noprop "+ErrorMessageResourceName+" in "+ErrorMessageResourceType.Name; + return (string) prop.GetValue(null, null); + + } + } +} \ No newline at end of file diff --git a/src/Yavsc.Abstract/IT/BugReport.cs b/src/Yavsc.Abstract/IT/BugReport.cs index 51da68d1..6cfa8e6a 100644 --- a/src/Yavsc.Abstract/IT/BugReport.cs +++ b/src/Yavsc.Abstract/IT/BugReport.cs @@ -1,4 +1,5 @@ using System.ComponentModel.DataAnnotations; +using Yavsc.Attributes.Validation; namespace Yavsc.ApiControllers { @@ -7,7 +8,7 @@ namespace Yavsc.ApiControllers public string ApiKey { get ; set; } [Required] public string Component { get ; set; } - [Required][StringLength(1024)] + [Required][YaStringLength(1024)] public string ExceptionObjectJson { get ; set; } } } diff --git a/src/Yavsc.Server/Attributes/Validation/YaValidationAttribute.cs b/src/Yavsc.Server/Attributes/Validation/YaValidationAttribute.cs deleted file mode 100644 index c6af52d5..00000000 --- a/src/Yavsc.Server/Attributes/Validation/YaValidationAttribute.cs +++ /dev/null @@ -1,22 +0,0 @@ -using System; - -namespace Yavsc.Attributes.Validation -{ - public class YaValidationAttribute : System.ComponentModel.DataAnnotations.ValidationAttribute - { - public YaValidationAttribute() : base(()=> ResourcesHelpers.GlobalLocalizer["validationError"]) - { - - } - - public YaValidationAttribute(Func acr): base(acr) - { - - } - - public override string FormatErrorMessage(string name) - { - return ResourcesHelpers.GlobalLocalizer[name]; - } - } -} \ No newline at end of file diff --git a/src/Yavsc.Server/Models/Blog/Comment.cs b/src/Yavsc.Server/Models/Blog/Comment.cs index 07190459..2a2553cb 100644 --- a/src/Yavsc.Server/Models/Blog/Comment.cs +++ b/src/Yavsc.Server/Models/Blog/Comment.cs @@ -13,7 +13,7 @@ namespace Yavsc.Models.Blog [Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)] public long Id { get; set; } - [YaStringLength(1024)] + [StringLength(1024)] public string Content { get; set; } [ForeignKeyAttribute("PostId")][JsonIgnore] diff --git a/src/Yavsc.Server/Models/IT/Evolution/Feature.cs b/src/Yavsc.Server/Models/IT/Evolution/Feature.cs index 08384e1d..5bdcf7ed 100644 --- a/src/Yavsc.Server/Models/IT/Evolution/Feature.cs +++ b/src/Yavsc.Server/Models/IT/Evolution/Feature.cs @@ -9,10 +9,10 @@ namespace Yavsc.Models.IT.Evolution [Key,DatabaseGenerated(DatabaseGeneratedOption.Identity)] public long Id { get; set; } - [YaStringLength(256,MinLen=3)] + [StringLength(256)] public string ShortName { get; set; } - [YaStringLength(10*1024,MinLen=3)] + [StringLength(10*1024)] public string Description { get; set; } public FeatureStatus Status { get; set; } diff --git a/src/Yavsc.Server/ViewModels/Account/RegisterViewModel.cs b/src/Yavsc.Server/ViewModels/Account/RegisterViewModel.cs index 7816f3ef..42ecd2f5 100644 --- a/src/Yavsc.Server/ViewModels/Account/RegisterViewModel.cs +++ b/src/Yavsc.Server/ViewModels/Account/RegisterViewModel.cs @@ -11,7 +11,7 @@ namespace Yavsc.ViewModels.Account [YaRegularExpression(Constants.UserNameRegExp)] public string UserName { get; set; } - [YaRequired()] + [Required()] // [EmailAddress] [Display(Name = "Email")] public string Email { get; set; } diff --git a/src/Yavsc.Server/project.json b/src/Yavsc.Server/project.json index a7edcfe7..ea74df57 100644 --- a/src/Yavsc.Server/project.json +++ b/src/Yavsc.Server/project.json @@ -26,8 +26,8 @@ "userSecretsId": "aspnet5-YavscWeb-a0dadd21-2ced-43d3-96f9-7e504345102f", "buildOptions": { "debugType": "full", - "emitEntryPoint": true, - "outputName": "Yavsc", + "emitEntryPoint": false, + "outputName": "Yavsc.Server", "compile": { "include": "*.cs", "exclude": [ @@ -38,8 +38,10 @@ ] }, "embed": [ - "Resources/**/*.resx" - ] + "Resources/**/*.resx" + ], + "publicSign": false, + "keyFile": "../../../sgKey.snk" }, "tooling": { "defaultNamespace": "Yavsc" diff --git a/src/Yavsc/Controllers/Survey/BugController.cs b/src/Yavsc/Controllers/Survey/BugController.cs index 2747b0e8..f81ec714 100644 --- a/src/Yavsc/Controllers/Survey/BugController.cs +++ b/src/Yavsc/Controllers/Survey/BugController.cs @@ -70,6 +70,8 @@ namespace Yavsc.Controllers await _context.SaveChangesAsync(); return RedirectToAction("Index"); } + ViewBag.Features = Features(_context); + ViewBag.Statuses = Statuses(default(BugStatus)); return View(bug); } diff --git a/src/Yavsc/Controllers/Survey/FeatureController.cs b/src/Yavsc/Controllers/Survey/FeatureController.cs index a8cbb2c7..0fad771b 100644 --- a/src/Yavsc/Controllers/Survey/FeatureController.cs +++ b/src/Yavsc/Controllers/Survey/FeatureController.cs @@ -9,10 +9,13 @@ namespace Yavsc.Controllers { using Models; using Models.IT.Evolution; + using Yavsc.Server.Helpers; + public class FeatureController : Controller { private ApplicationDbContext _context; - + IEnumerable Statuses(FeatureStatus ?status) => + typeof(FeatureStatus).CreateSelectListItems(status); public FeatureController(ApplicationDbContext context) { _context = context; @@ -44,6 +47,7 @@ namespace Yavsc.Controllers // GET: Feature/Create public IActionResult Create() { + ViewBag.FeatureStatus = Statuses(default(FeatureStatus)); return View(); } @@ -58,6 +62,7 @@ namespace Yavsc.Controllers await _context.SaveChangesAsync(); return RedirectToAction("Index"); } + ViewBag.FeatureStatus = Statuses(default(FeatureStatus)); return View(feature); } diff --git a/src/Yavsc.Server/Models/IT/Fixing/Bug.cs b/src/Yavsc/Models/Fixing/Bug.cs similarity index 84% rename from src/Yavsc.Server/Models/IT/Fixing/Bug.cs rename to src/Yavsc/Models/Fixing/Bug.cs index d8209d85..0dbf573c 100644 --- a/src/Yavsc.Server/Models/IT/Fixing/Bug.cs +++ b/src/Yavsc/Models/Fixing/Bug.cs @@ -15,7 +15,7 @@ namespace Yavsc.Models.IT.Fixing public long? FeatureId { get; set; } - [YaStringLength(1024)] + [YaStringLength(240, ErrorMessageResourceType=typeof(BugResources), ErrorMessageResourceName="TitleTooLong")] public string Title { get; set; } [YaStringLength(4096)] diff --git a/src/Yavsc.Server/Models/IT/Fixing/BugStatus.cs b/src/Yavsc/Models/Fixing/BugStatus.cs similarity index 100% rename from src/Yavsc.Server/Models/IT/Fixing/BugStatus.cs rename to src/Yavsc/Models/Fixing/BugStatus.cs diff --git a/src/Yavsc/Resources/BugResources.Designer.cs b/src/Yavsc/Resources/BugResources.Designer.cs new file mode 100644 index 00000000..b4121614 --- /dev/null +++ b/src/Yavsc/Resources/BugResources.Designer.cs @@ -0,0 +1,35 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Mono Runtime Version: 4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +namespace Yavsc.Models.IT.Fixing { + using System; + using System.Reflection; + using Microsoft.Extensions.DependencyInjection; + using Microsoft.Extensions.Localization; + + public class BugResources { + private static IStringLocalizer _localizer=null; + static IStringLocalizer Localizer { + get { + if (_localizer != null) return _localizer; + var scope = Startup.Services.GetRequiredService().CreateScope(); + var stringLocFactory = scope.ServiceProvider.GetService(); + _localizer = stringLocFactory.Create(typeof(BugResources)); + return _localizer; + } + } + + public static string TitleTooLong { + get { + return Localizer["TitleTooLong"]; + } + } + } +} diff --git a/src/Yavsc/Resources/Yavsc.Models.IT.Fixing.BugResources.fr.resx b/src/Yavsc/Resources/Yavsc.Models.IT.Fixing.BugResources.fr.resx new file mode 100644 index 00000000..b386a5fb --- /dev/null +++ b/src/Yavsc/Resources/Yavsc.Models.IT.Fixing.BugResources.fr.resx @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + Le titre est trop long + \ No newline at end of file diff --git a/src/Yavsc/Resources/Yavsc.Models.IT.Fixing.BugResources.resx b/src/Yavsc/Resources/Yavsc.Models.IT.Fixing.BugResources.resx new file mode 100644 index 00000000..b386a5fb --- /dev/null +++ b/src/Yavsc/Resources/Yavsc.Models.IT.Fixing.BugResources.resx @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + Le titre est trop long + \ No newline at end of file diff --git a/src/Yavsc/Resources/Yavsc.Controllers.AnnouncesController.resx b/src/Yavsc/Resources/Yavsc.Resources.AnnouncesController.resx similarity index 100% rename from src/Yavsc/Resources/Yavsc.Controllers.AnnouncesController.resx rename to src/Yavsc/Resources/Yavsc.Resources.AnnouncesController.resx diff --git a/src/Yavsc/Resources/Yavsc.Controllers.BugController.fr.resx b/src/Yavsc/Resources/Yavsc.Resources.BugController.fr.resx similarity index 100% rename from src/Yavsc/Resources/Yavsc.Controllers.BugController.fr.resx rename to src/Yavsc/Resources/Yavsc.Resources.BugController.fr.resx diff --git a/src/Yavsc/Resources/Yavsc.Resources.ChatHub.Designer.cs b/src/Yavsc/Resources/Yavsc.Resources.ChatHub.Designer.cs new file mode 100644 index 00000000..7a90721a --- /dev/null +++ b/src/Yavsc/Resources/Yavsc.Resources.ChatHub.Designer.cs @@ -0,0 +1,62 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Yavsc.Resources { + using System; + using System.Reflection; + using System.Resources; + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + public class ChatHub { + + private static System.Resources.ResourceManager resourceMan; + + private static System.Globalization.CultureInfo resourceCulture; + + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal ChatHub() { + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + public static System.Resources.ResourceManager ResourceManager { + get { + if (object.Equals(null, resourceMan)) { + System.Resources.ResourceManager temp = new System.Resources.ResourceManager("Yavsc.ChatHub", typeof(ChatHub).GetTypeInfo().Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + public static System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + public static string Authenticated_chat_user { + get { + return ResourceManager.GetString("Authenticated chat user", resourceCulture); + } + } + + public static string LabnoJoinNoSend { + get { + return ResourceManager.GetString("LabnoJoinNoSend", resourceCulture); + } + } + } +} diff --git a/src/Yavsc/Resources/Yavsc.ChatHub.en.resx b/src/Yavsc/Resources/Yavsc.Resources.ChatHub.en.resx similarity index 100% rename from src/Yavsc/Resources/Yavsc.ChatHub.en.resx rename to src/Yavsc/Resources/Yavsc.Resources.ChatHub.en.resx diff --git a/src/Yavsc/Resources/Yavsc.ChatHub.fr.resx b/src/Yavsc/Resources/Yavsc.Resources.ChatHub.fr.resx similarity index 100% rename from src/Yavsc/Resources/Yavsc.ChatHub.fr.resx rename to src/Yavsc/Resources/Yavsc.Resources.ChatHub.fr.resx diff --git a/src/Yavsc/Resources/Yavsc.Resources.ChatHub.resx b/src/Yavsc/Resources/Yavsc.Resources.ChatHub.resx new file mode 100644 index 00000000..a878031d --- /dev/null +++ b/src/Yavsc/Resources/Yavsc.Resources.ChatHub.resx @@ -0,0 +1,66 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + Utilisateur de chat authentifié + Envoi impossible: vous devez joindre le canal pour y contribuer. + \ No newline at end of file diff --git a/src/Yavsc/Resources/Yavsc.Resources.IT.Fixing.Bug.fr.resx b/src/Yavsc/Resources/Yavsc.Resources.IT.Fixing.Bug.fr.resx new file mode 100644 index 00000000..b386a5fb --- /dev/null +++ b/src/Yavsc/Resources/Yavsc.Resources.IT.Fixing.Bug.fr.resx @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + Le titre est trop long + \ No newline at end of file diff --git a/src/Yavsc/Resources/Yavsc.Resources.IT.Fixing.Bug.resx b/src/Yavsc/Resources/Yavsc.Resources.IT.Fixing.Bug.resx new file mode 100644 index 00000000..b386a5fb --- /dev/null +++ b/src/Yavsc/Resources/Yavsc.Resources.IT.Fixing.Bug.resx @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + Le titre est trop long + \ No newline at end of file diff --git a/src/Yavsc/Resources/Yavsc.Models.Billing.NominativeServiceCommand.resx b/src/Yavsc/Resources/Yavsc.Resources.Models.Billing.NominativeServiceCommand.resx similarity index 100% rename from src/Yavsc/Resources/Yavsc.Models.Billing.NominativeServiceCommand.resx rename to src/Yavsc/Resources/Yavsc.Resources.Models.Billing.NominativeServiceCommand.resx diff --git a/src/Yavsc/Resources/Yavsc.Resources.YavscLocalisation.fr.resx b/src/Yavsc/Resources/Yavsc.Resources.YavscLocalisation.fr.resx index 43651112..f6baf7ea 100644 --- a/src/Yavsc/Resources/Yavsc.Resources.YavscLocalisation.fr.resx +++ b/src/Yavsc/Resources/Yavsc.Resources.YavscLocalisation.fr.resx @@ -465,7 +465,7 @@ Pour ce faire, suivez le lien suivant : <{1}>. {0} - {2} <{3}> Taille maximale: {0} caractère. Ce champ est -d'au moins {0} et d'au plus {1} caractère(s). +d'au moins {0} et d'au plus {1} caractère(s) (manquent {2}) ou ({3} en trop). Ce champ est d'au plus {0} caractère(s) ({1} en excès). Un message éléctronique a été envoyé à {0}. diff --git a/src/Yavsc/Views/Bug/Create.cshtml b/src/Yavsc/Views/Bug/Create.cshtml index f61ece95..5ab0cc5e 100644 --- a/src/Yavsc/Views/Bug/Create.cshtml +++ b/src/Yavsc/Views/Bug/Create.cshtml @@ -15,7 +15,7 @@
- +
@@ -23,21 +23,21 @@
- +
- +
- +
diff --git a/src/Yavsc/Views/Feature/Create.cshtml b/src/Yavsc/Views/Feature/Create.cshtml index 601ef7bb..e1b71c22 100644 --- a/src/Yavsc/Views/Feature/Create.cshtml +++ b/src/Yavsc/Views/Feature/Create.cshtml @@ -15,21 +15,21 @@
- +
- +
- - + +
diff --git a/src/Yavsc/project.json b/src/Yavsc/project.json index d38a468b..24798a00 100644 --- a/src/Yavsc/project.json +++ b/src/Yavsc/project.json @@ -35,7 +35,13 @@ "emitEntryPoint": true, "outputName": "Yavsc", "compile": { - "include": "*.cs" + "include": "*.cs", + "exclude": [ + "wwwroot", + "node_modules", + "bower_components", + "contrib" + ] }, "embed": [ "Resources/**/*.resx"