Quantcast
Channel: biztalkdeployment Forum Rss Feed
Viewing all articles
Browse latest Browse all 1089

New Post: ProjectName+EnvironmentName

$
0
0
Thanks Tom,

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:&quot;@(SchemasQualified)&quot; -ApplicationName:&quot;$(BizTalkAppName)&quot; -Options:GacOnAdd,GacOnImport,GacOnInstall -Overwrite"
        Condition="'$(DeployBizTalkMgmtDB)' == 'true' and '%(Identity)' == '%(Identity)'" />

  <Exec Command="&quot;$(Gacutil)&quot; /f /i &quot;@(SchemasQualified)&quot;"
      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

Viewing all articles
Browse latest Browse all 1089

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>