AsanaNet icon indicating copy to clipboard operation
AsanaNet copied to clipboard

"Function" class missing

Open Bodekaer opened this issue 10 years ago • 8 comments

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.

Bodekaer avatar Mar 29 '15 13:03 Bodekaer

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/

acron0 avatar Apr 07 '15 11:04 acron0

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 avatar Apr 24 '15 15:04 buraksarica

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

buraksarica avatar Apr 24 '15 15:04 buraksarica

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

acron0 avatar Apr 27 '15 13:04 acron0

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

jb

jbbaron avatar Jul 08 '15 14:07 jbbaron

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?

swgdesign avatar Jan 07 '16 08:01 swgdesign

+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"#>

elegault avatar Oct 05 '16 18:10 elegault

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.

workshub-stage[bot] avatar Sep 20 '19 21:09 workshub-stage[bot]