1
votes

I have configured tfs build definition for our project. And also i have added Nuget package to the solution.

When i tried to build the defination, i'm getting following error.

  1. App_Start\BundleConfig.cs (7): The type or namespace name 'Optimization' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)

  2. Global.asax.cs (10): The type or namespace name 'Optimization' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)

  3. App_Start\BundleConfig.cs (20): The type or namespace name 'BundleCollection' could not be found (are you missing a using directive or an assembly reference?)

I don't know why i'm getting this error. Could anyone please help me with this????

1
Looks like a missing reference (probably the NuGet package you added). Is the NuGet package added to source control or are you using package restore?Richard Banks
I have added it to source control.PaRsH
And the .dlls got added as well? Sometimes the default filtering will exclude them from the check inRichard Banks

1 Answers

2
votes

Check your Build definition -> Source Settings tab. You should add path to packages folder where referenced packages are stored.