2015-10-28 2 views
3

Я просто создал простой калькулятор в C# (.cs) с помощью Notepad ++ и загрузил этот .cs-файл в мой проект Visual Studio Online. Но когда я нажимаю на «Открыть в Visual Studio 2013», это дает мне следующее error:Ошибка Visual Studio: неверная командная строка. Неизвестный коммутатор: VsWebSqmFlag

Invalid Command Line. Unknown Switch : VsWebSqmFlags.

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. /ResetAddin Removes commands and command UI associated with the specified Add-in. /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:

/diff Compares two files. Takes four parameters: SourceFile, TargetFile, SourceDisplayName(optional), TargetDisplayName(optional) /TfsLink Opens Team Explorer and launches a viewer for the provided artifact URI if one is registered.

Кто-нибудь знает, почему я вижу это и как избавиться от него? У меня есть Visual Studio 2013 Shell (Integrated), установленный на моей машине

+2

Скопируйте ошибку в свой вопрос и не публикуйте ссылки на изображения. Ваш вопрос не будет полезен никому другому будущему читателю с такой небольшой информацией. [Ссылки будут гнить] (https://en.wikipedia.org/wiki/Link_rot) в любом случае. –

+0

добавлено полное описание ошибки –

+0

@YashSaraiya проверить это [ссылка] (https://social.msdn.microsoft.com/Forums/vstudio/en-US/0cff40f2-8bae-4da1-97f1-a89b6b2c2d18/cant-open-visual -studio-from-website-httpsmynamevisualstudiocom? forum = TFService) – Webruster

ответ

1

Вы можете создать пустой проект в VS, а затем добавить ваши .cs-файлы в этот проект, проверить проект на проект команды, который вы создаете в VSO, в таким образом, вы должны иметь возможность Открыть в Visual Studio 2013.

+0

У меня нет доступа к шаблонам для создания приложения C# в VS 2013 Shell (Integrated) ... infact шаблоны не установлены в VS, и у меня нет достаточных прав на установку –

+0

, так как вы не можете работа в VS, почему вы хотите открыть проект в VS? –

+0

Где я могу его открыть? Я думал, что с помощью VSO я смогу почувствовать IDE, что VS вообще –

Смежные вопросы