Azure / autorest.csharp

Extension for AutoRest (https://github.com/Azure/autorest) that generates C# code
MIT License
142 stars 166 forks source link

[TypeSpec CI] Automation error: Project file does not exist. #3515

Open l0lawrence opened 1 year ago

l0lawrence commented 1 year ago

I have a typespec PR out for EventGrid and I am seeing this error on the azure-sdk-net-2 run: MSBUILD : error MSB1009: Project file does not exist. in the CI (with errorCode False)

Could I get some assistance debugging this?

Edit project-dir should be Azure.Messaging.EventGrid which fixed the File not exist issue but caused conflicts between autorest.md and tsp-location.yaml, still debugging :)

Cannot define both /mnt/vss/_work/1/s/azure-sdk-for-net/sdk/eventgrid/Azure.Messaging.EventGrid/src/autorest.md and /mnt/vss/_work/1/s/azure-sdk-for-net/sdk/eventgrid/Azure.Messaging.EventGrid/src/../tsp-location.yaml in the same project

archerzz commented 1 year ago

I'm not familar with the pipeline. But there seem 2 issues:

  1. Azure.Messaging.EventGrid.Namespaces is the project folder name (see here), which seems wrong. It should be Azure.Messaging.EventGridV2 defined in the tsconfig.yaml.

    10:58:41.379 cmdout [Invoke-GenerateAndBuildV2.ps1] MSBUILD : error MSB1009: Project file does not exist. 10:58:41.379 cmdout [Invoke-GenerateAndBuildV2.ps1] Switch: /mnt/vss/_work/1/s/azure-sdk-for-net/sdk/eventgrid/Azure.Messaging.EventGrid.Namespaces/src

  2. The pipeline actually failed here. Looks like our script tries to find some artifacts of which the path doesn't exist on build machine.

    10:58:41.550 cmderr W [Invoke-GenerateAndBuildV2.ps1] | Cannot find path 10:58:41.550 cmderr W [Invoke-GenerateAndBuildV2.ps1] | '/mnt/vss/_work/1/s/azure-sdk-for-net/artifacts/packages/Debug/' because 10:58:41.550 cmderr W [Invoke-GenerateAndBuildV2.ps1] | it does not exist.

m-nash commented 1 year ago

@raych1 did you change we talked about recently fix this?