简体   繁体   中英

Python in Visual Studio - 'CoreCompile' error

I have installed Visual Studio 2017 with Python support and Python 3.5 64bit. I want to check how VS cooperate with Python for learning purpose.

I have tried to run simply program

def add(a, b):
    return a + b

result = add(3,4)
print(result)

When I run [F5] or build [Ctrl + Shift + F5] I get such error:

Error MSB4057: The target "CoreCompile" does not exist in the project.

I think everything is configured well. I can use python console in VS. Environment is visible in Solution Explorer. Do you have any idea what is wrong?

在此处输入图片说明

Try this:

  • Open your project in a text editor.
  • Find and uncomment the following lines <!--<Target Name="CoreCompile" />-->

Hopefully it should work for you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM