Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8558909
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T15:55:08+00:00 2026-06-11T15:55:08+00:00

Not long ago I decided to start using Nuget for managing 3rd party libraries.

  • 0

Not long ago I decided to start using Nuget for managing 3rd party libraries. However, since I started using Nuget, Teamcity was no longer able to build the solution.

So, I have a WindowsPhone project where I use a t4 template for the configuration file. I followed Oleg Sych’s instruction for integrating MSBuild and T4. This project was building just fine on my TeamCity build server. Well, fine until I started using Nuget. Added some packages and set RestorePackaged to true, after that I no longer was able to build the solution in TeamCity.

The error I get in TeamCity is the following:

C:\Program Files\MSBuild\Microsoft\VisualStudio\TextTemplating\v10.0\Microsoft.TextTemplating.targets(396, 5):
Compiling transformation: Invalid token 'this' in class, struct, or interface member declaration. Line=1, Column=1 
C:\Program Files\MSBuild\Microsoft\VisualStudio\TextTemplating\v10.0\Microsoft.TextTemplating.targets(396, 5): 
Compiling transformation: Method must have a return type. Line=1, Column=6 
C:\Program Files\MSBuild\Microsoft\VisualStudio\TextTemplating\v10.0\Microsoft.TextTemplating.targets(396, 5): 
Compiling transformation: Type expected. Line=1, Column=12

The output file for the T4 templates contains the following message: ErrorGeneratingOutput

On my local machine using VS2010 the solution also fails to build. However, the problem is that MSBuild does process the T4 template and generates an output file, but it does not add it to the project file. So, build fails because it cannot find the specific class.

Did anyone experience a similar issue? Are there any fixes? Or can somebody tell me where should I look for a fix?

I would really appreciate any help on fixing this issue.

Thank you!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T15:55:09+00:00Added an answer on June 11, 2026 at 3:55 pm

    Ok, I found the solution!

    My mistake was to install Nuget on the build server. Once I remove the nuget vsix extension everything started working.

    Also, I noticed that by default Nuget looks for the config file at: “%APPDATA%/NuGet/NuGet.Config” and there is no way to override it, at least I haven’t found one.
    Although this link http://nuget.codeplex.com/workitem/1358 states that Nuget will use the local file from .nuget folder if it exists.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've started working on Django forms since not long ago. I've been letting forms
Not so long ago I started to learn to use System.Reflection.Emit namespace. I'm now
Not too long ago I started writing a docking library for WPF (similar to
Not long ago I started programming Python with Django. Sometimes I get strange errors
I have started in web development not long time ago. I know some stuff
I discovered Sinatra not long ago and started to translate a webform I made
hi i not long ago start to study rails and in some screencast i
I started learning PHP not too long ago and I ran into this issue:
Not a long ago I started to learn Mathematica - i.e. I'm novice. Usually
What I'm doing: I'm working in Xcode, and started using Git not that long

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.