日志如下:
编译模式:release
正在编译…
要求的 VS 版本:2012
正在执行:’“D:\Program Files\Visual Studio 14.0\Common7\IDE\devenv.com” “E:\cocoscreator_space\HelloWorld\build\jsb-binary\frameworks\runtime-src\proj.win32\hello_world.sln” /Upgrade’
Microsoft Visual Studio 2015 Version 14.0.25420.1.
Copyright © Microsoft Corp. All rights reserved.
Migration completed successfully, but some warnings were detected during migration.
For more information, see the migration report:
E:\cocoscreator_space\HelloWorld\build\jsb-binary\frameworks\runtime-src\proj.win32\UpgradeLog.htm
Information:
This project/solution does not require migration. It will open without modification.
正在执行:’“D:\Program Files\Visual Studio 14.0\Common7\IDE\devenv.com” “E:\cocoscreator_space\HelloWorld\build\jsb-binary\frameworks\runtime-src\proj.win32\hello_world.sln” /Build “Release” /Project “hello_world”’
Microsoft Visual Studio 2015 Version 14.0.25420.1.
Copyright © Microsoft Corp. All rights reserved.
The operation could not be completed. 参数错误。
Use:
devenv [solutionfile | projectfile | anyfile.ext] [switches]
The first argument for devenv is usually a solution file or project file.
You can also use any other file as the first argument if you want to have the
file open automatically in an editor. When you enter a project file, the IDE
looks for an .sln file with the same base name as the project file in the
parent directory for the project file. If no such .sln file exists, then the
IDE looks for a single .sln file that references the project. If no such single
.sln file exists, then the IDE creates an unsaved solution with a default .sln
file name that has the same base name as the project file.
Command line builds:
devenv solutionfile.sln /build [ solutionconfig ] [ /project projectnameorfile [ /projectconfig name ] ]
Available command line switches:
/Build Builds the solution or project with the specified solution
configuration. For example “Debug”. If multiple platforms
are possible, the configuration name must be enclosed in quotes
and contain platform name. For example: “Debug|Win32”.
/Clean Deletes build outputs.
/Command Starts the IDE and executes the command.
/Deploy Builds and then deploys the specified build configuration.
/Edit Opens the specified files in a running instance of this
application. If there are no running instances, it will
start a new instance with a simplified window layout.
/LCID Sets the default language in the IDE for the UI.
/Log Logs IDE activity to the specified file for troubleshooting.
/NoVSIP Disables the VSIP developer’s license key for VSIP testing.
/Out Appends the build log to a specified file.
/Project Specifies the project to build, clean, or deploy.
Must be used with /Build, /Rebuild, /Clean, or /Deploy.
/ProjectConfig Overrides the project configuration specified in the solution
configuration. For example “Debug”. If multiple platforms are
possible, the configuration name must be enclosed in quotes
and contain platform name. For example: “Debug|Win32”.
Must be used with /Project.
/Rebuild Cleans and then builds the solution or project with the
specified configuration.
/ResetSettings Restores the IDE’s default settings, optionally resets to
the specified VSSettings file.
/ResetSkipPkgs Clears all SkipLoading tags added to VSPackages.
/Run Compiles and runs the specified solution.
/RunExit Compiles and runs the specified solution then closes the IDE.
/SafeMode Launches the IDE in safe mode loading minimal windows.
/Upgrade Upgrades the project or the solution and all projects in it.
A backup of these files will be created as appropriate. Please
see Help on ‘Visual Studio Conversion Wizard’ for more
information on the backup process.
Product-specific switches:
/componentsDiff Compares two component folders. Requires three arguments:
OptionalTfsServerCollectionUri SourceVersionedServerFolderPath
TargetVersionedServerFolderPath
If OptionalTfsServerCollectionUri is not provided, then an
attempt is made to use the current TFS project collection.
/debugexe Open the specified executable to be debugged. The remainder of
the command line is passed to this executable as its arguments.
/diff Compares two files. Takes four parameters:
SourceFile, TargetFile, SourceDisplayName(optional),
TargetDisplayName(optional)
/openProjects /scc:git Opens committed project from git.
Arguments:
/repositoryUrl (/repo):
/commitId (/id):
/project:
/solution (/sln):
/displayId:
/timestamp:
/comment:
/author:
/openProjects /scc:tfs Opens versioned project from tfs.
Arguments:
/collection (/col):
/version:
/project:
/solution (/sln):
If OptionalTfsServerCollectionUri is not provided, then an
attempt is made to use the current TFS project collection.
/sqldbaction 启动 SQL Server Data Tools并执行参数字符串中指定的操作。
/TfsLink 打开团队资源管理器并为提供的项目 URI 启动查看器
(如果注册了项目 URI)。
/useenv Use PATH, INCLUDE, LIBPATH, and LIB environment variables
instead of IDE paths for VC++ builds.
To attach the debugger from the command line, use:
VsJITDebugger.exe -p
执行命令出错,返回值:1。
我又新建了一个holleworld报错是一样的。请大神们解决一下。
@nantas 也请主播两撇小胡子的温柔帮忙看看,谢谢各位了。
一下是日志中提到的"E:\cocoscreator_space\HelloWorld\build\jsb-binary\frameworks\runtime-src\proj.win32\hello_world.sln" /Upgrade’中的内容
Migration Report - hello_world
Overview
Project Path Errors Warnings Messages
Solution hello_world.sln 0 1 2
hello_world hello_world.vcxproj 0 0 0
Solution and projects
Solution
Message
hello_world.sln: Visual Studio needs to make non-functional changes to this project in order to enable the project to open in Visual Studio 2015, Visual Studio 2013, Visual Studio 2012, and Visual Studio 2010 SP1 without impacting project behavior.
hello_world.sln: File successfully backed up as E:\cocoscreator_space\HelloWorld\build\jsb-binary\frameworks\runtime-src\proj.win32\Backup\hello_world.sln
hello_world.sln: Solution migrated successfully
Hide 2 additional messages
hello_world
Message
hello_world logged no messages.