Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

VS Package, C#: Biztalk artifact and ProjectItem.FileCodeModel

$
0
0

I am trying to put together a small vspackage in VS 2012 as a proof of concept for generating automatic unit tests for biztalk 2013 schemas and maps inside the VS IDE

So far I can add a unit test project to current solution, but I am unable to get the proper class type name of the current artifact (schema or map) as the ProjectItem.CodeModel and .FileCodeModel is not defined (null)

Any ideas?
I have tried traversing the properties collection but no luck either

I could get the info by attacking the sourcefiles with brute force should be straight forward but it would be nice with a more elegant approach

[EDIT]

The data I need is located in the project file (*.btproj)

<ItemGroup><Schema Include="PropertySchema.xsd"><TypeName>PropertySchema</TypeName><Namespace>CDM_DINS</Namespace><SubType>Task</SubType></Schema><Schema Include="Schema_CDM_DINS.xsd"><TypeName>Schema_CDM_DINS</TypeName><Namespace>CDM_DINS</Namespace><SubType>Task</SubType></Schema></ItemGroup>

Thanks in advance  /Peter


Viewing all articles
Browse latest Browse all 4410

Trending Articles



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