Thats dumb, its already in my config is there a way to have the script use whats in the publish profile? Why is it I have one simple command to package AND deploy but not separate commands to package THEN deploy?
Edit: so its also not getting<EnableMSDeployAppOffline>true</EnableMSDeployAppOffline>from my publish profile either
As far as I know, if select web deploy package, the profile will not contain the deployed server path and DeployIisAppPath.
If you don't select the DeployOnBuild it will not read the server path when you use mypackage.deploy.cmd.
Its profile is as below:
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
by editing this MSBuild file. In order to learn more about this please visit https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<WebPublishMethod>Package</WebPublishMethod>
<LastUsedBuildConfiguration>Debug</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<SiteUrlToLaunchAfterPublish />
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
<ExcludeApp_Data>False</ExcludeApp_Data>
<DesktopBuildPackageLocation>C:\Users\Brandozh\Desktop\DeployPackage\AspNetNormalIssue.zip</DesktopBuildPackageLocation>
<PackageAsSingleFile>true</PackageAsSingleFile>
<DeployIisAppPath>bradnotest/testapp</DeployIisAppPath>
<PublishDatabaseSettings>
<Objects xmlns="" />
</PublishDatabaseSettings>
</PropertyGroup>
</Project>
Best Regards,
Brando
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
None
0 Points
10 Posts
How do I create a deployment package with my publish profile settings?
Mar 28, 2018 04:13 PM|red888|LINK
I cant understand why this is so inconsistent.
I can do this to package and deploy in one step:
The publish profile includes which server to deploy to and it just works with these settings in the publish profile:
Now I want to create a package and deploy it in a separate step
So I run this to create the package (need to specify the project instead of the solution- first weird inconsistency)
Now my expectation is the package has all my publish profile settings in it (like the server to deploy to) but it does not!
Doing this is fails with "site does not exist" error:
I have to plugin the name of the server manually:
Thats dumb, its already in my config is there a way to have the script use whats in the publish profile? Why is it I have one simple command to package AND deploy but not separate commands to package THEN deploy?
Edit: so its also not getting
<EnableMSDeployAppOffline>true</EnableMSDeployAppOffline>
from my publish profile eitherStar
9831 Points
3120 Posts
Re: How do I create a deployment package with my publish profile settings?
Apr 04, 2018 02:24 AM|Brando ZWZ|LINK
Hi red888,
As far as I know, if select web deploy package, the profile will not contain the deployed server path and DeployIisAppPath.
If you don't select the DeployOnBuild it will not read the server path when you use mypackage.deploy.cmd.
Its profile is as below:
Best Regards,
Brando