I added a c# dll as external reference and added one of its methods to my project. That method expects an input parameter which is named as 'Inputs' and output is a List<workitem>. When I build the project it errors out in STEP 2 with the error Syntax error, expected: identifier

I looked at the IL but couldn't figure out, so pasting it here:

ExternalProcessClient VSTSLibrary

VSTSApp.GetWorkItemsInputs MapsTo GraphiteGTC.VSTS.Core.Wit.WorkItems.Model.GetWorkItemsInputs
VSTSApp.WorkItem MapsTo GraphiteGTC.VSTS.Core.Wit.WorkItems.Model.WorkItem
VSTSApp.ReferenceLinks MapsTo GraphiteGTC.VSTS.Core.Wit.WorkItems.Model.ReferenceLinks

GraphiteGTC.VSTS.Core.Wit.WorkItems.WorkItemsClient.GetWorkItems( GraphiteGTC.VSTS.Core.Wit.WorkItems.Model.GetWorkItemsInputs Inputs ) returns List<GraphiteGTC.VSTS.Core.Wit.WorkItems.Model.WorkItem>

EndExternalProcessClient

Appreciate if someone can help!!

asked 07 Nov, 18:00

Nitin%20Chhabra's gravatar image

Nitin Chhabra
41118
accept rate: 20%


Parsing the IL would give the error you mentioned because you are trying to use one of the reserve words of Graphite Studio. If you look at Reference Document - Graphite Studio Reserve Words , Inputs is one of the Reserve Words there.

So, make sure you don't use Graphite Studio reserve words while naming your entities or properties.

In your case perform the following steps and this time your build should succeed
1. Rename 'Inputs' to something else
2. Build your dll again
3. Add the dll as reference again
4. Edit the method and save
5. Build your project

link

answered 07 Nov, 18:24

Nitin%20Chhabra's gravatar image

Nitin Chhabra
41118
accept rate: 20%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×1
×1

Asked: 07 Nov, 18:00

Seen: 48 times

Last updated: 07 Nov, 18:24

Related questions

Powered By:   Graphite