dansiegel / Mobile.BuildTools

The Mobile.BuildTools makes it easier to develop code bases in a clean, consistent, secure, and configurable way. Determine at Build which environment your app needs to run on, and what Client Secrets it should have. Plus many more amazing features!
http://mobilebuildtools.com
MIT License
228 stars 29 forks source link

Receiving message required parameter ConfigurationPath not given. #282

Open MarkLFT opened 3 years ago

MarkLFT commented 3 years ago

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 commented 3 years ago

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

Seuleuzeuh commented 3 years ago

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.

MarkLFT commented 3 years ago

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.

aritchie commented 3 years ago

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\

dansiegel commented 3 years ago

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>