user2835586
user2835586

Reputation: 199

how to locally generate the packaging files (*.cspkg, *.cscfg and *.csdef )

I changed the project from classic to extended support (as recommended). Now there are 4 configuration files required when importing via azure portal. These files are *.cspkg, *.cscfg and *.csdef zip

How to generate from VS2022?

I know I can directly deploy to the azure service but looking for manual process

Upvotes: 0

Views: 263

Answers (1)

Harshitha
Harshitha

Reputation: 7347

I didn't find an option to create classic project in VS 2022.I can only see the Extended support.

To manually create the configuration files, right click on the project folder and select Package.

enter image description here

  • Build configuration specifies the folder to create the configuration files.

  • The configuration files will be generated in the bin => Debug/Release folder.

  • Here I have selected the below settings

Service configuration - local 
Build configuration Debug 

I got the below error

WAT001 : At least one web or worker role is required but none could be found   
  • I have added the new Web Role Project.

enter image description here

enter image description here

  • Now Iam able to generate the configuration files. enter image description here

  • You can see the 3 files .cspkg,.cscfg and .csdef are generated in the bin => Debug => app.publish folder.

enter image description here

Upvotes: 0

Related Questions