Publish to File ASP.NET Mono Project on Mac OS X with publish profile

I need to publish my asp.net project with mono msbuild.

I use this command:

mono "/Library/Frameworks/Mono.framework/Versions/Current/lib/mono/msbuild/15.0/bin/MSBuild.dll" "/Users/volkanserter/RiderProjects/MacDeployTest/MacDeployTest.sln" "/verbosity:q" "/p:DeployOnBuild=true" "/p:PublishProfile=pubprofile" "/p:Configuration=Release" "/p:platform=Any CPU"

 

I have pubprofile.pubxml under Properties>PublishProfiles>pubprofile.pubxml.

This command builds the project but, it does not package and copy to file.

My pubprofile.pubxml content is:

<?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 http://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<WebPublishMethod>FileSystem</WebPublishMethod>
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<SiteUrlToLaunchAfterPublish />
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
<ExcludeApp_Data>False</ExcludeApp_Data>
<publishUrl>/Users/volkanserter/Desktop/publish</publishUrl>
<DeleteExistingFiles>False</DeleteExistingFiles>
</PropertyGroup>
</Project>

 

Please sign in to leave a comment.