![](/img/trans.png)
[英]How can I install Asp.Net on vs2015 after already installing vs2015 ?
[英]How to change VS2015 to run this code after new OS install?
我本周不得不重新安装操作系统,之前运行的代码在Visual Studio 2015中不再运行。(此后此代码未更改)
构建和部署代码时,出现以下错误:
Severity Code Description Project File Line Suppression State
Error DEP3321 : To deploy this application, your deployment target should be running Windows Universal Runtime version 10.0.10586.0 or higher. You currently are running version 10.0.10240.17443. Please update your OS, or change your deployment target to a device with the appropriate version. HistAppV1
在Google上搜索后, 这篇文章在某种意义上有所帮助,因此当我卸载该项目并更改
<DefaultLanguage>en-US</DefaultLanguage>
<TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
<TargetPlatformVersion>10.0.14393.0</TargetPlatformVersion>
<TargetPlatformMinVersion>10.0.10586.0</TargetPlatformMinVersion>
<MinimumVisualStudioVersion>14</MinimumVisualStudioVersion>
当我将其更改为
<TargetPlatformMinVersion>10.0.10240.0</TargetPlatformMinVersion>
我可以成功构建和部署我的应用程序,但是它在启动屏幕上崩溃,并显示此错误。
#if DEBUG && !DISABLE_XAML_GENERATED_BREAK_ON_UNHANDLED_EXCEPTION
UnhandledException += (sender, e) =>
{
if (global::System.Diagnostics.Debugger.IsAttached) global::System.Diagnostics.Debugger.Break();
};
#endif
在哪里我也有例外
GattServices error CS0103: The name 'GattServices' does not exist in the current context
我还没有找到关于包含哪个版本的GattServices的明确指示,但是我认为更改版本会造成麻烦。 我该如何解决这个问题? 或如何保留我的版本,或更新VS以拥有适当的版本?
我在以前的计算机安装中使用的是Visual Studio 2015社区版。 正如我提到的那样,该操作系统是全新安装,带有Visual Studio的全新安装,因此,我现在并没有真正的问题。
您已安装Windows 10的第一个版本(版本1507,请参阅版本历史记录 )。 您的代码要求版本1511(2015年11月更新)。 我认为修改您的应用程序以支持这样的旧版本没有意义。 Windows 10实际上已强制将其更新为更高版本,因此我预计世界上不会安装大量的1507版本。 只需在您的PC上安装操作系统更新,一切就可以再次正常运行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.