Mobile.BuildTools icon indicating copy to clipboard operation
Mobile.BuildTools copied to clipboard

Receiving message required parameter ConfigurationPath not given.

Open MarkLFT opened this issue 4 years ago • 5 comments

I am receiving a build time error. The "SecretsJsonTask" task was not given a value for the required parameter "ConfigurationPath".

But I cannot find where I am supposed to provide this path, and what value I should enter. I have searched the documentation and generally on the internet, but I can find no reference to this. What step am I missing?

Many thanks.

MarkLFT avatar Jul 24 '21 09:07 MarkLFT

Some addition info, the path to the error is c:\users\name.nuget\packages\mobile.buildtools\2.0.245\build, file Secrets.targets, Line 16

MarkLFT avatar Jul 24 '21 09:07 MarkLFT

It's in local build from VS ? Or with a CI Platforms (AzureDevOps, AppCenter , ...) ?

EDIT : i read your other issue, i assume it's form DevOps so. I think it's related with my issue #281. You must attach the bin log like specified in this issue.

Seuleuzeuh avatar Jul 26 '21 10:07 Seuleuzeuh

For this problem it is on a local VS build. he other issues are on an Azure DevOps build.

For this problem, it is random. It has not happened today. But yesterday, happened about 10 times.

MarkLFT avatar Jul 26 '21 12:07 MarkLFT

Here's the bin log from https://github.com/shinyorg/shiny/tree/dev/tests/Shiny.Tests.Device - this is failing on a local build

shinytestsdevice.zip

ConfigurationPath is indeed, not being passed to the task.

Things to note: The build parameter for solution directory is c:\dev\shinylibs\shiny\tests\ when in actual fact, it is c:\dev\shinylibs\shiny\

aritchie avatar Jul 27 '21 18:07 aritchie

It appears there is a verified bug here... Until I can get a new build out please use the following in a Directory.Build.props

<Target Name="MBTHack"
        BeforeTargets="Secrets"
        DependsOnTargets="MobileBuildToolsInit">
</Target>

dansiegel avatar Jul 27 '21 20:07 dansiegel