1
是否可以將PostSharp與NuGet軟件包恢復一起部署到源代碼庫中? 我可以通過提交postsharp軟件包來實現這個工作,但是這會抵消Package Restore功能的價值。使用NuGet軟件包恢復PostSharp到源代碼庫
這就是我所做的。
我試圖建立postshap像這樣:Deploying post sharp into a source repo
我已經建立了金塊沒有commiting像這樣使用:Using NuGet Without Committing Packages to Source Control
我看到這在我的csproj
<Import Project="..\packages\PostSharp.2.1.6.13\tools\PostSharp.targets" />
<Import Project="$(SolutionDir)\.nuget\nuget.targets" />
(我重新命令th EM無濟於事)
我的構建服務器(CC.net)報告以下錯誤:
D:\wwwroot\www.snip.co.nz\http\www.snip.co.nz.csproj (714,3):
errorMSB4019: The imported project "D:\wwwroot\www.snip.co.nz\packages\PostSharp.2.1.6.13\tools\PostSharp.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
CacheAttribute.cs (8,7):
errorCS0246: The type or namespace name 'PostSharp' could not be found (are you missing a using directive or an assembly reference?)
…etc…