I am trying to publish azure function v1.0 using publish profile and contents of publish profile is given below
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration>Release</Configuration>
<Platform>Any CPU</Platform>
<PublishDir>C:\New folder</PublishDir>
<PublishProtocol>FileSystem</PublishProtocol>
<TargetFramework>net48</TargetFramework>
</PropertyGroup>
</Project>
and this publish profile we are using with below given msbuild command (FolderProfile is the name of publish profile that we are using within command)
C:\code\msbuild "mufunctionapp.csproj" /t:Rebuild /p:Configuration=Release;PublishProfile=PublishProfiles/FolderProfile
But after running this command nothing gets copied(published) into the folder (C:\New folder) specified within publish profile. But I could see the publish artifacts ( binaries) being copied to obj\Release\net48\PubTmp\Out\bin
But If I use the same publish profile with Visual Studio 2019 ,the publish artifacts ( binaries) are getting copied into the folder specified within publish profile.
I want to publish the binaries using msbuild command with given publish profile within CI but as It is not working locally I am unable to use the msbuild there in CI pipeline.
Could you please tell me if there is anything that I am doing wrong in MSBUILD or in publish profile.