Hi,
I've installed Visual Studio 2005 Extensions for Windows Workflow Foundation (beta 2) and I have a problem when I add "Sequential Workflow (with code separation)" to a "Sequential Workflow Console Application" project.
After adding the item to the project two files appear in the VS Solution Explorer: Workflow.xoml as Workflow.xoml.cs. But the problem is that they aren't related. The .xoml.cs isn’t under the .xoml.
I can edit the workflow in the designer, I even can add activities to the workflow but when I try to add a Code activity and try to set the ExecuteCode property the method isn't created in the .xoml.cs file.
I've discovered that the problem is in the .csproj projet file. There is a DependentUpon tag missing.
Wrong:
<Compile Include="Workflow.xoml.cs">
<SubType>Componente</SubType>
</Compile>
Correct:
<Compile Include="Workflow.xoml.cs">
<SubType>Componente</SubType>
<DependentUpon>Workflow.xoml</DependentUpon>
</Compile>
I have to edit the .csproj file in notepad to correct the problem every time I add this kind of item to the project. Does anyone know what's the problem
VS2K5 Professional Edition version 8.0.50727.42
Extensions version 3.0.3603.4
WinFX Runtime Components 3.0 - Beta 2
Thanks

DependentUpon missing in VS2K5 Extensions beta 2
NSBS-JAmes
Hi Ricardo,
Does your directory path contain a "." (dot)
In Beta2 if your path contains a dot "." then the dependant files were messed up. This issue was fixed post Beta2.
Thanks,
Chethan
Cloudie
Hi Ricardo,
A similar problem was reported by someone yesterday. The post is http://forums.microsoft.com/msdn/showpost.aspx postid=225138&siteid=1
Are you using a virtual(mapped) drive like Mark And what is the behavior you see with the the Code only template and WinForms app It would be great if you could help me out with these details.
Thanks
Devinder
pschlang
thank your answer, Devinder!
i installed VSSDK Oct 2005,
i has already readed half more. but i did not find the dependent file vs feature subject.
can you tell me where subject i can find this intruduce
thanks.
matt lin
CarrieE.Wells
Hi Ricardo,
Did you encounter the same problem with Windows Application project as well
Thanks
Devinder
Navdeep98296
Hi,
How can I add workflow items to a Windows Forms application
I only have "Sequential Workflow Console Application" in the Visual Studio project templates. I tried to create a Windows Forms application and then add a workflow item but the workflows items aren't available there.
I also tried with "State Machine Workflow Console Application", with "Sequential Workflow Library" and with "State Machine Workflow Library" and the problem remains.
Ricardo
Neoki
Hi Chethan,
I thinks that's the problem. Has I said before, I was creating the projects in MyDocuments folder. The full path of MyDocuments is:
C:\Documents and Settings\<my username>.<my domain>\ My Documents\Visual Studio 2005\Projects. So, there is a "," (dot) between my username and domain.
I tried to create a project in the MyDocuments folder of a local account (the full path doesn't have a dot) and everything was ok.
Thanks,
Ricardo
drighetto
Hi Matt,
The part that you want to implement is a VS feature - dependent files. You should be able to find this in the VSIP help.
Thanks
Devinder
Chandu_K
Hi Ricardo,
I am sorry I was not entirely clear. I am trying to isolate if it is VS or a Workflow Related Issue. In Windows Application project there is the concept of Dependent files as well. I was wondering if that was working on your machine.
Create a new WindowApplication Project - Form1.cs file is created with the Dependent file Form1.Designer.cs. On your machine does the Form1.Designer.cs show as a dependent file or not You do not have to add any worklows to this one.
Similarly when you use the code only template in Workflow Project - Does the Workflow1.Designer.cs show up as a dependent file or not.
If you could let me know what behavior you see in the above two scenarios it would be great
Thanks
Devinder
Bobby Ortiz
Hi,
I'm not using a mapped drive. My project is located under MyDocuments\VisualStudio 2005\Workflow HOL\...
But I created another project in c:\temp and there was no problem.
So I think that maybe there is a problem with the location of the projects in Visual Studio 2005.
Thanks
Ricardo
Richard ?usta
Hi Devinder.
i recently using VSSDK to create my custom vspackage, there is a custom editor,
for example ,i used .wfx to the custom file extension. i will open the .wfx file with my custom graphic editor, and use CodeDom to generate code file dependent upon the .wfx file , if it successful , i will get tow file like below:
class1.wfx
class1.designer.cs
i user the projectnode.AddChild method to do this work,but it can't dependent each other,
how can i do to make projectnode dependent another projectnode
please give me a hand.
thanks a lot.!
RozLee
Hi,
I think it's a workflow related issue.
In a Windows Forms application there was no problem. I added a second form and also a DataSet and they showed up correctly each one with the corresponding dependent file.
In a workflow project the problem remains but it's only with the workflow items "with code seperation". The problem is with .xoml and .xoml.cs files. The other workflow items (code), the .cs and the .designer.cs are correct (they are dependent). In this workflow project I also tried to add a Windows Form and a DataSet and there was no problem.
Thanks.
Ricardo