MicrosoftDocs / appcenter-docs

content repo for Visual Studio App Center on docs.microsoft.com
https://docs.microsoft.com/appcenter/
Creative Commons Attribution 4.0 International
122 stars 320 forks source link

AppCenter Post Clone script must be in root or with .sln file (doesn't work if in sub directory with .csproj) #936

Open joehanna opened 4 years ago

joehanna commented 4 years ago

The documentation says: "Place the scripts with the format specified below next to the project-level (.xcodeproj, .csproj, .sln, or package.json) file"

However, if the .csproj is in a subdirectory below .sln, placing the Post Clone script in the subdirectory with the .csproj does not work (script is not recognised).

Moving it back up to the root folder (or with the .sln file) worked.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

King-of-Spades commented 4 years ago

@joehanna Thanks for the report! I'm trying to reproduce the issue you're describing with this sample: https://github.com/microsoft/appcenter-Xamarin.UITest-Demo/tree/master/

I am able to see the build scripts in the .csproj sub folders, however; it looks like they're only displayed if I'm targeting the .csproj file in the Build configuration. Building with the .sln as the target doesn't seem to show those; so I think Build is only looking in the folder containing the main target.