1

Resolved

Prevent VSToolsPath from being overridden in templates

description

(From https://pytools.codeplex.com/workitem/2051)

I have VS 2010 installed with Python Tools 2.1 Beta. My Output Window messages follow.
 Target ResolveStartupPath:
 C:\Program Files\MSBuild\Microsoft\VisualStudio\v11.0\Python Tools\Microsoft.PythonTools.targets(145,5): error MSB4036: The "ConvertPathToModuleName" task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.) The task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with <UsingTask> in the project file, or in the *.tasks files located in the "C:\Windows\Microsoft.NET\Framework\v4.0.30319" directory.
 Done building target "ResolveStartupPath" in project "Connected.pyproj" -- FAILED.

 Done building project "Connected.pyproj" -- FAILED.

 Build FAILED.

 C:\Program Files\MSBuild\Microsoft\VisualStudio\v11.0\Python Tools\Microsoft.PythonTools.targets(145,5): error MSB4036: The "ConvertPathToModuleName" task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.) The task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with <UsingTask> in the project file, or in the *.tasks files located in the "C:\Windows\Microsoft.NET\Framework\v4.0.30319" directory.
0 Warning(s)
1 Error(s)

Time Elapsed 00:00:00.00
 C:\Program Files\MSBuild\Microsoft\VisualStudio\v11.0\Python Tools\Microsoft.PythonTools.targets(145,5): error MSB4036: The "ConvertPathToModuleName" task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.) The task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with <UsingTask> in the project file, or in the *.tasks files located in the "C:\Windows\Microsoft.NET\Framework\v4.0.30319" directory.
 Done building project "Connected.pyproj" -- FAILED.

 Build FAILED.
Removing the "Condition=..." statements (from VSToolsPath in the project file) fixed the problem!

comments