由于system.web在队列构建中构建错误是visual studio online,它在我的机器上工作正常。请帮我解决这个问题 [英] Build error in queue build due to system.web is visual studio online it is working fine in my machine.Please help me regarding this

查看:90
本文介绍了由于system.web在队列构建中构建错误是visual studio online,它在我的机器上工作正常。请帮我解决这个问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

$ / MVC Concepts / MvcApplication4_New.sln - 3个错误,5个警告,查看日志文件

  App_Start\BundleConfig.cs(2):名称空间"System.Web"中不存在类型或命名空间名称"优化"(您是否缺少程序集引用?)

  Global.asax.cs(7):类型或命名空间名称'Optimization'在名称空间'System.Web'中不存在(您是否缺少程序集引用?)

  App_Start\BundleConfig.cs(9):类型或命名空间名称找不到'BundleCollection'(你是否错过了使用指令或汇编引用?)

  C:\ Windows \ microsoft.NET \ Framework64 \v4.0.30319 \ Microsoft.Common.targets(1605):无法解析此引用。无法找到程序集"EntityFramework"。检查以确保磁盘上存在程序集。如果您的代码需要此参考
,则可能会出现编译错误。

  C:\ Windows \ Microsoft / .NET * \\ Framework64 \v4.0.30319 \ Microsoft .Common.targets(1605):无法解析此引用。无法找到程序集"Newtonsoft.Json"。检查以确保磁盘上存在程序集。如果您的代码需要此参考
,则可能会出现编译错误。

  C:\ Windows \ Microsoft / .NET * \\ Framework64 \v4.0.30319 \ Microsoft .Common.targets(1605):无法解析此引用。无法找到程序集"System.Web.Optimization"。检查以确保磁盘上存在程序集。如果您的代码要求此参考为
,则可能会出现编译错误。

  C:\ Windows \ Microsoft \\ Microsoft \\ .NET \ Framework64 \v4.0.30319 \ Microsoft .Common.targets(1605):无法解析此引用。无法找到程序集"WebGrease"。检查以确保磁盘上存在程序集。如果您的
代码需要此引用,则可能会出现编译错误。

$/MVC Concepts/MvcApplication4_New.sln - 3 error(s), 5 warning(s), View Log File
 App_Start\BundleConfig.cs (2): The type or namespace name 'Optimization' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
 Global.asax.cs (7): The type or namespace name 'Optimization' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
 App_Start\BundleConfig.cs (9): The type or namespace name 'BundleCollection' could not be found (are you missing a using directive or an assembly reference?)
 C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets (1605): Could not resolve this reference. Could not locate the assembly "EntityFramework". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
 C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets (1605): Could not resolve this reference. Could not locate the assembly "Newtonsoft.Json". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
 C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets (1605): Could not resolve this reference. Could not locate the assembly "System.Web.Optimization". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
 C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets (1605): Could not resolve this reference. Could not locate the assembly "WebGrease". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.

我发现另一个链接面临同样的问题  https ://social.msdn.microsoft.com/Forums/vstudio/en-US/57c4504c-df31-4e58-bb73-d2ab4c444c37/the-type-or-namespace-name-optimization-does-not-exist-in-the -namespace-systemweb?forum = TFService

I found another link facing same issue https://social.msdn.microsoft.com/Forums/vstudio/en-US/57c4504c-df31-4e58-bb73-d2ab4c444c37/the-type-or-namespace-name-optimization-does-not-exist-in-the-namespace-systemweb?forum=TFService

推荐答案

嗨Ramanarayanan,

Hi Ramanarayanan,

我建议你查看你的Build definition-> source settings选项卡。添加存储引用包的packages文件夹的路径。

I would suggest you to check your Build definition->source settings tab.Add the path to the packages folder where the referenced packages are stored.

同时试试安装软件包" Microsoft.AspNet.Web.Optimization   "来自NuGet 并确保所有依赖项都已正确安装。 

Also try to Install package "Microsoft.AspNet.Web.Optimization " from NuGet  and make sure all of its dependencies are installed correctly . 

您可能也会参考这个因为
http://stackoverflow.com/questions/29325217/visual-studio-online-cannot-build -project-due-to-entity-framework-reference-cann

You might also refer this
http://stackoverflow.com/questions/29325217/visual-studio-online-cannot-build-project-due-to-entity-framework-reference-cann

希望它是Hepls!

问候,

Asha

Regards,
Asha


这篇关于由于system.web在队列构建中构建错误是visual studio online,它在我的机器上工作正常。请帮我解决这个问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆