2013-04-16 166 views
1

我想部署一个C#应用程序使用的git回购天青到Azure的时候做什么用的DLL,但它没有说:部署从Git仓库

The type or namespace name 'Mvc' does not exist in the namespace 'System.Web' (are you missing an assembly reference?) 

目前,所有的DLL都从储备库中排除。我不想包含所有这些DLL,因为它会使我的回购数量巨大。有没有办法做到这一点?

+0

你在哪里部署? Azure网站或Azure云服务? – AvkashChauhan

+0

Azure网站。 – orourkedd

回答

0

您只需在您的解决方案上打开NuGet包恢复功能(右键单击VS中的解决方案即可找到该选项)。

然后你可以使用.gitignore排除所有的二进制文件。一个例子见this repo

+0

呃!很早以前就知道了这一点。 – orourkedd