Reputation: 2713
I'm using the Visual Studio Team Service online Ci/CD process to automate our build. This has been working until we have a project that utilizes .NET core and the Microsoft.AspNetCore.Cryptograhpy package in our project. We also upgraded the IDE to VS 2017.
Below is the error on the build agent:
Things that I've tried:
2018-06-29T13:51:48.4627803Z Checking compatibility for Microsoft.AspNetCore.Cryptography.Internal 2.0.3 with .NETFramework,Version=v4.6.1 (win-x86). 2018-06-29T13:51:48.4628026Z All packages and projects are compatible with .NETFramework,Version=v4.6.1 (win-x86). 2018-06-29T13:51:48.4628199Z Committing restore...
I can build my project without any error via my local Visual Studio 2017 on this machine where my build agent runs as a service.
My agent runs as a service using the account that has administrator right.
I updated our .NET Core runtime to 2.1.
We are using the default setting that comes with the NuGet, pls note this has working up until recently.
Can anyone give me a hint on this? could this be some sort of environment parameter or permission issue or something else at play?
I also look at the project file .csproj of the solution that caused this error or the solution that needs this package and here is its definition:
Upvotes: 1
Views: 992
Reputation: 2713
I have yet to see why I did below fix the issue but I post it anyway; If I find the real reason then I'll update my answer.
I manage to get this to compile after I went into my Build definition at the Build Visual Studio task and go into the Advanced -> MSBuild Architecture and changed it from MSBuild x86 to MSBuild x64.
Upvotes: 1