1

Resolved

Build django project fails on VS 2012

description

I have VS 2012 and VS 2013 on my machine. Build of django project on VS 2013 works fine, but it doesn't work in VS 2012:
------ Build started: Project: DjangoProject1, Configuration: Debug Any CPU ------
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Python Tools\Microsoft.PythonTools.Django.targets(64,11): error MSB4064: The "ConsoleToMSBuild" parameter is not supported by the "Exec" task. Verify the parameter exists on the task, and it is a settable public instance property.
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Python Tools\Microsoft.PythonTools.Django.targets(62,5): error MSB4063: The "Exec" task could not be initialized with its input parameters. 
    Done building project "DjangoProject1.pyproj" -- FAILED.
Done building project "DjangoProject1.pyproj" -- FAILED.

Build FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

comments

huguesv wrote Jan 22 at 10:38 PM

When I try to publish to azure web site, I get the following. Just making sure in case there are additional msbuild issues in the publishing.
------ Build started: Project: DjangoProject1, Configuration: Release Any CPU ------
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Python Tools\Microsoft.PythonTools.Django.targets(64,11): error MSB4064: The "ConsoleToMSBuild" parameter is not supported by the "Exec" task. Verify the parameter exists on the task, and it is a settable public instance property.
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Python Tools\Microsoft.PythonTools.Django.targets(62,5): error MSB4063: The "Exec" task could not be initialized with its input parameters. 
    Done building project "DjangoProject1.pyproj" -- FAILED.
Done building project "DjangoProject1.pyproj" -- FAILED.

Build FAILED.
------ Skipped Publish: Project DjangoProject1, Configuration: Release Any CPU ------
 
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Publish: 0 succeeded, 0 failed, 1 skipped ==========
C:\Windows\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(3442,13): error MSB4012: The expression "FinalOutputPath=@(_OutputPathItem->'%(FullPath)')DjangoProject1.exe.config" cannot be used in this context. Item lists cannot be concatenated with other strings where an item list is expected. Use a semicolon to separate multiple item lists.
Done building project "DjangoProject1.pyproj" -- FAILED.

Build FAILED.