Visual Studio 2017 - “不正确的功能”当试图跑 [英] Visual Studio 2017 - "Incorrect Function" when trying to run

查看:80
本文介绍了Visual Studio 2017 - “不正确的功能”当试图跑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将我的VS更新到2017RC,现在在我正在处理的任何项目中,我将在尝试运行项目时出现以下错误

I updated my VS to the 2017RC and now on any project I'm working on I will get the Following Error

"错误:无法启动程序'\\file\\ userdata1 $ \ user\my documents \ Visual Studio Projects \ ...' 不正确的功能"

"Error while trying to run project: Unable to start program '\\file\\userdata1$\user\my documents\Visual Studio Projects\...'  Incorrect Function"

< span style ="font-size:0.75em">文件编译正确,我可以从它编译的目录运行它但如果我点击运行会抛出这个错误。  有任何建议吗? 

推荐答案

嗨马修,

感谢您在MSDN论坛上发帖。

根据您的说明,如果在运行项目时出现问题,请按照以下步骤操作:

From your description, if the issue occurs when running the project, please follow steps below:

1。要消除该项目的路径具有VS无法检测到的任何特殊字符,请将整个项目复制到共享文件夹(例如:桌面)。

1. To eliminate that project's path has any special character that VS couldn't detect, copy the whole project to a shared folder(for example: Desktop ).

2。禁用防病毒或反间谍软件。

2. Disable anti-virus or anti-spyware software.

3。重新启动计算机并以管理员身份运行Visual Studio 2017 RC 

3. Restart your computer and  run Visual Studio 2017 RC as administrator

4。从共享文件夹中打开并运行项目以检查错误是否再次发生。

4. Open and run the project from the shared folder to check if the error happens again.

结果A:

如果错误消失,请重命名或更改路径:" \file\\userdata1

If the error disappears, please rename or change path:"\file\\userdata1


\ user \ my documents \ Visual Studio Projects \ .."这样VS就能很好地识别您的项目。
\user\my documents\Visual Studio Projects\.." so that VS could recognize your project well.

结果B:

如果错误仍然存​​在,  ;尝试以下步骤修复你的VS:

If the error persists, try the steps as below to repair your VS:

例如,如果您的VS是社区版,请双击"vs_Community.exe"并修复:

如果修复无效,请使用
http://aka.ms / vscollect
收集安装日志。使用它之后,从%temp%文件夹中找到vslogs.zip。然后
将文件上传到
https:// onedrive。 live.com/
并与我们分享链接。我将帮助您分析您的VS安装是否有任何障碍。

If the repair doesn’t help, Please use http://aka.ms/vscollect to gather the installation logs. After using it, find vslogs.zip from %temp% folder. then upload the file to https://onedrive.live.com/ and share the link with us. I will help you analyze if there is any block about your VS installation.

最诚挚的问候,


这篇关于Visual Studio 2017 - “不正确的功能”当试图跑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆