acron0 / AsanaNet

.NET API for Asana (www.asana.com)
MIT License
38 stars 29 forks source link

"Function" class missing #25

Open Bodekaer opened 9 years ago

Bodekaer commented 9 years ago

When I pull the latest version, I get: The type or namespace name 'Function' could not be found (are you missing a using directive or an assembly reference?) in \AsanaFunction.cs 10

https://github.com/acron0/AsanaNet/blob/master/AsanaNet/AsanaFunction.cs#L22

Is Function a missing class somehow, or is it just supposed to reference a standard .NET class? I'm using .NET 4.5.

acron0 commented 9 years ago

Function is generated by 'T4' which is/was Visual Studio's templating language. I am assuming you're using a Visual Studio without T4 so you may have to download it here: https://www.nuget.org/packages/T4/

buraksarica commented 9 years ago

Although t4 is installed, the error still persist. When i run the custom tool manually, the error indicates t4 script cannot find the xml file given on 7th line. So i updated that line and successfully built.

buraksarica commented 9 years ago

By the way the nuget package you refer is not the t4 executables i suppose. Only some db templates.

acron0 commented 9 years ago

Try this: https://www.microsoft.com/en-us/download/details.aspx?id=40754

jbbaron commented 9 years ago

Hi, for me have solved the problem ! Change the .Net Framework to 4.5.1...

jb

swgdesign commented 8 years ago

I have tried to build this in vs 2010 and vs2015 with T4 NUGET'ed in as well as updated the version to 4.5.1, but still I am receiving the error relating to 'Function'.

Can anyone send me there setup completed and working? Is this a path related issue for the XML file?

elegault commented 8 years ago

+1 - not compiling in .NET 4.5.1 & VS 2015. Apparently using the T4Toolbox is an option, but I can't figure out how to use it. Apparently adding some directives to the top of AsanaFunctions.tt will help, but I've tried each of the below as suggested in various Stack Overflow articles but with no luck:

<#@ assembly name="$(TargetPath)" #> <#@ VolatileAssembly processor="T4Toolbox.VolatileAssemblyProcessor" Name="AsanaNet.dll"#>

workshub-stage[bot] commented 5 years ago

This issue is now published on WorksHub. If you would like to work on this issue you can start work on the WorksHub Issue Details page.