I have an existing solution with several projects. I have created publish profiles for some of those projects. This was done a long time ago and those publish profiles have been working well.
But today, I went to publish one of those projects and I was prompted to create a publish profile for it. For some reason, it seems to no longer be finding my existing profiles.
The only thing that has changed recently is that I moved my source control to a different GitHub repository. I thought maybe the publish profiles did not get checked in. However, looking closer, I can see that my profile file is there! I can look at the contents, and it appears to be my publish settings. But for some reason, Visual Studio doesn’t think it exists.
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project>
<PropertyGroup>
<DeleteExistingFiles>true</DeleteExistingFiles>
<ExcludeApp_Data>false</ExcludeApp_Data>
<LaunchSiteAfterPublish>true</LaunchSiteAfterPublish>
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
<LastUsedPlatform>x64</LastUsedPlatform>
<PublishProvider>FileSystem</PublishProvider>
<PublishUrl>D:\Users\jwood\Desktop\Railtrax Projects\Pegasus</PublishUrl>
<WebPublishMethod>FileSystem</WebPublishMethod>
<SiteUrlToLaunchAfterPublish />
<TargetFramework>net9.0</TargetFramework>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<PublishReadyToRun>true</PublishReadyToRun>
<ProjectGuid>cd06b4b7-15ca-47b4-89b0-05d41a6e8107</ProjectGuid>
<SelfContained>false</SelfContained>
</PropertyGroup>
</Project>
Note that the publish profile file has a red circle next to it. And when I hover over that circle, I get a tool tip that says it is being ignored. But I think this is related to source control.
Does anyone know why Visual Studio has stopped using my publish profiles? Or how I can tell Visual Studio where my publish profile file is?
