I am trying to execute a Web Deploy on my .NET Core 2.0 Project. Deploying manually from within Visual Studio's "Publish" feature works fine.
From the command line, I am executing:
dotnet publish TechsportiseOnline/TechsportiseOnline.csproj -c Release /p:PublishProfile="Properties\PublishProfiles\techsportise.com - Web Deploy" /p:Username="***" /p:Password="***"
The command comes back as successful, with no errors at all - even with verbosity set to Diagnostic. For all intents and purposes, Visual Studio thinks its been a success.
However when I visit the website, the change I have made is very clearly not there. I have tried visiting Incognito and clearing cache and the change simply is not deployed.
I have tried the same command using dotnet build /p:DeployOnBuild=true and I have also tried specifying all the parameters manually
dotnet build TechsportiseOnline/TechsportiseOnline.csproj -c Release /p:DeployOnBuild=true /p:DeployIisPath="techsportise.com" /p:MSDeployServiceURL="***" /p:Username="***" /p:Password="***" /p:SkipExtraFilesOnServer=true /p:AllowUntrustedCertificate=true
I don't think its a local system issue as I am getting the same issue using Bitbucket Pipelines - reporting success even though no changes are visible post-deploy. I don't think it's a server issue as it works when manually executing Publish inside VS.
Any ideas?
You are looking for changes using the web browser. Instead verify the files have changed. I am assuming they have and your issue it the browser is caching the website. Try refreshing with
ctr + F5or try clearing the browser data.