advancedrei / sendgridplus-csharp

13 stars 7 forks source link

Can't deploy website to Azure using Kudu with SendGridPlus. #3

Closed smithkl42 closed 10 years ago

smithkl42 commented 11 years ago

I just switched from using SendGrid to SendGridPlus, to get rid of the Microsoft.Bcl.Build dependency. Unfortunately, I can't get my website to deploy to Azure via the standard Git publishing mechanism. This is the error I get:

 Payboard.Web -> C:\DWASFiles\Sites\payboardbeta\VirtualDirectory0\site\repository\Payboard.Web\bin\Payboard.Web.dll
  Transformed Web.config using C:\DWASFiles\Sites\payboardbeta\VirtualDirectory0\site\repository\Payboard.Web\Web.Release.config into obj\Release\TransformWebConfig\transformed\Web.config.
  Copying all files to temporary location below for package/publish:
  C:\DWASFiles\Sites\payboardbeta\Temp\d7b75e56-9a0a-4891-b1fc-b1351b57c040.
D:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web\Microsoft.Web.Publishing.targets(3094,5): error : Copying file lib\CodeScales.Http.dll to C:\DWASFiles\Sites\payboardbeta\Temp\d7b75e56-9a0a-4891-b1fc-b1351b57c040\lib\CodeScales.Http.dll failed. Could not find file 'lib\CodeScales.Http.dll'. [C:\DWASFiles\Sites\payboardbeta\VirtualDirectory0\site\repository\Payboard.Web\Payboard.Web.csproj]
An error has occurred during web site deployment.

I suspect the error has to do with the .nuspec file putting the CodeScales.Http.dll file in content\lib\ instead of lib\net45.

    <files>
        <file src="content\lib\CodeScales.Http.dll" target="content\lib\CodeScales.Http.dll" />
        <file src="lib\net45\SendGridPlus.dll" target="lib\net45\SendGridPlus.dll" />
        <file src="lib\net45\SendGridPlus.pdb" target="lib\net45\SendGridPlus.pdb" />
        <file src="lib\net45\SendGridPlus.xml" target="lib\net45\SendGridPlus.xml" />
    </files>
robertmclaws commented 11 years ago

I'm sorry that I'm just now getting to this. SendGrid updated their code a while back to stop using CodeScales.Http.dll entirely. I'm going to be revamping my version of the library to incorporate these changes, and get an updated version out. I'm not committing to an ETA, but I will try to have it accomplished within a week or so.

Again, sorry for the delay.

-Robert

robertmclaws commented 10 years ago

This issue has been addressed in the latest release. Thanks!