Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Function" class missing #25

Open
Bodekaer opened this issue Mar 29, 2015 · 8 comments
Open

"Function" class missing #25

Bodekaer opened this issue Mar 29, 2015 · 8 comments

Comments

@Bodekaer
Copy link

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
Copy link
Owner

acron0 commented Apr 7, 2015

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
Copy link

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
Copy link

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

@acron0
Copy link
Owner

acron0 commented Apr 27, 2015

@jbbaron
Copy link

jbbaron commented Jul 8, 2015

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

jb

@swgdesign
Copy link

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
Copy link

elegault commented Oct 5, 2016

+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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants