Nov 13, 2012 at 10:01 PM
Edited Nov 14, 2012 at 12:07 AM
I am trying to upgrade the NuGetter from VS 2010 to VS 2012. I performed the following steps:
- Downloaded the latest source code from this codeplex project.
- Open the solution in VS 2012.
- Set the project framework to .NET 4.5.
- Updated the assembly references to version 18.104.22.168
- Added reference to TfsBuild.Versioning.Activities (22.214.171.124)
- Opened the XAML files, replaced any occurrence of the string "10.0.0.0, culture..." with "126.96.36.199"
- I built the project. Built OK.
- I ran the unit tests. All passed.
- copied the 3 build templates and TfsBuild.NuGetter.Activities.dll to source control to be consumed by a newly created build definition.
- I created a new build definition; I queue a build; I receive an error saying:
"TF215097: An error occurred while initializing a build for build definition \Test\New Build Definition 2: The invocation of the constructor on type 'TfsBuild.NuGetter.Activities.PerformNuGetPack'
that matches the specified binding constraints threw an exception."
Also, originally when I upgrade the build templates and open the designer there were no errors. But, after transferring these XAML files over to the source control and open them (ex: NuGetterStandardBuildTemplate.xaml) in WF designer I see a text
with red background saying:
"Activity could not be loaded because of errors in the XAML"
looking at the imported namespaces, I see that TfsBuild.NuGetter.Activities has a blue exclamation mark saying:
"Namespace TfsBuild.NuGetter.Activities cannot be resolved"
Similar question was ask as well http://nugetter.codeplex.com/discussions/394650
Any insight into this problem is appreciated?