qetza / vsts-xdttransform-task

Visual Studio Team Services Build and Release extension that applies XDT transforms on XML files.
MIT License
20 stars 9 forks source link

Exception calling "Save" with "1" argument(s): "Object reference not set to an instance of an object." #9

Closed aminebz949904 closed 7 years ago

aminebz949904 commented 7 years ago

Hi,

I'm using vsts xdt transform task, and it's returning the following error:

Exception calling "Save" with "1" argument(s): "Object reference not set to an instance of an object."

Any help?

image

Thanks

qetza commented 7 years ago

Hi @aminebz949904,

I'll look into this. Could you tell me which version of powershell you have installed on your build server and which version of the .net framework?

Thanks

aminebz949904 commented 7 years ago

Hi qetza,

Thank you for your help..

Powershell version on the build server is:

Major Minor Build Revision 5 1 14393 1715

.net version 4.5.2

Thank you

aminebz949904 commented 7 years ago

Hi,

Actually, I have used

xdt:Transform="SetAttributes(ApplicationTypeName)"

instead of: xdt:Transform="Replace"

And it worked fine.

Thank you for your help.