Thanks Tom,
I did the following.
in Deployment.btdfproj added
<ItemGroup>
in BizTalkDeploymentFramework.targets added
<Target Name="PreInitializeAppName" BeforeTargets="InitializeAppName">
<PropertyGroup>
</Target>
BEFORE
<Target Name="InitializeAppName" Condition="'$(BizTalkAppName)' == ''">
Lastly
in SettingFileGenerator for 'Exported_LocalSettings.xml' I added the following ROW
Setting:Test
ApplicationName sdm.pubsub3.sys1
Did the build MSI.
Issue during deployment:
EXEC : error : Unable to generate Luid. Provide the following parameter(s). [C:
\Program Files (x86)\pubsub3 for BizTalk\1.0\Deployment\Deployment.btdfproj]
<Target Name="DeploySchemas" DependsOnTargets="UndeploySchemas" Condition="'$(IncludeSchemas)' == 'true'">
My Question:
Is it because of the new variable ApplicationName (because I was able to deploy the application previously)..
Thanks
Neeraj
I did the following.
in Deployment.btdfproj added
<ItemGroup>
<PropsFromEnvSettings Include="SsoAppUserGroup;SsoAppAdminGroup;ApplicationName" />
</ItemGroup>in BizTalkDeploymentFramework.targets added
<Target Name="PreInitializeAppName" BeforeTargets="InitializeAppName">
<PropertyGroup>
<BizTalkAppName>$(ApplicationName)</BizTalkAppName>
</PropertyGroup></Target>
BEFORE
<Target Name="InitializeAppName" Condition="'$(BizTalkAppName)' == ''">
<CreateProperty Value="$(ProjectName)_$(ProjectVersion)" Condition="'$(EnableSideBySide)' == 'true'">
<Output TaskParameter="Value" PropertyName="BizTalkAppName" />
</CreateProperty>
<CreateProperty Value="$(ProjectName)" Condition="'$(EnableSideBySide)' != 'true'">
<Output TaskParameter="Value" PropertyName="BizTalkAppName" />
</CreateProperty>
<Message Text="BizTalk Application Name is $(BizTalkAppName)" />
</Target>Lastly
in SettingFileGenerator for 'Exported_LocalSettings.xml' I added the following ROW
Setting:Test
ApplicationName sdm.pubsub3.sys1
Did the build MSI.
Issue during deployment:
EXEC : error : Unable to generate Luid. Provide the following parameter(s). [C:
\Program Files (x86)\pubsub3 for BizTalk\1.0\Deployment\Deployment.btdfproj]
-Source Required. The 'SourceLocation' property of the resource.
That happens When the following part of the code is executed<Target Name="DeploySchemas" DependsOnTargets="UndeploySchemas" Condition="'$(IncludeSchemas)' == 'true'">
<!-- Deploy schema assemblies. -->
<Exec Command ="BTSTask.exe AddResource -Type:BizTalkAssembly -Source:"@(SchemasQualified)" -ApplicationName:"$(BizTalkAppName)" -Options:GacOnAdd,GacOnImport,GacOnInstall -Overwrite"
Condition="'$(DeployBizTalkMgmtDB)' == 'true' and '%(Identity)' == '%(Identity)'" />
<Exec Command=""$(Gacutil)" /f /i "@(SchemasQualified)""
Condition="'$(DeployBizTalkMgmtDB)' == 'false' and '%(Identity)' == '%(Identity)'" />
</Target>My Question:
Is it because of the new variable ApplicationName (because I was able to deploy the application previously)..
Thanks
Neeraj