Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use VS2017 to publish WebAPI , get stuck in `preparing profile`

Right click project -> publish -> select publish to folder -> publish

then got stucked in “preparing profile” . (I'vs waited for 10 mins)

enter image description here

like image 347
wtf512 Avatar asked Jun 30 '17 02:06

wtf512


3 Answers

Go to your project folder ang go to "Properties\PublishProfile" and delete all profiles. Then try to publish again.

like image 85
Magnus Avatar answered Oct 04 '22 12:10

Magnus


Are you using ftp publishing ?

Looks like an issue with VS2017 and the status says still under investigation.

From the thread:

We are aware of the issue with ftp publishing. The bug has been fixed and should be available in an upcoming release.

Please do following

  • Delete all files in the Properties\PublishProfiles folder.
  • Close Visual Studio.
  • delete the user preference file .suo
  • Create a new profile and try again.

If you are still running into issue,You can use publish profile from command line using dotnet build command or msbuild command

  • dotnet build /p:DeployOnBuild=true /p:PublishProfile=FolderProfile
  • msbuild /p:DeployOnBuild=true /p:PublishProfile=FolderProfile
like image 35
Rohith Avatar answered Oct 04 '22 13:10

Rohith


Delete the Folder named PublishProfiles fix the problem. I believe is there a issue related to read/write folder problems.

like image 36
Mauro J. Mendonça Júnior Avatar answered Oct 04 '22 13:10

Mauro J. Mendonça Júnior