Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > Copy items for BizTalk project fails
 

Copy items for BizTalk project fails

I'm working (also) on a BizTalk software factory and I have a solution generated with several projects

A Schemas, Maps, Orchestrations and UnitTest project.

Obviously only the UnitTest project is a Class library, the others are BizTalk projects.

Generating the project structure works fine.

Also having a class deployed into the UnitTest project is no problem.

My problem is that I want to do exactly the same inthe OrchestrationBizTalk project, but I can't get it to work.

When I've generated the solution, the Orchestration project shows the subfolder and the ODX in there, but is isn't present on the filesystem (which is also indicated by an exclamation icon).

So it works great on the class library (properties/assemblyinfo.cs) but it doesn't on the BizTalk project (subfolder/suborch.odx).

The settings on the the file are the same, "Content" and "Copyif newer"

The project structure is ok, so the btproj file is fine.

My vstemplate looks like this:

<VSTemplate Version="2.0.0" Type="Project" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005">
<TemplateData>
<Name>BizTalk Project</Name>
<Description>BizTalk Project</Description>
<Icon Package="{FAE04EC1-301F-11d3-BF4B-00C04F79EFBC}" ID="4547" />
<ProjectType>CSharp</ProjectType>
<SortOrder>20</SortOrder>
<CreateNewFolder>true</CreateNewFolder>
<DefaultName>BizTalk</DefaultName>
<ProvideDefaultName>true</ProvideDefaultName>
</TemplateData>
<TemplateContent>
<Project File="BizTalkProject.btproj" ReplaceParameters="true">
<ProjectItem ReplaceParameters="true">subfolder/suborch.odx</ProjectItem>
</Project>
</TemplateContent>
<WizardExtension>
<Assembly>Microsoft.Practices.RecipeFramework.VisualStudio, Version=1.4.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly>
<FullClassName>Microsoft.Practices.RecipeFramework.VisualStudio.Templates.UnfoldTemplate</FullClassName>
</WizardExtension>
</VSTemplate>

Can anyone guide me in the right direction?
Greyfox  Thursday, March 06, 2008 9:56 AM
The only thing I can think of is that the implementation of BizTalk projects doesn't care about the "Build Action" and "Copy To Output" properties for each file. Maybe they haven't implemented support for that. As I'm not familiar with the BizTalk project implementation I can't really tell.

I believe your best bet would be to ping the BizTalk support forums and ask them if this should be supported or not. If you already have a very simple BizTalk project with no GAX and the files are not being copied I think they're just lacking support for this.
vga  Thursday, March 06, 2008 5:25 PM

Hi Grayfox,

I'm not familiar with Biztalk projects as to know if they implement unfolding/etc in the way other project types do.

If you have checked that the files are being copied to the Templates folder then it should be something with the BizTalkProject.btproj, does it have corresponding entries for the file that is not appearing copied on the file system?
vga  Thursday, March 06, 2008 2:53 PM

Well, the problem is that the file isn't being copied.

I can see that the project file is expecting a file but it cannot find it.

After exploring the project folder it is confirmedthat the file is missing.

BizTalk is a different projecttype which causes problems in other things regarding Visual Studio.

Do you know why it appears to matter if it is a csproj or a btproj regarding to copying the files?

Greyfox  Thursday, March 06, 2008 2:59 PM
The only thing I can think of is that the implementation of BizTalk projects doesn't care about the "Build Action" and "Copy To Output" properties for each file. Maybe they haven't implemented support for that. As I'm not familiar with the BizTalk project implementation I can't really tell.

I believe your best bet would be to ping the BizTalk support forums and ask them if this should be supported or not. If you already have a very simple BizTalk project with no GAX and the files are not being copied I think they're just lacking support for this.
vga  Thursday, March 06, 2008 5:25 PM

I think you're right in that BizTalk projects don't support 'Build Action' and 'Copy to Output'. That must be the reason for this behaviour.

Thanks for your replies.

Greyfox  Monday, March 10, 2008 9:18 AM

You can use google to search for other answers

Custom Search

More Threads

• How to Add Fixed Assets in GAT?
• Recipe framework error after deployment - serviceProvider is null
• Nested Solution Folder Parent?
• Generating custom BAL after using repository factory
• The project factory Library is not registered
• Create different structures in Visual Studio and File System
• ProjectItem TargetFileName in App_Code folder
• Actions in Visual Studio 2005 Guidance Automation Toolkit (GAT) Very Slow
• Download not available
• Cannot bind recipe to customized project type in solution folder.