Advertisement
Guest User

Untitled

a guest
Oct 28th, 2016
605
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.34 KB | None | 0 0
  1. error CS1061: 'IServiceCollection' does not contain a definition for'AddWebpack' and no extension method 'AddWebpack' accepting a first argument of type 'IServiceCollection' could be found (are you missing a using directive o assembly reference?)
  2.  
  3. {
  4. "version": "1.0.0-*",
  5. "dependencies": {
  6. "Microsoft.AspNetCore.Diagnostics": "1.0.0",
  7. "Microsoft.AspNetCore.Mvc": "1.0.1",
  8. "Microsoft.AspNetCore.Razor.Tools": {
  9. "version": "1.0.0-preview2-final",
  10. "type": "build"
  11. },
  12. "Microsoft.AspNet.SignalR.Client": "2.2.1",
  13. "Microsoft.AspNetCore.SignalR.Server": "0.1.0-rtm-21431",
  14. "Microsoft.AspNet.SignalR.SystemWeb": "2.2.1",
  15. "Microsoft.AspNet.SignalR.JS": "2.2.1",
  16. "Microsoft.AspNetCore.WebSockets.Server": "0.1.0-rc2-final",
  17. "System.Xml.XmlSerializer": "4.0.11",
  18. "React.AspNet": "3.0.0-rc1",
  19. "Microsoft.AspNetCore.Routing": "1.0.1",
  20. "Microsoft.AspNetCore.Server.IISIntegration": "1.0.0",
  21. "Microsoft.AspNetCore.Server.Kestrel": "1.0.1",
  22. "Microsoft.AspNetCore.StaticFiles": "1.0.0",
  23. "Microsoft.Extensions.Configuration.EnvironmentVariables": "1.0.0",
  24. "Microsoft.Extensions.Configuration.Json": "1.0.0",
  25. "Microsoft.Extensions.Configuration.CommandLine": "1.0.0",
  26. "Microsoft.Extensions.Logging": "1.0.0",
  27. "Microsoft.Extensions.Logging.Console": "1.0.0",
  28. "Microsoft.Extensions.Logging.Debug": "1.0.0",
  29. "Microsoft.Extensions.Options.ConfigurationExtensions": "1.0.0",
  30. "Microsoft.VisualStudio.Web.BrowserLink.Loader": "14.0.0",
  31. "Microsoft.Owin.Host.SystemWeb": "3.0.1",
  32. "Microsoft.Owin": "3.0.1",
  33. "Microsoft.Owin.Security": "3.0.1",
  34. "Webpack": "3.0.0"
  35. },
  36. "tools": {
  37. //"BundlerMinifier.Core": "2.0.238",
  38. //"Microsoft.AspNetCore.Razor.Tools": "1.0.0-preview2-final",
  39. "Microsoft.AspNetCore.Server.IISIntegration.Tools": "1.0.0-preview2-final"
  40. },
  41. "frameworks": {
  42. "netcoreapp1.1": {
  43. "dependencies": {
  44. "Microsoft.NETCore.App": {
  45. "version": "1.1.0-preview1-001100-00",
  46. "type": "platform"
  47. }
  48. },
  49. "imports": [
  50. "net451",
  51. "dnxcore50"
  52. ]
  53. }
  54. },
  55. "buildOptions": {
  56. "emitEntryPoint": true,
  57. "preserveCompilationContext": true
  58. ,
  59. "runtimeOptions": {
  60. "configProperties": {
  61. "System.GC.Server": true
  62. }
  63. },
  64. "publishOptions": {
  65. "include": [
  66. "wwwroot",
  67. "**/*.cshtml",
  68. "appsettings.json",
  69. "web.config"
  70. ]
  71. },
  72. "scripts": {
  73. "precompile": [ "dotnet bundle" ],
  74. "prepublish": [ "bower install" ],
  75. "postpublish": [ "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" ]
  76. },
  77. "tooling": {
  78. "defaultNamespace": "Rebellion"
  79. }
  80. }
  81.  
  82. public void ConfigureServices(IServiceCollection services)
  83. {
  84. // Add framework services.
  85. services.AddMvc();
  86. services.AddSignalR();
  87. services.AddWebpack();
  88. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement