I've had a crash of a Windows 10 development PC with Visual Studio 2019. I could restore everything but the deployment settings for a web application to an IIS webserver. I still have the old HDD with all user settings and alike. But I can't figure out, where these settings are stored. They seem not to be part of the Visual Studio project. Can anybody help me where (what folder, what file) these deployment settings/targets are stored?
I truly believe this issue hasn't been asked before, my apologies it if was. :-)
OK, hours of hours later, I found out the following and solved the issue:
[Solution]\[Project]\Properties\PublishProfiles\*.pubxml
and *.pubxml.user
[Solution]\[Project]\{Project}.csproj.user
There is a node:
<NameOfLastUsedPublishProfile>
, which may contain (not always!) the
full path to the profile. This was the case for me. And since the
path changed, the profile was there, but simply not shown in the IDE.Correcting this solved the issue for me. :-)