I have a Cloud Service project that I use to deploy my WebRole through VSTS, on a Hosted Agent.
The build definition is created with the Azure Cloud Services template, and has, amongst others, these steps:
- Build solution **\*.sln (step #1)
- Build solution **\*.ccproj (step #2)
I've added
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
To the .csproj file of the class library that uses unsafe code (for the release and debug configurations). I am using the release configuration when deploying.
The Build solution **\*.sln step passes, but the Build solution **\*.ccproj step fails.
By inspecting the logs, I can see that the Build solution **\*.sln step is started with the /unsafe+ parameter, however the second build step is not.
Moreover, the MSBuild arguments for step #1 are empty, but for step #2, they are:
/t:Publish /p:TargetProfile=$(targetProfile) /p:DebugType=None /p:SkipInvalidConfigurations=true /p:OutputPath=bin\ /p:PublishDir="$(build.artifactstagingdirectory)\"
How can I add this parameter to the ccproj build?