Cloned ASP.NET MVC 3 application from github shows yellow exclamation marks next to every Nuget'd package

半腔热情 提交于 2020-01-06 19:58:02

问题


Every DLL that comes by way of NuGet shows an exclamation mark against a yellow background after cloning the ASP.NET MVC project from github. The problem appears to be the PATH which is absolute rather than relative, meaning that it shows the initial developer's absolute path which in my case is different than mine.

So ...

Is there a way to force Nuget to use relative paths? Or, is there a way to simply use Nuget to update all of these from within the project? Or, is there a better way to work with NuGet in a github environment?

Thanks


回答1:


Enable Package Restore on your project. That will cause Nuget to download any missing dlls on build. They shouldn't be absolute anyway but this will take care of it if they're missing.

You can right click the solution in Visual Studio and choose "Enable Nuget Package Restore"

Old blog post: http://blog.davidebbo.com/2011/08/easy-way-to-set-up-nuget-to-restore.html



来源:https://stackoverflow.com/questions/11528488/cloned-asp-net-mvc-3-application-from-github-shows-yellow-exclamation-marks-next

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!